Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Android, example doesn't work when it goes into background #94

Closed
tyrtok opened this issue Sep 2, 2015 · 4 comments
Closed

Android, example doesn't work when it goes into background #94

tyrtok opened this issue Sep 2, 2015 · 4 comments

Comments

@tyrtok
Copy link

tyrtok commented Sep 2, 2015

The example works when compiled and run using Cordova. However, once the application goes into background, it doesn't notify user in terms of notification. However, response from GCM states 'OK'.

anyone idea how to make it work on android?

@BigBirdRook
Copy link

Use Google Chrome Postman and send test message to GCM in this format:

{
"registration_ids": ["...your_reg_id..."],
"data" : {"message" : "Your test message"}
}

More details about test message by Postman here:
http://stackoverflow.com/questions/22168819/android-test-push-notification-online-google-cloud-messaging

It works for me...

@macdonst
Copy link
Member

macdonst commented Sep 2, 2015

@tyrtok when the app is in the background do you get the notification in the notification shader?

@tyrtok
Copy link
Author

tyrtok commented Sep 3, 2015

Problem solved by changing the json data set sent to GCM.

@tyrtok tyrtok closed this as completed Sep 3, 2015
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants