Page 1 of 1

updating device table for push notification

Posted: Fri Feb 07, 2014 9:49 pm
by Ankur Wadhawan

I have gone through the examples..and after creating REST service in my application for updating device table in the database I am trying to do an ajax call with jquery to update the table.. wondering if this would work.. however it isnt.

can you let know why?

code
$.ajax({
type: "PUT",
crossDomain: true,
url: 'https://api.appery.io/rest/push/reg/'+device.uuid,
data: {'X-Appery-App-Id':'73*-46-47e9-b62a-34*******989',
'userName':username,
'userType':usertype
},
});

/code


updating device table for push notification

Posted: Fri Feb 07, 2014 9:58 pm
by Maryna Brodina

Hello! Mark X-Appery-App-Id as header.