SWEET !!!!!!
SWEET !!!!!!
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?"
Please be sure that you use id that you get with GetChannels service.
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?
Push notifications are for device only.
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.
Yes, devices are registrated on our server.
I tried this in a button push click event:
alert(PushNotification.getDeviceUniqueIdentifier());
running in an emulator i see no alert?
This code should work for emulator also:
codewindow.plugins.pushNotification.getDeviceUniqueIdentifier(function(id){
alert(id);
});/code
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".