taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

Ionic 4 - Android not sending device tokens to parse server #145

Open kevinflou opened 4 years ago

kevinflou commented 4 years ago

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="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 ! :)