Android Marshmallow 6.0.1 onMessageReceived()被多次调用
我正在使用Firebase推送通知。所有其他移动设备显示一个通知,但我的棉花糖6.0.1显示40到50个通知。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每分钟都会
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”。但不起作用