Start a new topic

Invalid credentials for push notifocation

Hi,

I am using angular js and trying to register my device for push notification using the given code:


var newuser=user;

   

                        $http.post('//baas.kinvey.com/push/<appkey>/register-device', {

  "platform": "android",

  "deviceId": deviceUUID

  "userId": newuser._id

})


I am already logged in as an active user.


But i am getting a response saying:

{

debug"No credentials found or missing/malformed header",

description"Invalid credentials. Please retry your request with correct credentials",

error"InvalidCredentials"

}


I am not able to understand what is going wrong here.


please help me with this.

Its really urgent.


Hi,


I figured out the mistake here.

This issues seems to be resolved for now.


But i am stuck again.


When i am trying to send push notification from Kinvey console, it says "202 Accepted".
But the device does not receive any notifications.

Please help me with this.

Hello Maanik,


Can you tell me which library you're using, which version of the library, and the code you're using to invoke the push to your device?


Thanks,

Hi Damien,


Thanks for the reply.

I am using angular js and ionic framework.


this is the code that i am using to register the device:

var newuser=user;

   

                        $http.post('//baas.kinvey.com/push/<appkey>/register-device', {

  "platform": "android",

  "deviceId": deviceUUID,

  "userId": newuser._id

})



Please help me with this.

I am stuck with this since quite long now.


Please share a code snippet or some instruction to correct the issue.


I am already referencing kinvey guide for angular js, But not much is mention there.

Its really urgent.


Login or Signup to post a comment