应用程序终止后,FCM无法在Vivo中工作

问题描述

当应用被杀死时,FCM可以在所有设备上正常工作,但vivo,oppo除外。 我尝试在应用程序的设置中启用自动启动,但是仍然无法正常工作。 我们会因为更长的时间而陷入这一问题。 任何帮助,将不胜感激。 在此先感谢!

 @Override
public void onMessageReceived(RemoteMessage remoteMessage) {
    AppLog.e(TAG,"Firebase From: " + remoteMessage.getFrom());

    if (remoteMessage == null) return;

    // Check if message contains a notification payload.
    if (remoteMessage.getNotification() != null) {
        AppLog.e(TAG,"Firebase Notification Body: " + remoteMessage.getNotification().getBody());
    }

    // Check if message contains a data payload.
    if (remoteMessage.getData().size() > 0) {
        AppLog.e(TAG,"Firebase Data Payload: " + remoteMessage.getData().toString());

        handleDataMessage(remoteMessage.getData());
    }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)