Is it possible to send real-time notifications to a Android/iOS device (from server) running an HTML5 App? How is it different from native apps? What extra efforts do I need to make for that?
Asked
Active
Viewed 2,108 times
2

JasonMArcher
- 14,195
- 22
- 56
- 52

sainiankit
- 571
- 3
- 17
-
It is not clear if you mean a notification from server to the app or from the app to the operative system (android notification). – Thomas Jul 15 '16 at 09:28
-
For the first one, I would think of WebSocket, for the second one, PhoneGap indeed. – Thomas Jul 15 '16 at 09:29
1 Answers
1
You don't specify your server-side technology stack.
If however you are using Phonegap for the HTML5 App and node.js for the server, you have the option to use:
- node-gcm for sending notifications from your server
- PushPlugin for handling notifications from within your html5 app.
Both are explained at this post:
http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/

Vardis
- 116
- 2