facebook

LOCAL NOTIFICATION

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #344029 Reply

    Hello my friends.
    I need a tutorial to create a Local Notification.

    Thank you.

    #344034 Reply

    fbod383
    Member

    When they push a button or when the app opens?

    #344049 Reply

    @fbod383 wrote:

    When they push a button or when the app opens?

    Hello!
    I’m making an application that needs to read a file array on the server every 5 minutes.

    Thank you

    #344071 Reply

    support-michael
    Keymaster

    MobiOne applications are not configurable to run in the background. Thus, an internal timer is only reliable when the app is active.

    If you need to notify the user of some event or state while the app is running your app has access to the Cordova javascript notification apis (vibrate, alert, prompt…)
    See this link for more details http://docs.phonegap.com/en/2.9.0/cordova_notification_notification.md.html#Notification
    Your timer (e.g., setTimer() or setInterval()) can call any of these notification apis when needed.

    We recommend placing the code in the project’s www/<startupfile>_custom.js file or a separate js file and adding it to the project as an addition javascript file. (hope this makes sense)

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: LOCAL NOTIFICATION

You must be logged in to post in the forum log in