EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 441 forks source link

Barcode Scanning issue on native script 8 with native camera control #1886

Open rajeshjadidminc opened 1 year ago

rajeshjadidminc commented 1 year ago

I have integrated "@nativescript/firebase": "11.1.3" for barcoding scanning by taking the image from the gallery and its working fine in native script 7. I have just migrated my project from 7 to 8, now it's giving me the error as below:

JS: Error in firebase.mlkit.scanBarcodesOnDevice: Error: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.atd.atdmobileapp. Make sure to call FirebaseApp.initializeApp(Context) first. JS: ML Kit error: Error: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.atd.atdmobileapp. Make sure to call FirebaseApp.initializeApp(Context) first.

Please help me @hdeshev @acrollet @Lampei @rhrn i m stuck on this.