PaulG
PaulG

Reputation: 7102

Is there a way to set the TYPE of a push notification in iOS?

My app is now receiving push notifications from two different PHP scripts on our server. One is for new data, one is for incoming messages.

In my push's payload, can I set something that will tell my app the TYPE of the push notification?? I mean I know I can set the badge number, alert message, and sound. But is there a hidden message I can send that says "Message" or "Data" so that my app can handle each type appropriately??

Thanks a lot.

Upvotes: 0

Views: 244

Answers (1)

Furkan Mustafa
Furkan Mustafa

Reputation: 794

yes, you can send any data outside of 'aps' key in your payload.

Upvotes: 1

Related Questions