Skip to content

Decrypt notification payload before displaying using setBackgroundMessageHandler iOS #6182

Answered by mikehardy
mfbx9da4 asked this question in Q&A
Discussion options

You must be logged in to vote

I think you are going to want Notification Extension yes, you might like https://notifee.app and the docs there

Without a notification extension:
if you do mixed payload, what you get is an SDK-provided notification and then when user clicks data is available
If you do data-only payload, your delivery will not be guaranteed and it will lead to disappointment I think
If you do notification-only, you get a SDK-provided notification

With a notification extension:
you don't have to do data-only, so delivery is better
so you may include a notification payload now, but you get to run code to modify the notification before it's presented

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mfbx9da4
Comment options

@mikehardy
Comment options

Answer selected by mfbx9da4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants