以下是我的Firebase服务:
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
sendNotification("a", "b");
}
private void sendNotification(String title, String text) {
*notification builder code*
}
@Override
public void onCreate() {
super.onCreate();
}
}
我想让他能够在应用程序强制终止后从FCM接收消息(从任务列表中删除)。如何实现呢?