onMessageReceived() not getting called when app is killed?
问题 I am using Firebase to send push notifications to my app. My app supports till API level 27.I am using FirebaseMessagingService to receive notifications. Inside onMessageReceived() method I am taking data payload and creating own notification in tray. From console I am sending only data payload since i dont want app to create system notifications if the app is in background. Now I am able to get callback in onMessageReceived() when app is in foreground and background. But the issue is its not