0
我正在使用phonegap-plugin-push
與Android。雖然我成功註冊設備,但無法使用插件返回的registrationId
成功發送通知。GCM(Android)和PhoneGap無效註冊錯誤
var push = PushNotification.init({
android: {
senderID: "XXXXXXXXXXXX"
}
});
push.on('registration', function (data) {
alert('registrationId: ' + data.registrationId);
});
註冊時的提示讀數爲registrationId: dYeoRp-FIWc:APA91bExJIUVGgpqOh8NNRJ7Ua9vHun7ECN8JWBisFTzrxRYbC1C4cjEpnNsmxzCd7f0o8Hu6Fhp-nrQa5Efw95vtduJKi_o9H2NxeOJUCSX10z48sgDxWmHU7LVbOBa-vZjZVwouhc9
。
的企圖推返回如下: {"multicast_id":6855504054873897650,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}