Hi,
I have been trying to implement notifications and I recieve them but there is no message, alert, or custom.
They are always empty.
My server is written in C# and as mentioned the notifications are recieved by the app but they are empty.
I/Corona ( 5039): \*\*\*\* REMOTE NOTIFICATION \*\*\*\* I/Corona ( 5039): type remote I/Corona ( 5039): name notification I/Corona ( 5039): custom table: 0x7790c8c0 I/Corona ( 5039): alert I/Corona ( 5039): applicationState active I/Corona ( 5039): \*\*\*\* CUSTOM \*\*\*\*
(There is nothing when I loop over event.custom)
Right now the string that my server sends to GCM looks like this:
"custom=hello&alert=tomas&collapse\_key=score\_update&time\_to\_live=108&delay\_while\_idle=1&data.message=" + message + "&data.time=" + System.DateTime.Now.ToString() + "®istration\_id=" + this.DeviceID.ToString() + "";
But I have been trying several forms including the one that I found on several pages:
{ alert:"An alert with custom data", badge: 1, sound: "default", custom: { foo: "bar" } }
I see that more people have had problem with this:
http://forums.coronalabs.com/topic/48026-unable-to-send-custom-data-to-ios-2014/
I have read the instructions several time but I might be missing something:
http://docs.coronalabs.com/guide/events/appNotification/index.html#notification-data
I would prefer not to use a 3rd party due to sensitive information.
Best regards,
Tomas