Push Notifications / Messaging in HTML5 Web Application

I want to integrate Push Notification into my jQuery mobile web application using PhoneGap for Android. Is there a solution to put cloud messages in a web application, such as a push notification. My application is based on finding friends and checking in a new place, so I looked for messages or push notifications in the web application.

I also read about http://www.html5rocks.com/en/tutorials/eventsource/basics/

but it didn’t help me.

If real-time push notification is not possible in the HTML5 web application, let me talk about asynchronous messages, such as offline messaging in my application.

+4
source share
5 answers

I recently implemented real-time messaging with the WebSocket protocol, it is easy to implement, very efficient and supports encryption.

+1
source

Try a city airship. Every month you get 1 million free push notifications. It also works with Phonegap. Link: http://docs.urbanairship.com/build/phonegap.html

0
source

ScaleDrone allows you to tap (and from) PhoneGap and the network. He will use Websockets, if possible, and other technologies when Websockets are not available.

0
source

There is an API for this: http://www.w3.org/TR/2014/WD-push-api-20141007/ , but I would not count on platform support here. However, since you use PhoneGap, you can integrate your application using the built-in cloud messaging. Here is the tutorial .

0
source

Push notification can be implemented. If you use Phonegap, PushPlugin ia is a good affordable option. This plugin is designed for use with Cordova and allows your app to receive push notifications on Amazon Fire OS, Android, iOS, Windows Phone, and Windows8 devices. In addition, it is free to use.

The Android implementation uses the Google GCM service (Google Cloud Messaging).

For a detailed implementation guide using Android, refer to the Android section of this link .

I hope he answers your question. This is a late answer here, may be useful for you, as well as for those who are looking for a similar solution.

0
source

Source: https://habr.com/ru/post/1495891/


All Articles