I want to send push notification to my application. My back end is ready and I am also able to receive the gcm registration id from the server but I am not able to receive notification on my device. Can anyone help me with that. Also is it necessary that the application needs to be downloaded from play store to send the notification or we can test the notification in debug apk also?
I implemented the push notification from the link given below: http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/
Unauthorized Error 401
? If the Google API key is wrong or theIP address of the server
machine is not white listed at Google GCM server. Then you will get. Also, In that example, passed data must be aJSON array
. – bjiang