Closed youngdolphin closed 4 years ago
Same issue i'm facing in android, In iOS i'm able see notification...
This is the expected behaviour for data notifications, we don't have any logic to show them because data notifications can have any format that we can't know about. Try to use LocalNotifications plugin instead of Toast as Toast only works in foreground.
@jcesarmobile Thanks for the reply, with LocalNotifications plugin now i can see notifications while app is in background. Do you please have any suggestion on how i can receive and create notifications even when the app is killed and is not in background?
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
npx cap doctor
output:Affected Platform(s)
Current Behavior
I have a chat in my android app with quickblox. Quickblox should send a push notification (via FCM) when you send a message, but i only receive the notification if the app is in foreground with the PushNotification capacitor API:
When the app is in background, I can see the console log when i receive a message from another user:
but there is no push notifications, and when i reopen the app the toast message appears.
Expected Behavior
The push notification is shown.
Other Information
If I send notifications via FCM console i can see the push notification so i think the issue is not related to it or to some missing authorization.