Hello
I am sending push notification from android to iOS. I am putting the headers and including a message (which is Json string).
On ios, I am receiving it and I able to see the headers. But how can I extract the message component. I don’t seem to find out how. Any help is appreciated thanks
You can handle push notifications in the didReceiveRemoteNotification method. userInfo contains information related to the remote notification. The message value is associated with the “alert” key.
there is no alert key. There is only ios-alert key which has only the info passed from android in the ios-alert.
Basically the message passed is not populated anywhere in ios userinfo (although it is received correctly on android). This happens when sent from Android to IOS.
As a work around , we are adding a new header called “message” which gets received as a header.
Could you please set a breakpoint on the code where you receive the message and take a screenshot showing what the message contains? Please attach the screenshot to this topic.
Hello
Yes that was my work around. To use custom headers, I was just not sure why the message wouldn’t appear. So you are saying that ios-alert and the message are mutually exclusive