Jyri Turkia

Jyri Turkia

  • NA
  • 37
  • 1k

How to pass data from firebase push notification to app

Dec 3 2021 2:09 PM

So how to pass data from push notification for app when app is not in froreground?

On android I have tried to add data to Intent extras which works well when app is opened from push notification. If user happens to open app from app icon or app switcher intent extras are null. Clearly I need to figure out some other way to pass that data for app in a way it is accessable regardles how user decides to open app. How should I do this?

Answers (3)