title: Phonegap plugin push returns strange format of iOS device token on iOS 13 and higher
body: <p>I'm using phonegap-plugin-push in an ionic 3 app.</p>
  <p>However lately as more phones get updated to iOS 13 and above the registration of devices wont work anymore.</p>
  <p>Device makes a call to an api on our side that in turn registeres phone with azure push hub.</p>
  <p>This is how i have set up the registration process ionic.</p>
  <pre><code>   const options: PushOptions = {
        android: {
          senderID: &quot;58846546653626&quot;,
          icon: 'pushicon',
          iconColor: '#7BC3AD' //light blue green thingy
        },
        ios: {
          alert: &quot;true&quot;,
          badge: &quot;true&quot;,
          sound: &quot;true&quot;
        }
  
      };
  
      this.pushObject = this.push.init(options);
  
      this.pushObject.on('registration').subscribe(data =&gt; {
        this.pushRegister(data);
      });
  
    pushRegister(data: any) {
      // Get the native platform of the device.
      let platform: any = device.platform;
      // Get the handle returned during registration.
      let handle: any = data.registrationId;
      // Set the device-specific message template.
      let infoToRegister: any = {
        &quot;Platform&quot;: (platform == 'android' || platform == 'Android') ? 'gcm' : 'apns',
        &quot;DeviceToken&quot;: handle,
        &quot;Tags&quot;: [] //set serverside based on authorization
      }
      let url = (globalVars.serverurl+ 'api/Register');
  
      let options = this.dataService.getRequestOptions();
  
      let body: string = JSON.stringify(infoToRegister);
  
      this.httpClient.post(url, body, options).subscribe(successResponse =&gt; {
        console.log(successResponse);
      }, errorResponse =&gt; {
        console.log(errorResponse);
      });
    }
  </code></pre>
  <p>This all works well with phones running iOS below 13.</p>
  <p>However with iOS 13 registrationId looks totally different and the api method that registered to azure push hub throws an error: <em>One or more characters in device token is not a hexadecimal digit.</em></p>
  <p>Example of posted data from iOS 13 that fails:</p>
  <pre><code>{&quot;Platform&quot;:&quot;apns&quot;,&quot;DeviceToken&quot;:&quot;{length=32,bytes=0xc0d97379b07611f8e4e7529e3ee02e1d...d0a4e98468524d88}&quot;,&quot;Tags&quot;:[]}
  </code></pre>
  <p>Is there any way to get the correct token ? as seen above the bytes is also truncated so i guess i cant register with that either.</p>