iOS13 APNS Device Token
xinfengmich opened this issue · 2 comments
xinfengmich commented
const pushObject: PushObject = this.push.init(options);
pushObject.on('registration').subscribe((registration: any) => {
console.log('Device registered', JSON.stringify(registration));
// send registration.registrationId with device info to backend server.
}
Expected Behaviour
Get a 64-character hexadecimal string as the following:
Device registered
{"registrationId": "ff37d7e6a223f0014d5409de0b42ffeb16e3059dedcb425b2546f1ada14cd71d",
"registrationType":"APNS"}
Actual Behaviour on iOS 13 and above:
{"registrationId":"{length=32,bytes=0x1f4a86af45959a8947c460dc00262c89...5d57ad5e31d7f9b9}","registrationType":"APNS"}
We need correct registrationIds to save to our Push Server.
Refer to https://nshipster.com/apns-device-tokens/
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version ( iOS 13 + )
Cordova CLI version and cordova platform version
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Plugin version
"phonegap-plugin-multidex": "1.0.0",
"phonegap-plugin-push": "2.2.3",
xinfengmich commented
Seems I need upgrade to 2.3.0 based on f1f1ce8
elnein commented
the same issue ( I`ve installed ver. 2.3.0 )