Skip to content

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

@kevinflou

Description

@kevinflou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions