Page 1 of 5

Push Service Setup

Posted: Tue Feb 26, 2013 5:43 pm
by Kateryna Grynko

Hi Joe!

Add {deviceid} to URL. REST Service address will look like following:
codehttps://api.tiggzi.com/rest/push/reg/channel/A/7cf54281-5407-4821-a8e8-783958ec1f0e/{deviceid}/code


Push Service Setup

Posted: Tue Feb 26, 2013 11:26 pm
by Joe Bohen

Hi Katya,

Not exactly sure where to set the URL in GetChannels as you describe the settings in the service look like:

Image

Do I change the URL here from {service_url}/{appType}/{guid}/{deviceId} to https://api.tiggzi.com/rest/push/reg/...

The URL within settings looks like:

https://api.tiggzi.com/rest/push/reg/...

Regards,
Joe


Push Service Setup

Posted: Wed Feb 27, 2013 9:05 am
by Maryna Brodina

Hello! In service URL on your screenshot there is a {deviceId} (note that Id starts with a upper-case letter) and your request parameter is deviceid where "Id" starts with lowercase letter. Please change your request parameter to deviceId.


Push Service Setup

Posted: Wed Feb 27, 2013 9:55 am
by Maryna Brodina

Sorry, could you send us screenshots with updated service settings for GetChannels service, Request parameters section and screenshot with Settings service


Push Service Setup

Posted: Wed Feb 27, 2013 10:05 am
by Joe Bohen

Hi Marina,

Settings Service:

Image

GetChannels:

Image

Regards,
Joe


Push Service Setup

Posted: Wed Feb 27, 2013 10:11 am
by Maryna Brodina

Thank's. I'll update


Push Service Setup

Posted: Wed Feb 27, 2013 4:27 pm
by Kateryna Grynko

Hello!

Error 404 appeared because you don't have your device registered.
You can register it via Rest Service:
http://docs.tiggzi.com/tutorials/send...


Push Service Setup

Posted: Wed Feb 27, 2013 5:38 pm
by Joe Bohen

Hi Katya,

Thank you for the update. I have the register device service added to the page it is configured exactly like the example but with the correct GUID in the URL. In reply to another question you describe the parameters required as:

Request parameters:

  • guid: project GUID looks like "1be1131b-5b02-4244-ac30-74868af5db5d"

  • appType: "A" for Android, "I" for iOS

  • deviceId: ID of device

  • token: can't be empty, any symbols are allowed

    The tutorial mentions only two the deviceid and the token. What is the correct method to use?

    Do I need to add the deviceid to the deviceid variable with custom javascript?

    Thanks for your assistance,
    Joe

    Image


Push Service Setup

Posted: Wed Feb 27, 2013 5:58 pm
by Kateryna Grynko

Device ID is stored in localStorage variable "pushNotificationDeviceID". It is created automatically when run on the device.
You need to create localStorage variable for being used in mapping.
Also there is "pushNotificationToken" variable - it's used as a "token" request parameter value.


Push Service Setup

Posted: Sat Mar 02, 2013 10:25 am
by Joe Bohen

Hi Katya,

I have attempted to setup registerDevice as outlined below when trialed on the device I get an error! Will you please advice me on the settings.

The url is set as https://api.tiggzi.com/rest/push/reg/...

The mapping on the service is: Image

Regards,
Joe