From 079e1dbe180e7a1a5a58cdab90f154157ed07d23 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 24 Jan 2023 19:59:40 -0600 Subject: [PATCH] Fix missing config for background fetch --- ios/app/AppDelegate.mm | 5 +++++ ios/app/Info.plist | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ios/app/AppDelegate.mm b/ios/app/AppDelegate.mm index 7c0e1d8dec..460c319c84 100644 --- a/ios/app/AppDelegate.mm +++ b/ios/app/AppDelegate.mm @@ -8,12 +8,17 @@ // splash screen #import "RNSplashScreen.h" +#import + @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Show the splash screen // [RNSplashScreen show]; + + // Register BackgroundFetch + [[TSBackgroundFetch sharedInstance] didFinishLaunching]; self.moduleName = @"xyz.blueskyweb.app"; return [super application:application didFinishLaunchingWithOptions:launchOptions]; diff --git a/ios/app/Info.plist b/ios/app/Info.plist index bccc5afa0c..dadcb12f40 100644 --- a/ios/app/Info.plist +++ b/ios/app/Info.plist @@ -2,6 +2,10 @@ + BGTaskSchedulerPermittedIdentifiers + + com.transistorsoft.fetch + CFBundleDevelopmentRegion en CFBundleDisplayName @@ -54,6 +58,10 @@ NSPhotoLibraryUsageDescription Used to upload pictures and videos when composing posts, choosing avatars, and so on. + UIBackgroundModes + + fetch + UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities