jpush-api-java-client
jpush-api-java-client copied to clipboard
cn.jiguang.common.resp.APIRequestException: {"error":{"code":1003,"message":"The registration_id 140fe1da9e22a23f92f is invalid!"}}
1、消息结构1,可以推送成功。 return PushPayload.alertAll(ALERT) 2、消息结构2,推送失败,提示错误“The registration_id 140fe1da9e22a23f92f is invalid!” return PushPayload.newBuilder() .setPlatform(Platform.android()) .setAudience(Audience.registrationId(registrationId)) .setNotification(Notification.alert(ALERT)) .build(); 3、Registration ID 140fe1da9e22a23f92f 使用 极光网页测试,推送成功。
请问什么原因???
另外怎么构建一个消息机构,指定设备推送,消息标题和内容。