Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/56.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
Java FCM,检查是否成功交付_Java_Android_Firebase_Firebase Cloud Messaging - Fatal编程技术网

Java FCM,检查是否成功交付

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");

我创建了JavaRESTAPI服务,我需要向android设备发送推送通知,我的代码是

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平台可能重复