Hi,
I am using cordova and ionic to deploy the apps on android and iOS. I need an end to end guide on how to use PushPlugin in the ionic app to make it work for android.
but it only returns OK as a message in the successhandler callback. I am not able to get the registered Id in onNotificationGCM callback(it doesnt fire).
Any pointers on this would be greatly appreciated.
Thanks
I use Urban Airship for handling PushNotifications for iOS and Android with my phonegap application(s).
They provide a custom plugin for this and it’s working like a charm.
Integration is much easier this way
We’re hoping to get services set up soon that can integrate push notifications with ionic that are more geared to work with angular. For now, Urban Airship is pretty good. I’ve used Pushwoosh myself, fairly straight forward and they provide a WYSIWYG interface for handling notifications.
Thank you guys for quick responses. I opted to go for Pushwoosh and it works pretty good when I push notifications manually via their web console. Can somebody please share some ideas about how to integrate Pushwoosh with server ? This could be a stupid question, but I am a rookie to push notifications
Well the point of these services, regardless of which on, is that you don’t have to manage the server, they do. A big reason why I opted for a service over setting up my own server is
Too much for me to do ( sole person on the project)
I’m not a server guy, servers scare me lol
These serves handle the deployment and server side of things, you just manage the front end.
I use the Aerogear Unified Push Server and their cordova push plugin. I host the push server on OpenShift. There is a cartridge for Aerogear and MySQL. Another huge bonus, its all free. It took about 15 minutes to have it up and running.
If you’re interested in using any other plugin requiring:
com.google.android.gms
com.android.support
then expect the joys of failed builds from Aerogear specifically demanding builds and library versions that conflict with anything built correctly. Throughout their plugin, they’ve explicitly defined minSdkVersions (yes plural), which force the requirement of adding " – --minSdkVersion=15" flags on every command. ie:
Even this does not fix the issue. It leads on to “UNEXPECTED TOP-LEVEL EXCEPTION” errors from using an outdated way to declare dependencies such as android-support or play-services-gcm.
Do yourself a favour and consider any other option.