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.
Asked
Active
Viewed 364 times
1 Answers
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
-
1no i mean automatically open the app not on click the notification when the app in background or killed like whatsapp call – Mostafa ALZOUBI May 31 '20 at 16:10
-
see whatsapp call how open the call screen without any user action – Mostafa ALZOUBI May 31 '20 at 16:10