You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
This is related to #373
When android receives remote notification, onNotification method wont fire until you explicitly click on notification. Any ideas how to get it fire, once notification was received ?
The text was updated successfully, but these errors were encountered:
So, on iOS, that's how it is supposed to work. You don't receive the notification until you actually click the notification itself. I think the thing you may be looking for is called a data notification where you pass in data and not alert into the notification you send from your server. I believe alert triggers a visual alert and the data is a silent alert. I could be wrong, but that is my understanding.
Are you actually receiving the notification on Android when you click the notification? I am not. I can only get it to work on iOS.
My scenario is the following (testing only on Android for now):
the server pushes a notification through GCM.
if the app is in the foreground, it receives the notification, and onNotification is called twice:
--- when the notification arrives
--- upon click
Means: all good here!
However, if the app is in the background, onNotification is not called. And it's not called even when I click the notification!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
This is related to #373
When android receives remote notification, onNotification method wont fire until you explicitly click on notification. Any ideas how to get it fire, once notification was received ?
The text was updated successfully, but these errors were encountered: