Fix missing config for background fetch
parent
869f6c4e0e
commit
079e1dbe18
|
@ -8,12 +8,17 @@
|
|||
// splash screen
|
||||
#import "RNSplashScreen.h"
|
||||
|
||||
#import <TSBackgroundFetch/TSBackgroundFetch.h>
|
||||
|
||||
@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];
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BGTaskSchedulerPermittedIdentifiers</key>
|
||||
<array>
|
||||
<string>com.transistorsoft.fetch</string>
|
||||
</array>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
|
@ -54,6 +58,10 @@
|
|||
<string></string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<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>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
|
|
Loading…
Reference in New Issue