I currently using FCM to push notification to my flutter app.
I try to launch the app when the user tap on a notification when the app is in background
I got this terminal log when I try to tap on a notification
E/FirebaseMessaging(24830): Notification pending intent canceled
I also put this in my AndroidManifest.xml
as the official document
<intent-filter>
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
This is my payload of the push notification
{ notification:
{
title: 'title',
body: 'body',
badge: '1',
icon: 'https://miro.medium.com/max/11400/1*lS9ZqdEGZrRiTcL1JUgt9w.jpeg',
click_action: 'FlUTTER_NOTIFICATION_CLICK',
sound: 'default'
},
data: { type: '4' }
}
What did I miss?