-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android GCM Weird behavior v1.6.2 #157
Comments
@DowsingUK Hard to tell why you get silent notifications from the information you provided. Can you share a more complete example if your notification payload? |
I'm using same code as the example: const settings = push = new PushNotifications(settings); const data = |
Do you need phonegap compatibility mode? Have you tried |
Also you posted basically the example with empty default values but it's not clear which payload you specify in the |
I've been using the same payload in a previous version 1.4.1 and everything works fine I'm actually using that version in production right now it's a stable one at least in my case just looking forward to update if you help me with this bug. I do not need phonegap mode actually the first thing I tried was disabling it with not positive outcome as I describe in the main post I have use phonegap: true and that's making every push notification a silent one if I remove phonegap property or set it to false I get "error": "InternalServerError" |
Would be interesting to get more details of |
@DowsingUK Any update on this? Do you still experience these issues? |
Same issues with this package, push works fine if I send push from FCM console |
Hi there I'm developing an app using Java I'm using your package and when I use these settings* everything works I even get silent push notifications in my Android devices I don't know why they're in silent mode I'm even using silent: false but I keep getting silent notifications I have tried every combination of settings and nothing else seems to work and then if I use this** or this*** I just get "error":"InternalServerError" after call ****
*gcm:
{
id: config.fcm_server_id,
phonegap: true
}
**gcm:
{
id: config.fcm_server_id,
phonegap: false
}
***gcm:
{
id: config.fcm_server_id
}
****push.send(registrationIds, data).then(function(result)
{
log(result);
//This prints this info here not in catch function so I'm guessing something's wrong in your side
"method": "gcm",
"multicastId": [
xxxxxxxxxxxxxxxxxx
],
"success": 0,
"failure": 1,
"message": [
{
...
"error": "InternalServerError"
}
]
})
.catch(function(err)
{
log(err);
//never gets call
});
The text was updated successfully, but these errors were encountered: