Skip to content

Can't get background/quit state push notification events #4235

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

You must be logged in to vote

If you include notification payload on iOS, when you are not in the foreground, you asking the SDKs to handle the JSON when it comes in. You won't get control (in the handler) until the user interacts with the notification

https://github.com/aevaldas/RNFirebaseTestEA/blob/9482735df19da5305473e4afa14d92b6369540ed/index.js#L10-L12

Looks correct but if you want the background/quit state stuff you need to go data only I think

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@aevaldas
Comment options

Comment options

You must be logged in to vote
1 reply
@mikehardy
Comment options

Answer selected by andersonaddo
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