locked
how to set a remainder using java script for schedule toast notification according to date and time RRS feed

  • Question

  • how to set a remainder using java script for schedule toast notification according to date and time.. any one ?
    Friday, December 14, 2012 10:49 AM

Answers

  • Generally we update the toaster notification using background task, so in the back ground task you have Timer trigger which can trigger periodically, once it trigger you can verify for your time and date in BG task and then do your functionality, I think you can trigger the BG task for every second using onTimer() function check that too
    • Marked as answer by gokulkrishh Thursday, December 20, 2012 2:14 AM
    Friday, December 14, 2012 1:38 PM
  • Like what NagendraVivek has suggested, you can use background task with timer trigger to send the notification:

    #How to run a background task on a timer (Windows Store apps using JavaScript and HTML) (Windows)
    http://msdn.microsoft.com/en-us/library/windows/apps/JJ160504(v=win.10).aspx

    background task works no matter if your app is currentlyl running or has been suspended or terminated.

    If you only want to send such periodic notification when your app is running, then the standard window.interval or window.setTimeout to do the similar things.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by gokulkrishh Thursday, December 20, 2012 2:14 AM
    Monday, December 17, 2012 6:34 AM
    Moderator

All replies

  • Generally we update the toaster notification using background task, so in the back ground task you have Timer trigger which can trigger periodically, once it trigger you can verify for your time and date in BG task and then do your functionality, I think you can trigger the BG task for every second using onTimer() function check that too
    • Marked as answer by gokulkrishh Thursday, December 20, 2012 2:14 AM
    Friday, December 14, 2012 1:38 PM
  • Like what NagendraVivek has suggested, you can use background task with timer trigger to send the notification:

    #How to run a background task on a timer (Windows Store apps using JavaScript and HTML) (Windows)
    http://msdn.microsoft.com/en-us/library/windows/apps/JJ160504(v=win.10).aspx

    background task works no matter if your app is currentlyl running or has been suspended or terminated.

    If you only want to send such periodic notification when your app is running, then the standard window.interval or window.setTimeout to do the similar things.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by gokulkrishh Thursday, December 20, 2012 2:14 AM
    Monday, December 17, 2012 6:34 AM
    Moderator