So What i am essentially trying to do is Send a notification from firbase gcm and recieve it on the front end while the app is KILLED. Once the notification is received i want to fetch some data from the server and insert it into the local database. I am currently using react-native-firebase for notification, any help on the same would be highly appreciated.
Asked
Active
Viewed 88 times
0
-
Once the notification is received, you want to fetch relevant data and store them after opening the app or without opening the app? – Samitha Nanayakkara Oct 27 '18 at 09:54
-
Opening the app is not necessary. Every thing need to work while the app is killed. – Amol Gupta Oct 27 '18 at 14:38
-
Opening the app is not necessary. Every thing need to work while the app is killed. – Amol Gupta Oct 27 '18 at 14:38
-
1Not going to happen. Notifications are received by the system when your app is not active. User can click notification to activate app but there is nothing you can do until they do. This is by design. – Wainage Oct 27 '18 at 14:58
-
Can we use a background service of some sort to process the notification ? – Amol Gupta Oct 27 '18 at 15:03
-
Exactly as @Wainage says. As far as I know, there is nothing you can do until user opens the app. You can use background services such as background app refresh. But still app should be running in background. – Samitha Nanayakkara Oct 28 '18 at 12:17
-
ok. Thanks for all the help guys appreciate it. – Amol Gupta Oct 29 '18 at 17:13