Add a localizable string file and add your own string there. For example, you might have something like:
"Push_String" = "My push string with a line break\n and argument: %@";
Now in your notification payload, use the loc-key and loc-args properties, for example:
"loc-key":"Push_String","loc-args":["My argument!"]
You should now have a line break in your notification.
egarc source
share