简体   繁体   中英

Push Notifications/Messaging in HTML5 web App

I am looking to integrate Push Notification in my Jquery mobile web App using PhoneGap for Android. Is there any solution to put cloud messaging in web app like push notification. My app is based on getting friends location and checked in new location so i was looking for messaging or push notification in web app.

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

but this was not helpful for me.

If real time Push Notification not possible in HTML5 web app Please let me about asynchronous messaging like offline messaging in my app.

我最近使用WebSocket协议实现了实时消息传递,它易于实现,性能非常高,并且支持加密。

Try Urban Airship. You get 1 million free push notifications every month. It is also working with Phonegap. Link: http://docs.urbanairship.com/build/phonegap.html

ScaleDrone allows pushing to (and from) PhoneGap and web. It will use Websockets if possible and other technologies when Websockets are unavailable.

There is an API for this: http://www.w3.org/TR/2014/WD-push-api-20141007/ , but I wouldn't count on platform support here. However, since you are using PhoneGap, you can integrate your app with native cloud messaging. Here's a tutorial .

Push Notification can be implemented. If you are using Phonegap, PushPlugin ia a good available option. This plugin is for use with Cordova, and allows your application to receive push notifications on Amazon Fire OS, Android, iOS, Windows Phone and Windows8 devices. ALso it is free to use.

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

For detailed implementation guide using Android refer Android section in this link .

Hope it will answer your question. this is late answer here, can be helpful to you as well as others looking for similar kind of solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM