Key value pair for push notification

0 votes
Hi Sharma, Thanks for the reply. The code snippet provided seems to be only for GCM (ie. Google) only. How about iOS (ie. Apple)? Do you have the code snippet for iOS? Thanks. Tian Choh
related to an answer for: Any update on the code snippet?
asked Sep 26, 2016 in Corona by tianchoh (10 points)

1 Answer

0 votes

Hi Tian,

 

You can simply encode the JSON and see the list of keys which are receiving in the Push payload. Once you print the JSON string,you can parse it accordingly on the client side.

To encode the JSON string, simply use the below code and let us know if you need any other help from our side.

 

local JSON = require("App42-Lua-API.JSON")

print(JSON:encode(event))

 

Also, I would request you to put a comment on same thread instead of creating a new question. It will help us to serve better.

  

Regards,

Himanshu Sharma

answered Sep 27, 2016 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...