1

I need to launch a specific screen in flutter when I get notification from FCM while app killed/background from native I see this link Launch screen from native background service but I can't achieve it, any help please.

Alok
  • 8,452
  • 13
  • 55
  • 93

1 Answers1

1

I was having this issue and I fixed it by adding "click_action": 'FLUTTER_NOTIFICATION_CLICK' to my data payload in my cloud function. Then in my android/app AndroidManifest.xml, inside the <activity> tag I added:

<intent-filter>
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Mary X
  • 153
  • 2
  • 15