[firebase_storage]: Error thrown when calling FirebaseStorage multiple times in [Add-to-App] #12988
Open
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: storage
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Storage
Which platforms are affected?
iOS
Description
I have an issue with calling FirebaseStorage functions in embedded(Add-to-App) Flutter applications when launching the applications for the second or third time. I tried calling any function in Dart code but it does not return any value.
Reproducing the issue
Upon checking the iOS code inside firebase_storage package from the message thrown in the console log, I found that in FLTFirebaseStoragePlugin.m function registerWithRegistrar (line 108), I found a condition to check if MethodChannel has already been assigned before, and it will return from that function. Meaning any subsequent function calls to this package does not trigger to native side.
And I have verified with the same register function in other firebase packages, all do not contain that condition to prevent multiple registrations.
Firebase Core version
10.15.0
Flutter Version
3.7.7
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
FYI: the Flutter dependencies that I include are only the dependencies that are related firebase packages
The text was updated successfully, but these errors were encountered: