How To Send A Notification When The App Is Closed?
I want a notification to happen whenever a child is added from my firebase database. I have the below code working within onChildAdded() while the app is running or in the backgrou
Solution 1:
If the app is closed, your connection to the database may be closed, If you want to deliver messages to an app in that state, you should look at Firebase Cloud Massaging.
An example of this (combining the Firebase Realtime Database and Firebase Cloud Messaging) can be found in this blog post: Sending notifications between Android devices with Firebase Database and Cloud Messaging.
Post a Comment for "How To Send A Notification When The App Is Closed?"