Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The operation couldn’t be completed. Background procssing task was not registered in AppDelegate didFinishLaunchingWithOptions. See iOS Setup Guide. #2071

Open
imGanesh7357 opened this issue Jun 27, 2024 · 1 comment

Comments

@imGanesh7357
Copy link

imGanesh7357 commented Jun 27, 2024

How to fix this error

The operation couldn’t be completed. Background procssing task was not registered in AppDelegate didFinishLaunchingWithOptions. See iOS Setup Guide.

my AppDelegate.m +++++++++++++++++++++++++++

#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h>
#import <Firebase.h>
#import <TSBackgroundFetch/TSBackgroundFetch.h>

@implementation AppDelegate

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    self.moduleName = @"siddhiananta";
    // You can add your custom initial props in the dictionary below.
    // They will be passed down to the ViewController used by React Native.

    // [REQUIRED] Register BackgroundFetch
    [[TSBackgroundFetch sharedInstance] didFinishLaunching];
    [application setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIntervalMinimum];

    self.initialProps = @{};
    [FIRApp configure];
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
    }

  • (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
    {
    #if DEBUG
    return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
    #else
    return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
    #endif
    }

@EnD

@imGanesh7357 imGanesh7357 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
@imGanesh7357 imGanesh7357 reopened this Jun 27, 2024
@christocracy
Copy link
Member

Post your Info.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants