transistorsoft / react-native-background-fetch

Periodic callbacks in the background for both IOS and Android
MIT License
1.43k stars 191 forks source link

Documentation clarification for iOS #491

Closed wmonecke closed 1 month ago

wmonecke commented 1 month ago

Hey!

I was reading the docs and I am not sure how to interpret this line:

The Android plugin provides a HeadlessJS implementation allowing you to continue handling events even after app-termination

Does this imply that react-native-background-fetch on iOS won't work on app termination or that it won't run when the device is started up and the user hasn't opened the app and put it in say background mode?

Will gladly submit a PR to expand the documentation regarding this behavior.

Thank you!

christocracy commented 1 month ago

iOS background-fetch no longer operates after App terminate. This is a decision by Apple.

background-fetch for iOS has no concept of stopOnTerminate: false

christocracy commented 1 month ago

See the ⚠️ about iOS at the top of the readme