Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 882 Bytes

platform_ios.md

File metadata and controls

30 lines (23 loc) · 882 Bytes

iOS

FYI

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.

Setup

  1. Install From NuGet

  2. In your AppDelegate.cs, add the following:

In FinishedLaunching method, add
Plugin.Jobs.CrossJobs.Init();


public override void PerformFetch(UIApplication application, Action<UIBackgroundFetchResult> completionHandler)
{
    Plugin.Jobs.CrossJobs.OnBackgroundFetch(completionHandler);
}
  1. Add the following to your info.plist
<key>UIBackgroundModes</key>
<array>
	<string>fetch</string>
</array>