Skip to content
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

Handle push notifications when app in the foreground #289

Open
abhijeetviswa opened this issue Jan 11, 2021 · 0 comments
Open

Handle push notifications when app in the foreground #289

abhijeetviswa opened this issue Jan 11, 2021 · 0 comments

Comments

@abhijeetviswa
Copy link
Member

The notification pushed through Firebase is a Notification + Data message (documentation). The framework creates a notification when the app is in the foreground (without the app handling it). However, while the app is in the background, no notification is displayed and instead the app is called back and it's our responsibility to handle the data.

The app had to be modified to handle data from notifications. It is easier to simply duplicate this effect when the app is in the background. We need to style the notification so that it looks similar to the notification created by the framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant