Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

getchannels

SWEET !!!!!!

Jon Crump
Posts: 0
Joined: Tue Dec 11, 2012 8:34 pm

getchannels

Thank you for the sample project, when I try to run it and use the Subcribe Channels, I see this error message:

api.tiggzi.com/rest/push/reg/channel/A/1be1131b-5b02-4244-ac30-74868af5db5d/device1
346ms1ms
add
api.tiggzi.com/rest/push/reg/channel/A/1be1131b-5b02-4244-ac30-74868af5db5d/device1
131ms1ms
add
api.tiggzi.com/rest/push/reg/channel/A/1be1131b-5b02-4244-ac30-74868af5db5d/device1
130ms1ms

HeadersPreviewResponseCookiesTiming
{"code":"undefined","description":"Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@14e135d; line: 1, column: 2] (through reference chain: com.exadel.tiggzi.pushservice.model.ChannelList[\"channels\""])""}

Do we need to change any of the guids / database id in the sample project?"

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

getchannels

Please be sure that you use id that you get with GetChannels service.

Jon Crump
Posts: 0
Joined: Tue Dec 11, 2012 8:34 pm

getchannels

Ok, it's working now within the project, but not when I run in the browser.

Is it possible to receive notifications when testing in the brower or the app has be deployed to a device / emulator?

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

getchannels

Push notifications are for device only.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

getchannels

Well I'm getting there...
Question. Is the device registration sent to your DB? Or do I need to use my own withe devide id and Token fields?
Not sure on this.

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

getchannels

Yes, devices are registrated on our server.

Jon Crump
Posts: 0
Joined: Tue Dec 11, 2012 8:34 pm

getchannels

I tried this in a button push click event:

alert(PushNotification.getDeviceUniqueIdentifier());

running in an emulator i see no alert?

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

getchannels

This code should work for emulator also:
codewindow.plugins.pushNotification.getDeviceUniqueIdentifier(function(id){
alert(id);
});/code

Jon Crump
Posts: 0
Joined: Tue Dec 11, 2012 8:34 pm

getchannels

Thanks, that works.
So in the emulator I can get the device id and then register the device, but when I try to get the channels using the device id it fails.
But the above works testing in Tiggzi with "device1".

Return to “Issues”