# Ionic native push registration format changed?

**URL:** <https://forum.ionicframework.com/t/ionic-native-push-registration-format-changed/179928>\
**Category:** ionic-v3\
**Created:** [December 18, 2019, 4:43am UTC](https://forum.ionicframework.com/t/ionic-native-push-registration-format-changed/179928 "2019-12-18T04:43:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elduderino15](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/elduderino15/32/105188_2.png) [@elduderino15](https://forum.ionicframework.com/u/elduderino15)\
**Post date:** [December 18, 2019, 4:43am UTC](https://forum.ionicframework.com/t/ionic-native-push-registration-format-changed/179928/1 "2019-12-18T04:43:05Z")

</div>

I am not sure why but it seems that the interface for push registration changed?

My app follows the logic from

> **[Ionic Framework](https://ionicframework.com/docs/v3/native/push/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

with

```auto
pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration));

```

where `registration` used to be of below type

```auto
export interface PushDevice{
    registrationId: string;
    registrationType: string;
}

```

but now I am getting

```auto
{"registrationId":"{length=32,bytes=0x459ca46ab66f4fe790220809215176d6...21b3436d13e78c64}","registrationType":"APNS"}

```

`registrationID` used to be a string, but now is a dictionary. How shall I handle this ID now? I have to convert it to a push token somehow… What changed? I looked into the phone gap plugin code but I can not find it…

> <https://github.com/phonegap/phonegap-plugin-push/blob/87a8132c071f42d14382f859c1c8436ae634fc69/src/ios/PushPlugin.m>

Did I by accident upgrade my plugin to ionic4?

package.json

```auto
"@ionic-native/push": {
      "version": "4.20.0",
      "resolved": "https://registry.npmjs.org/@ionic-native/push/-/push-4.20.0.tgz",
      "integrity": "sha512-IgzaZd8KSPLwyLX1emRijlQ0Vfa3RlPPBx370lVH32c8zG3DFH1xfQQbb39KF3qmX5b6so0pGGA2holSUwVm2w=="
    },

```

---

<div class="post-metadata">

**Author:** ![elduderino15](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/elduderino15/32/105188_2.png) [@elduderino15](https://forum.ionicframework.com/u/elduderino15)\
**Post date:** [December 18, 2019, 2:00pm UTC](https://forum.ionicframework.com/t/ionic-native-push-registration-format-changed/179928/2 "2019-12-18T14:00:58Z")

</div>

Finally found a lead. Seems this changed with the release of iOS 13.

[https://forums.developer.apple.com/thread/117545](https://forums.developer.apple.com/thread/117545)

The Cordova push plugin has to be updated to v2.3.0 (I have not tested this yet), but my current version is failing because v2.2.3 is accessing the `registrationId` through a wrong method.

> <https://github.com/phonegap/phonegap-plugin-push/issues/2832>
>
> Expected Behaviour
> Apple device with iOS 13.1 should have an APNS token.
> Actual Behaviour
> Apple device with iOS 13.1 does not register an APNs...

  

> <https://github.com/proreact/phonegap-plugin-push/commit/486c8f206536995c80101487b0fed1502edd5754>
