react-native-background-fetch: Not able to run on iOS
Your Environment
- Plugin version: 3.0.3
- Platform: iOS
- OS version: 12 - 13
- React Native version: 0.61.5
- Plugin config
Expected Behavior
What I expect is the ability to update my app in background on iOS and Android.
Actual Behavior
Currently, the background fetch works for Android without any problems. But we were never able to do the same for iOS.
I started to work on it with the 2.7.0. When I Simulate Background Fetch everything was good. But in the facts, on real devices, even after several weeks/months, any background fetch doesn’t seems to fire.
So when I saw that a 3.0.0 was released I tryed to test it. But I faced some other problems. I have follow the new iOS setup but without any success, even worse. Simulate Background Fetch doesn’t work anymore and all I get is that XCode error:
2020-02-24 10:10:41.862467+0100 united-dev[45458:18364223] [TSBackgroundFetch performFetchWithCompletionHandler] 2020-02-24 10:10:41.862564+0100 united-dev[45458:18364223] [TSBackgroundFetch scheduleBGAppRefresh] com.transistorsoft.fetch 2020-02-24 10:10:41.862707+0100 united-dev[45458:18364223] Warning: Application delegate received call to -application:performFetchWithCompletionHandler: but the completion handler was never called.
I don’t know what the problem is 😕
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 27 (12 by maintainers)
I am running into the same issue and don’t have a solution yet.
First, I was unaware of are the extra steps needed for iOS (and iOS 13). These are described under docs/INSTALL-AUTO-IOS.md but there is no mention of them in the main README. It would be a great time saver if these additional docs were mentioned on the main page.
Secondly, to eliminate any simulator debugging issues, I built a release version of the app and installed it on a real device. Still the fetch is never triggered. My code is fairly straightforward:
I am using react-native-background-fetch@3.0.3 on a device running iOS 13.3.1.
Any thoughts on how to make this work?