I write an application that sends iPhone push notifications via Parse.com.How can I pass a custom data to launchArgs array?
I need to pass to application the field “typeM” with some value (in the my code example it is 4)
I tried to set in the notifications body in the server-side in such a way:
data: {
alert: "You have a new notification" ,
acme1 : { typeM : 4}
}
or:
data: {
alert: "You have a new notification" ,
custom : { typeM : 4}
}
in both cases I receive in launchArgs.notification.custom = []
I also tried to add to config-lua the “acme1” or “custom” fields in iPhone notification block, it also didn’t work. I’ll appreciate your help with this issue, thanks.
[import]uid: 172733 topic_id: 34987 reply_id: 334987[/import]