Charlie
Charlie

Reputation: 11767

Push notifications for phonegap app w/Javascript?

I have a simple app that gets the current list of school closings for a specific area and displays the results in my app. I'd like to be able to set a school as a "favorite" and then, if the school is closed, a push notification would be displayed saying something like "Your school is closed!" I was contemplating on how to do this, and I thought simple jQuery could work.

  1. The user would set a favorite school with an exact name.
  2. jQuery would search all the closings in a certain body element (example, all elements) and if the name was found from step 1, it would send the notification

Does anyone have any other ideas on how to do this, and if I can invoke the notification with Javascript?

Upvotes: 2

Views: 831

Answers (1)

Simon MacDonald
Simon MacDonald

Reputation: 23273

I recommend you use UrbanAirship to provide your push notifications. For an small amount of notifications (under 2000 a month I think) it is free.

https://support.urbanairship.com/customer/portal/articles/66970-implementing-with-phonegap

Upvotes: 2

Related Questions