I try to use cordova Background Geolocation to send my position to a server in background. But when i put my app in background after some time it stop working. So I tried BackgroundFetch service https://github.com/christocracy/cordova-plugin-background-fetch but doesn't work: the error is:
You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
how can i add fetch to the list of your supported UIBackgroundModes in my Info.plist?
Just do it as it is. Find the Info.plist in your project and add a pair of key/value like this,
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
Once you did it, rebuild it and the warning will disappear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With