How to implement push notification in browsers using the googles GCM service. What are the steps to implement the same.
相关问题
- Plugin with id 'com.google.gms.google-services
- Browsers render final comma of right-to-left (rtl)
- Non-static method isGooglePlayServicesAvailable an
- Chrome dev tools exact computed value for CSS rule
- Change Chromium icon and “chrome” text to custom i
相关文章
- Firefox remembering radio buttons incorrectly
- Is there a way to hide the new HTML5 spinbox contr
- Google Chrome Cache
- how to download a file on Chrome without auto rena
- Do all browsers on iOS use WKWebview or UIWebVIew?
- Why does Google Chrome NOT use cached pages when I
- Calling Chrome web browser from the webbrowser.get
- CSS Firefox box-shadow and outline
The basic steps that you will have to do if you want to add push notifications in browsers are the following:
In this tutorial there are all the steps I have commented but well explained with some examples.
You must know that browser notifications is a growing project that have some known troubles. One of them is that you can't receive payload from the notification because in the HTTPS the message is encripted and it can't be decoded by GCM and the message that the browser receive is an empty notification. There are some solutions for this trouble but they are working to solve it.
This is an example where you can see it works (you can open it using your smartphone too and watch the result).
I hope this can help you!
Eloibm, you are right, it is normally necessary to have an HTTPS page. But WonderPush managed an interesting implementation for all sites, including HTTP-only websites. A quick demo can be seen here: Try it on HTTP: http://www.wonderpush.com
Thus, it's possible to activate push notifications on your website within minutes, following the getting started guide