如何解决这个问题,有没有人能给我发送任何解决方案
收到了FCM通知,但应用程序没有打开,该如何处理
public void onMessageReceived(RemoteMessage remoteMessage) {
Intent intent = new Intent(INTENT_FILTER);
sendBroadcast(intent);
if (remoteMessage.getData().size() > 0) {
utils.print(TAG, "From: " + remoteMessage.getFrom());
utils.print(TAG, "Notification Message Body: " + remoteMessage.getData());
//Calling method to generate notification
if (SharedHelper.getKey(this,"loggedIn").equalsIgnoreCase(getString(R.string.True))) {
sendNotification(remoteMessage.getData().get("message"));
}
}