Reputation: 738
I receiving push alert message in format "0;text;23". If app is active I can parse this message and show in alertView. It's possible to manage text in banner of push notification?
Upvotes: 1
Views: 289
Reputation: 1502
Is there any reason that you don't use standard aps dictionary key-value pairs?
You can add there custom fields if you need and then parse them in app:
{"aps":{"alert":"Your Message","sound":"your_sound.wav","badge":"1"},"custom_key1":"value1","custom_key2":"value2"}
In such way your alert message will always be clean.
Upvotes: 1