Open PabloPG opened 3 years ago
I'm having the same issue @EddyVerbruggen
Kindy assist
I have the same issue, working with nativeScript 7.2 + angular. It works on IOS but it fails on Android. I'm using my own appId so I replace the firebaseBucket. I get this error
JS: HMR: Hot Module Replacement Enabled. Waiting for signal. JS: Error in firebase.init: Error: com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instanc e: Specify DatabaseURL within FirebaseApp or from your getInstance() call. JS: Angular is running in development mode. Call enableProdMode() to enable production mode. JS: firebase.init error: Error: com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call. JS: ERROR Error: Uncaught (in promise): Run init() first!
I resolved the issue - 1- Download again the google-services.json from Project Settings. My mistake was to enable the database after I have downloaded google-services.json. Just download it again from the Firebase site. 2- Run tns platform clean android 3- Run tns run android
After starting a new project with nativescript 7 + angular, I installed nativescript-plugin-firebase.
When I try to start firebase, I get this error: