Hi, I only receive pushnotifications when the app is in foreground. Then the “receivedMessage” is nicely called. I’m not getting any notification when the app is closed or is running in the background.
What do I need to add/change to get the messages in my notificationcenter at that time?
If you’re not receiving notifications when the app is in background (but they’re delivered when the app is in foreground), that’s most probably because the JSON payload you sent does not have the right structure. It is important that it contains the alert element, otherwise the OS treats it as a silent notification that should not be added to the notification bar.
Sorry, no experience with that service. Though I would expect them to know exactly how to deliver a notification that shows up in the notification centre, so perhaps playing around with createMessage params will lead to success.