Open boriswinner opened 5 years ago
Also tried with firebase plugin version 8.3.2, still crashes
I don't see a firebase.nativescript.json
in that repo.
I don't see a
firebase.nativescript.json
in that repo.
Yep, there is no such file in the repo. But why?
I've installed the plugin using the command from README. When I now type
tns plugin add nativescript-plugin-firebase
again, it says:
Plugin "nativescript-plugin-firebase" is already installed.
There is a "nativescript-plugin-firebase" folder in /node_modules with some files and directories.
Also, I was not prompted anything during the installation (tns plugin add nativescript-plugin-firebase)
Also:
teendok-ns/teendok-ns/node_modules/nativescript-plugin-firebase (auth)
$ npm run config
> nativescript-plugin-firebase@9.0.2 config C:\Users\Lenovo\Documents\teendok-ns\teendok-ns\node_modules\nativescript-plugin-firebase
> node scripts/postinstall.js config
NativeScript Firebase Plugin Installation
No existing firebase.nativescript.json config file found and terminal is not interactive! Default configuration will be used.
That line "terminal is not interactive" is the key here. What kind of Terminal / command prompt are you using? Can you try a standard one if you're not already? Otherwise, you'll have to craft that file by hand (I can help with that).
That line "terminal is not interactive" is the key here. What kind of Terminal / command prompt are you using? Can you try a standard one if you're not already? Otherwise, you'll have to craft that file by hand (I can help with that).
I was using Git Bash. I tried again with windows terminal, turned off most of the features including mlkit. There is still no firebase.nativescript.json
in repo, but the app starts correctly now (firebase init done). Thank you a lot for your help!
But anyway, why did not it work out of the box with default config (with more features turned on)?
@EddyVerbruggen . I recently downloaded your firebase plugin (great job) and I am using it for text recognition. After I use my phone camera to take a picture and click on the button for the text recognition code to give me the text in the images, i receive this error "Cannot read property 'android' undefined" Can you please help?
@VACKOM Can you share a sample project?
@manojdcoder Kindly click on the link below for a sample project with error
https://github.com/VACKOM/image-textrecognition/tree/master
Thank you for your assistance.
@VACKOM recognizeTextOnDevice({...})
method expects ImageSource. It may accept Image only if you set imageSource
instead of src
. With your current code, it tries to extract ImageSource
from Image
but fails as you set src.
myImage.src = imageSourceModule.fromFileOrResource("res://back")
With above change, if you hit check text you will see 150 x 150
as result from Firebase.
Also there seems to be an issue with Camera plugin on my device (Android 10), the image fails as the camera module fails to write the image in the anticipated path. If you too have similar issue, you must raise an issue on Camera plugin.
@manojdcoder Thank you so much. The plugin is working perfectly.
Hello! I'm trying to add Firebase Auth to my nativescript vue project.
When I add the init to my main.js:
I get the following error:
What's wrong? Here is the repo with my code: https://github.com/boriswinner/teendok-ns/tree/auth