Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
819 stars 117 forks source link

Documentation should mention about adding BGTaskSchedulerPermittedIdentifiers to info.plist #129

Closed juho-ylikyla closed 2 years ago

juho-ylikyla commented 2 years ago

Firstly, thank you for this super useful library 🙏

The INSTALL.MD document mentions adding the background processing capability. In order to upload an app that has the mentioned capability, info.plist needs to have BGTaskSchedulerPermittedIdentifiers value set correctly. Otherwise, the upload will error with something like

"Missing Info.plist value. The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' must contain a list of identifiers used to submit and handle tasks when 'UIBackgroundModes' has a value of 'processing'. For more information, refer to the Information Property List Key Reference at https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html."

I can create a PR to update the documentation if you see that to be useful.

Rapsssito commented 2 years ago

@juho-ylikyla, thanks for the feedback! Please, feel free to create a PR!

TheSteveHan commented 2 years ago

I've been looking through the code base trying to figure out why we need to background processing capability on ios without much luck. BackgroundService seems to behave the same way(giving ~30s of run time after app goes to background) on ios with/without the capability? Any pointers @Rapsssito

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 2.6.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: