I am using Firebase Cloud Messaging and want to display a call. The firebase message is received successfully and the notification part works but i am unable to launch the ShowCallActivity from inside my FirebaseMessagingService when the application has been closed and is DEAD
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
if(remoteMessage.getNotification().getBody().equals("showcall")) {
Log.e(TAG,"Want to start activity");
Intent intent = new Intent(this,ShowCallActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
sendNotification(remoteMessage.getNotification().getTitle(),remoteMessage.getNotification().getBody());
}
}
}
//
The notification is shown but it won't open the dead application.