Hi,
Is it possible to pass 2 or more parameters per payload?
E.g. to pass newsletter title and a url link.
Push notification payload with more than one parameter
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 35
- Joined: Fri Jul 18, 2014 5:17 am
Re: Push notification payload with more than one parameter
Remember, the payload is of limited length, but you can encode the payload any way you like, and then interpret it on the other side, BUT you should play with push because LC behaves COMPLETELY differently if the app is open/opened via the user tapping on the notification in the notification center/hitting the launch button/clicking on the banner vs. if the app is not running and the user just launches the app.
It is bizarre and I filed a bug report about it, but no fixey, yet.
The most reliable way to handle push, now, is to have the app check to see if it's badge is set, and then go to some url that you've set and see why it's badge is set. How you do this can get a little tricky, and a little complicated, but that's the way it is for now.
It is bizarre and I filed a bug report about it, but no fixey, yet.
The most reliable way to handle push, now, is to have the app check to see if it's badge is set, and then go to some url that you've set and see why it's badge is set. How you do this can get a little tricky, and a little complicated, but that's the way it is for now.