Fix missing config for background fetch

zio/stable
Paul Frazee 2023-01-24 19:59:40 -06:00
parent 869f6c4e0e
commit 079e1dbe18
2 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,8 @@
// splash screen // splash screen
#import "RNSplashScreen.h" #import "RNSplashScreen.h"
#import <TSBackgroundFetch/TSBackgroundFetch.h>
@implementation AppDelegate @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
@ -15,6 +17,9 @@
// Show the splash screen // Show the splash screen
// [RNSplashScreen show]; // [RNSplashScreen show];
// Register BackgroundFetch
[[TSBackgroundFetch sharedInstance] didFinishLaunching];
self.moduleName = @"xyz.blueskyweb.app"; self.moduleName = @"xyz.blueskyweb.app";
return [super application:application didFinishLaunchingWithOptions:launchOptions]; return [super application:application didFinishLaunchingWithOptions:launchOptions];
} }

View File

@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.transistorsoft.fetch</string>
</array>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
@ -54,6 +58,10 @@
<string></string> <string></string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>
<string>Used to upload pictures and videos when composing posts, choosing avatars, and so on.</string> <string>Used to upload pictures and videos when composing posts, choosing avatars, and so on.</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
<string>LaunchScreen</string> <string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key> <key>UIRequiredDeviceCapabilities</key>