Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Marshmallow 6.0.1 onMessageReceived()被多次调用_Android_Android Notifications_Firebase Cloud Messaging_Android 6.0 Marshmallow - Fatal编程技术网

Android Marshmallow 6.0.1 onMessageReceived()被多次调用

Android Marshmallow 6.0.1 onMessageReceived()被多次调用,android,android-notifications,firebase-cloud-messaging,android-6.0-marshmallow,Android,Android Notifications,Firebase Cloud Messaging,Android 6.0 Marshmallow,我正在使用Firebase推送通知。所有其他移动设备显示一个通知,但我的棉花糖6.0.1显示40到50个通知。 google.message\u id每次都会更改 @Override public void onMessageReceived(String from, Bundle data) { // this method is called multiple times } 在您的项目中更新firebase,解决了我的问题有相同的问题。onMessageReceived每分钟都会

我正在使用Firebase推送通知。所有其他移动设备显示一个通知,但我的棉花糖6.0.1显示40到50个通知。
google.message\u id
每次都会更改

@Override
public void onMessageReceived(String from, Bundle data) {
    // this method is called multiple times
}

在您的项目中更新firebase,解决了我的问题

有相同的问题。onMessageReceived每分钟都会打电话。请将其添加为评论,不值得将其作为回答。我没有足够的声誉添加评论,我可以删除我的回答。我已经在使用“com.google.firebase:firebase messaging:15.0.2”。但不起作用