Does PubNub support push notifications on Android, as they do on iOS?
-
It's quite confusing as their main page says they support mobile push gateway for both iOS and Android (http://www.pubnub.com/how-it-works/mobile/), but when I look further their support page says it only supports APNS (https://help.pubnub.com/entries/22930087-What-Native-3rd-Party-Push-Networks-are-Supported-)
-
Answer:
Does PubNub support push notifications on Android, as they do on iOS? Answer: Yes. PubNub Android Sample AppThis app demonstrates all PubNub features and functionality. It can be found in https://github.com/pubnub/java/tree/master/android/examples/PubnubExample directory. PubNub Auto-subscribing, Auto-startup AppThis is a sample app which subscribes to channel "hello_world" on receiving the android.intent.action.BOOT_COMPLETED intent. The user is alerted about events like connect, message received etc. via notifications. Code for this app can be found in the https://github.com/pubnub/java/tree/master/android/examples/SubscribeAtBoot directory. PubNub Push on Android and iOSThe concept on how PubNub and GCM works starts with a light-weight battery optimized socket that remains open forever. This allows the device to receive push notifications with arbitrary data payloads. In a few lines of code you can easily add this feature. Since Android can multitask, PubNub can receive messages when in the foreground or background. However, to create a background subscribe process that will not fall victim to the device deep sleeping, create a background service with a PARTIAL_WAKE_LOCK. This is needed for both GCM and PubNub message delivery for notifications. To build a chat app you may consider additionally running a node server, etc. for user ownership of email addresses/etc. PubNub fits the purpose perfectly for chat with push notifications. Working on an app that involves both 1:N message broadcasting and 1:1 chatting features PubNub is the right choice for this.
Stephen Blum at Quora Visit the source
Related Q & A:
- How to send Push Notifications from iPhone?Best solution by Stack Overflow
- It's possible to convert an application Android (.apk) in iOS (.ipa?Best solution by Stack Overflow
- Why did the e-mail notifications stop?Best solution by facebook.com
- How can I get extra notifications on YouTube?Best solution by Yahoo! Answers
- How do i get yahoo mobile notifications?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.