Skip to content

Significant Delay in IOS setBackgroundMessageHandler #4528

Answered by Salakar
JoeToeniskoetter asked this question in Q&A
Discussion options

You must be logged in to vote

Drive by comment but the 8 second delay comes from this; https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessaging%2BAppDelegate.m#L135

This was added in #4144 due to #4104 - added in favor of working all the time but with a delay vs not working 'some of the time'.

A better solution does need implementing along the lines of what I mentioned in #4104 (comment) - JS needs to tell native that it's ready for the events (it does actually already do this currently so something else there is not working as intended).

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@mikehardy
Comment options

@JoeToeniskoetter
Comment options

@mikehardy
Comment options

@JoeToeniskoetter
Comment options

@mikehardy
Comment options

Comment options

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

@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
3 participants