Closed Rhysjc closed 7 years ago
Found a solution to this, submitting it here for anyone having the same issue.
It seems that Firebase creates an Intent when you open an app via a notification tap. All you need to do is get your intent with getIntent()
, then all key/value pairs from your data
object will be available via intent.getExtras()
.
Is there any way we can get the
data
field on a notification when the app has been opened by tapping the notification?It seems like the listener we register with
setFCMListener
only gets called when the app is running.