Java FCM,检查是否成功交付
我创建了JavaRESTAPI服务,我需要向android设备发送推送通知,我的代码是Java FCM,检查是否成功交付,java,android,firebase,firebase-cloud-messaging,Java,Android,Firebase,Firebase Cloud Messaging,我创建了JavaRESTAPI服务,我需要向android设备发送推送通知,我的代码是 Pushraven.setKey("KEy"); Notification raven = new Notification(); raven.title(title) .text(message) .color("#ff0000") .to("User token");
Pushraven.setKey("KEy");
Notification raven = new Notification();
raven.title(title)
.text(message)
.color("#ff0000")
.to("User token");
FcmResponse response = Pushraven.push(raven);
Pushraven.setNotification(raven);
System.out.println("Respose: "+response.getResponseCode());
raven.clear();
问题是,如何检查我的通知是否成功带到设备上,
response.getResponseCode()
总是返回200,但有时消息没有到达设备上客户端是什么平台?android平台可能重复