Local Notifications With Background Refresh

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    1 posts
    Member since:
    Nov 2012

    Posted 14 Jan 2014 Link to this post

    I love the work you guys do! I am working on a project that will soon debut in Johns Hopkins Medicine if I can get past this one major hurdle. I beg you for your insight.

    On this page:

    It mentions: "As an alternative it is possible to set up a background service that pulls data from the live services, but this will drain more battery and will incur additional traffic."

    Can someone please provide an example of this? What I'm looking for is to use background services to regularly poll a db and use LOCAL notifications to vibrate and display an alert on the users device if the data changes. The notification must work regardless of whether or not the app is open (obviously that's the point of the background service), and should be as cross platform as possible.

    I know this idea is not unheard of. It looks like the ShopYourWay (Sears/Kmart) IOS app uses something similar (see attachments). I'm guessing the GMail IOS app does something like this too, as its notifications (while closed) include unique sounds and behaviors, different from the standard push notification.

    I have not yet paid for an Apple developer license so please note if your proposed solution will work in the graphite simulator. I anxiously await your response.
  2. Steve
    Steve avatar
    10941 posts

    Posted 20 Jan 2014 Link to this post

    Hi Bruce,

    Such functionality is not available out of the box in Cordova and you would have to use a custom Cordova plugin. Take a look at the following forum thread for more information.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top