使用FCM的Android推送通知无法在后台应用程序中处理。默认消息显示在通知栏中。如何在应用程序处于具有数据负载的后台时处理Android FCM消息?
任何人都可以帮助我如何处理后台应用程序中的消息。
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
}
当应用程序处于背景该方法不被调用。任何帮助对我都有很大的帮助。
http://stackoverflow.com/a/42268901/7320259检查此 –
这就是通知消息的工作方式......正如文档中所述,有2种消息类型......它也是写他们如何工作。 – Selvin
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/试试这个可以帮助您进行背景通知 –