Page 3 of 5

getchannels

Posted: Mon Feb 11, 2013 4:19 pm
by Emmz

SWEET !!!!!!


getchannels

Posted: Mon Feb 11, 2013 7:45 pm
by Jon Crump

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?"


getchannels

Posted: Mon Feb 11, 2013 7:49 pm
by Kateryna Grynko

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


getchannels

Posted: Mon Feb 11, 2013 8:00 pm
by Jon Crump

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?


getchannels

Posted: Mon Feb 11, 2013 8:08 pm
by Kateryna Grynko

Push notifications are for device only.


getchannels

Posted: Mon Feb 11, 2013 8:24 pm
by Emmz

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.


getchannels

Posted: Mon Feb 11, 2013 8:35 pm
by Kateryna Grynko

Yes, devices are registrated on our server.


getchannels

Posted: Mon Feb 11, 2013 8:38 pm
by Jon Crump

I tried this in a button push click event:

alert(PushNotification.getDeviceUniqueIdentifier());

running in an emulator i see no alert?


getchannels

Posted: Mon Feb 11, 2013 9:39 pm
by Kateryna Grynko

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


getchannels

Posted: Tue Feb 12, 2013 3:56 pm
by Jon Crump

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