【发布时间】:2017-12-02 03:24:30
【问题描述】:
public class Notification extends FirebaseMessagingService {
private static final String TAG = "MyFirebaseNotification";
@Override
public void onMessageReceived(final RemoteMessage remoteMessage) {
Map<String, String> data=null;
Log.v(TAG,"notification Received");
Log.v(TAG,remoteMessage.getData().toString());
}
}
应用程序被杀死时没有调用方法。即使应用程序被杀死,我如何接收通知,而不是在前台或后台。
【问题讨论】:
-
看我的回答here
标签: android firebase firebase-cloud-messaging