-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
FirebasePlugin._onAuthIdTokenChange() fires before device ready, FirebasePlugin undefined #888
Comments
I removed all plugins, restarted on a clean project and it works, so it's due to another plugin. |
Leaving this as information for the next guy, this breaks everything
|
Reopening hoping someone is facing the same problem. Most of the official plugins break this plugin and this sounds pretty odd to me. |
Closing again cause it randomly breaks or works. Looks like cordova-android or cordova at large is not stable anymore. I have no idea what's going on. |
Aaaand reopening again. Would anyone be kind enough to try to build with the following plugins
This breaks here 100% of the time and give the issue described in the OP. PS : same thing happens when I add plugins to your test app |
Have the same error after update plugin to version 16.5.0 |
Could be related to apache/cordova-android#1605 |
Opened an issue here : apache/cordova-android#1715 |
I could fix this issue by adding a timeout of 2000ms the first time it runs, then 0ms once it has run.
|
I have the same problem, but the app and all plugins still work fine after the error. It would be nice if the error was fixed though. |
Same problem here, causing quite a few ANR's on android, with latest cordova android version 13.0.0 |
It appears this error only happens on API 33, on first start of the app. |
…prevent calling functions on the plugin JS API before Cordova has loaded the plugin JS namespace. Relates to #888
…prevent calling functions on the plugin JS API before Cordova has loaded the plugin JS namespace. Relates to #888
This should now be fixed in v17.0.0 of the plugin: on both Android & iOS, it now checks the plugin if is initialised (if the plugin JS API has been loaded by Cordova) before attempting to call the JS API. If not initialised when attempting to call the JS API from native, it queues up the calls and invokes them when the plugin has been initialised. |
Bug report
FirebasePlugin._onAuthIdTokenChange() is called before device ready, FirebasePlugin undefined at that time.
After device ready, FirebasePlugin is defined.
Expected behavior:
FirebasePlugin._onAuthIdTokenChange() to start after device is ready
Screenshots
Environment information
Cordova 12.0.0 ([email protected])
[email protected]
Windows 10 x64
Pixel 4a with Android 13
Node v20.9.0
Code
The text was updated successfully, but these errors were encountered: