parse-push-plugin icon indicating copy to clipboard operation
parse-push-plugin copied to clipboard

Ionic 4 - Android not sending device tokens to parse server

Open kevinflou opened this issue 5 years ago • 0 comments

Hi everyone,

I have my ionic 4 App that doesn't send my device token to my parse server, it was working on ionic 3 on the same app, i've included everything in config.xml like so : <preference name="ParseAppId" value="xxx" /> <preference name="ParseServerUrl" value="xxx" /> <preference name="ParseClientKey" value="xxx" /> <preference name="ParseGcmSenderId" value="xxx" /> <preference name="ParseMultiNotifications" value="true" /> <preference name="ParseNotificationIcon" value="icon_notification" /> <preference name="ParseAutoRegistration" value="true" />

And also logged in app.component.ts to retrieve installation id `this.parseBackend.ParsePushPlugin = window['ParsePushPlugin']; if(this.parseBackend.ParsePushPlugin){

  this.parseBackend.ParsePushPlugin.getInstallationId(id => {
    console.log('Retrieved install id from app.component.ts: ' + id);
  }, err => {
    console.log('Failed to retrieve install id from app.component.ts: ' + err);
  });`

Which logs correctly in the console But when i go to the console of the parse server (sashido.io), the deviceToken is null Capture d’écran 2020-07-09 à 14 07 39

Can somebody can help me with that ? Thank you everyone ! :)

kevinflou avatar Jul 09 '20 12:07 kevinflou