Please note that this framework uses background fetch on iOS. Be aware of the following:
- We cannot guarantee when/if background fetch will wake up
- if you have other frameworks using background fetch, this plugin may not play nice with them since it needs to own the completion handler.
In FinishedLaunching method, add
Plugin.Jobs.CrossJobs.Init();
public override void PerformFetch(UIApplication application, Action<UIBackgroundFetchResult> completionHandler)
{
Plugin.Jobs.CrossJobs.OnBackgroundFetch(completionHandler);
}
- Add the following to your info.plist
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>