尝试了所有的论坛,但仍然不能使它发挥作用。提示通知不起作用。
尝试最大和高优先级和振动全屏内容,什么都没有工作。使用Android-Moto5.1版本。
notificationBuilder.setDefaults(Notification.DEFAULT_ALL);
notificationBuilder.setPriority(Notification.PRIORITY_HIGH);发布于 2017-08-05 17:57:13
最后,我找到了解决办法。在科多瓦-fcm插件MyFireBaseMessagingService.java文件onMessageReceived方法-下面是评论(发送通知)。
sendNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody(), remoteMessage.getData());希望它能帮到别人。我取消了这一行的注释,并增加了它工作的优先级。
https://stackoverflow.com/questions/45382195
复制相似问题