FCM iOS: Where is the "from" property in the payload? #5292
Unanswered
pjivers-bom
asked this question in
Q&A
Replies: 1 comment
-
It appears we would pass it through if it came in: I don't have any solid answers but I'd rummage around in firebase-ios-sdk looking for this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a background message handler set up like so:
As you can see, it uses the "from" property included in the message to check the topic the message was sent from, and then delegates to a specific handler. This works great on Android, but for some reason the "from" property isn't present when the message is received on iOS.
I can see from the types definition that "from" is optional, but it doesn't explain what circumstances it gets attached to the message. There are other properties such as "contentAvailable" that are iOS-only, but "from" isn't described in that way.
Is there a reason I get this property in a message on Android but not on iOS? I've noticed that "sentTime" and "ttl" are also missing when messages are received on iOS.
Beta Was this translation helpful? Give feedback.
All reactions