Backendless Support
 
Solved

Device registration for push notification, -- 401 unauthorized error

We

are testing the push notification feature to integrate with our app but I’m not

able to register the device for push notification.

Following

request I’m sending to the API from Fiddler

POST

-- https://api.backendless.com/v1/messaging/registrations

application-id:

6F796A34-D1B7-DB64-FF39-0EC5413CA200

secret-key:

A61604FA-703F-7452-FF10-50568EB65E00

Content-Type:

application/json

application-type:

REST

Host:

api.backendless.com

Content-Length:

126

{

"deviceToken"

: "23234324324234324",

"deviceId"

: "32432432432432432423423434",

"os"

: "IOS",

"osVersion":

"11.0"

}

Error

received:

code=2002

message=Version

is disabled or provided wrong application info (application id or secret key)

Leave a Comment

Comments (6)

photo
1

Hello,

Please check this documentation for v4. There is no version for Backendless 4.

Regards, Olga

photo
1

Thanks for the link, it worked after following version 4.0 documentation

photo
1

Is device token is mandatory to send push notification? I don't register devices in apple.

photo
photo
1

Hi, I'm able to register the device but while sending push notification from Backendless console, I'm not receiving the notification in iPad. My device token field is empty as I don't have it. I used Device id(UDID) to register device.

photo
1
photo
1

Hi Oleg, thanks for your support.

We are using HTML5 with PhoneGap to build cross platform app. We are not sure about getting device id from iPad device and device token for registering device in backendless service..