Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
723 stars 330 forks source link

[IOS] - crash/exception on startUpload #237

Open mvehar opened 3 years ago

mvehar commented 3 years ago

When I call startUpload in IOS (RN 0.63.4) i get native exception:

libc++abi.dylib: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You must override the supportedEvents method of fir_7960F02D-FE0F-46DF-BA2D-22F1C17DD6AC_VydiaRNFileUploader' terminating with uncaught exception of type NSException

I'm using version 6.2.0

mvehar commented 3 years ago

Found this issue, solution with disabling Perf. in debug worked. https://github.com/Vydia/react-native-background-upload/issues/122

mkilp commented 3 years ago

@mvehar How exactly did you disable it? I cant find the entry in the AppDelegate. Can you maybe post the code you added to your app?

longseespace commented 3 years ago

@mvehar How exactly did you disable it? I cant find the entry in the AppDelegate. Can you maybe post the code you added to your app?

Here is my swift code

    FirebaseApp.configure()

    #if DEBUG
    Performance.sharedInstance().isDataCollectionEnabled = false
    Performance.sharedInstance().isInstrumentationEnabled = false
    #endif