Open GoogleCodeExporter opened 9 years ago
Hi, I found the solution for you.
JSONObject jo=new JSONObject("{\"aps\":{\"content-available\":1,\"sound\":\"\",\"alert\":\"Some alert\"}}"); PushNotificationPayload payload=PushNotificationPayload.fromJSON(jo.toString());
Only take a String, create the JSON object and pass as String to 'PushNotificationPayload.fromJSON'
It works for me :)
Original issue reported on code.google.com by
sergey.c...@themidnightcoders.com
on 11 Mar 2015 at 3:46