skip to Main Content

Firebase – FCM Push Notifications are only displayed when app is in background

I am using the following code to receive and display push notifications: override fun onMessageReceived(remoteMessage: RemoteMessage) { if (remoteMessage.getNotification() != null) { var title : String = remoteMessage.notification!!.title!! var message : String = remoteMessage.notification!!.body!! val intent = Intent(this, LoginCommonActivity::class.java) intent.addflags(intent.FLAG_ACTIVITY_CLEAR_TOP)…

VIEW QUESTION
Back To Top
Search