Skip to content

Runtime exception NSInternalInconsistencyException more scheduler identifiers are registered #14

@krizzu

Description

@krizzu

Hey,

I'm receiving runtime exception:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Launch handler for task with identifier different.sdk.task_processing has already been registered'.

This happens when using react-native-background-fetch alongside different SDK, which also requires registering scheduler identifiers (and does registration on its own). A quick look at the code points to this line which registers everything found in BGTaskSchedulerPermittedIdentifiers entry. Normally I'd patch-package the library, but it comes as a xcframework.

Would it be possible to get an update?

else if ([identifier hasPrefix:@"com.transistorsoft"]) {
  [self registerBGProcessingTask:identifier];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions