0

Tried all way but not getting output

 var intent = Intent(application, NavigationDrawerActivity::class.java)
 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
 startActivity(intent)
Muthukrishnan Rajendran
  • 11,122
  • 3
  • 31
  • 41
komal mane
  • 21
  • 4

1 Answers1

0

I solved this by sending (payload) data message instead of sending Notification.

 // Check if message contains a data payload.
if (remoteMessage.getData().size() > 0) {
    Log.d(TAG, "Message data payload: " + remoteMessage.getData());

  sendNotification(remoteMessage.getData().get("message"));
 } 

Reference link - https://stackoverflow.com/a/37845174/11201011

komal mane
  • 21
  • 4