0

I have used FCM to receive notification. When my app is killed, I receive the notification but my UI is not updated since onMessageReceived() in FCM is not called. How can I update my UI in activity?

Aparajita Sinha
  • 474
  • 8
  • 20
  • take BroadcastReceiver & intent serivce, you can update UI in handler once that view is on Foreground – user3040153 Feb 16 '17 at 06:36
  • https://firebase.google.com/docs/cloud-messaging/concept-options – Pavya Feb 16 '17 at 08:22
  • https://stackoverflow.com/questions/37358462/firebase-onmessagereceived-not-called-when-app-in-background/37471326#37471326 – Pavya Feb 16 '17 at 08:23

0 Answers0