Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push Service Setup

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push Service Setup

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Service Setup

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Service Setup

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push Service Setup

Hi Marina,

Settings Service:

Image

GetChannels:

Image

Regards,
Joe

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Service Setup

Thank's. I'll update

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push Service Setup

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...

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push Service Setup

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push Service Setup

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.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push Service Setup

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

Return to “Issues”