Google Cloud Messages (GCM) on push server for different platforms - android

I have a task to implement push server for mobile application that support as many platforms as possible. I need suggestions for what would be the best way to go.
After some research I found that GCM supports native iOS devices and Android of course. So in a perfect scenario I would also like to support iOS/Android devices on cordova(hybrid apps). Can GCM be used to support all these platforms and if not, what would be other ways to solve this problem?
This is one of my first more serious programming tasks so any help will be appreciated.
I am interested if GCM support iOS on cordova and is it better to use GCM or code something from scratch for different platforms?

Yes you can use GCM for both IOS and Android. Here are some useful links to start.
Cloud Messaging
Google Cloud Messaging for iOS
Cloud Messaging for Android
Also see existing SO PhoneGap Build Push Notification
Cheers !

I've finished this project and after some research this are my conclusion
GCM for iOS
have lot of limitations(no alert in message)
uses APNS as a wrapper
still no plugins in cordova
So for now my suggestion is APNS for iOS and GCM for Android.

Related

Do I need multiple AWS SNS platform applications for different device operating systems?

I'm new to the concept of push notifications and sending them from Amazons SNS service so apologies if this is a stupid question.
For our current app we are wanting to target both android and iOS devices. We've successfully created a platform application in SNS that uses firebase to target android devices.
We initial thought that we could use the same platform application for iOS as firebase supports pushing to iOS devices. However, the AWS documentation indicates that you have to create a separate platform application which uses APSN to push to iOS devices.
Is it the correct approach to have multiple SNS platform applications for each device operating system you're trying to target?
Any advice would be appreciated, thanks David.
I thought I’d provide the outcome we came to just in case anyone might find it useful. After looking into firebase it seemed an obvious choice for it to replace SNS. The notification side of firebase is free and much easier to integrate into our app as opposed to SNS where it seems you have to worry about multiple notification providers for each mobile platform. The documentation around firebase is a lot better than what is available for SNS.

Universal push notification sending

I've got a server written in Scala/Java. I want to make an app in PhoneGap/Cordova which uses push notifications.
I would prefer to have one codebase for both Android and iOS. Is there a way to do universal push notifications for both Android and iOS.
Is using Parse Push REST API for that purpose a good decision, cosidering that I've already got my own server?
If it sounds opinion based, excuse me. I'm new in this topic, and just want to decrease the redundancy as much as possible.
Not sure about Parse, but clientside if you are using Cordova then the PhoneGap Push Plugin should be what you are looking for, it's available for iOS, Android, Windows and others and let's you handle the Push Notifications in Javascript.
I don't know how you could solve this platform independent on the server side, though.

Can I use google drive push notifications on Android

I've read article about Google drive push notifications https://developers.google.com/drive/push
And I whould like to use them in my android project. Is it possibe?
If yes can anyone give me idea how.
Thanks.
We're currently only pushing notifications to Web hooks, but supporting push notifications on the mobile platforms is in our scope for future releases.

Phonegap- Support for push notification

I am analyzing phonegap usage for 4 mobile apps which will be created for
iOS (iPhone & iPad 4.2.1+)
Android (2.2+)
Blackberry(5.0+)
Windows phone (7+)
I could not find native support for push notifications in phonegap. Though I could google for push notification support for iOS and Android using different frameworks like pushwoosh and urban air.
Is there a common framework which can address push notifications for all the above mentioned platforms?
By now, there's a Push Notification Plugin for Cordova/Phonegap available: Cordova Push Notifications Plugin.
It currently supports Android, iOS and Windows Phone 8.
I know that it is still not the common framework you wished for, but at least it accommodates these 3 platforms, which means you don't have to deal with separate plugins for each of these platforms anymore, as it's been the case before.
There is no native support in phonegap for push notifications. Since these vary by platform, there are plugins, though.
You'll have to find a plugin for each platform you want. Here's a plugin for Android: https://github.com/marknutter/GCM-Cordova
and here's one for iOS: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/PushNotification I didn't find plugins for Windows7 or Blackberry, but all I did was a cursory search.
As mentioned above, there are services that provide some level of cross platform compatibility and provide server side APIs, so that you can send push to devices via a REST call (or something similar). These services also may provide some level of phonegap integration (via plugins).
Here are the services I have found that support the 4 platforms you mentioned:
Urban Airship: http://urbanairship.com/
Pushwoosh: http://pushwoosh.com/
Xtify: http://xtify.com/ (now an ibm company, here's the platforms they support: http://developer.xtify.com/display/sdk/Download+the+IBM+Push+Notification+SDKs )
I would use the Urban Airship plugins for Android and iOS.
http://urbanairship.com/lp/urban-airship-phonegap-plugins/
As an alternative to push notifications you may keep a streaming connection open and receive your notifications there.
Obviously it is required that the application is kept alive for you to receive such messages.
If you think this is a viable solution for your needs you may try Lightstreamer: it works with PhoneGap on the cited platforms without the need of any plugin.
If interested take a look here: http://blog.lightstreamer.com/2012/08/lightstreamer-in-phonegap-app.html
[disclaimer: I'm a developer # Lightstreamer]

Appcelerator Titanium C2DM

Anyone tried out Titanium c2dm for android?I am using Titanium version 1.8.1 And i want to do small Push notification Using C2DM server.If anyone Implemented help me!Thank U
#Sugan.s Titanium has direct access to Urban Airship which supports push notifications to Android, Blackberry, and iOS. It's the most recommended, and easiest approach to Push notifications within Ti.
As suggested already, Parse is another great resource.

Categories

Resources