EddyVerbruggen / nativescript-plugin-firebase

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

Nativescript app stops working after adding firebase plugin #1545

Open adekunle11 opened 4 years ago

adekunle11 commented 4 years ago

My APP used to worked well until this morning when i installed the firebase plugin. i tested it on my s7 edge,it kept saying app has stopped woking . i have added the google-services.json. i guess the problem is with my firebase.init in app.js, but i've tried different ways. still not working

windows 10 Nativescript core/ javascript nativescript plugin firebase @10.3.3

adekunle11 commented 4 years ago

@EddyVerbruggen found out it was a problem with tns android on windows Any fix yet?

EddyVerbruggen commented 4 years ago

Any fix for what exactly?

adekunle11 commented 4 years ago

Thanks for reply I added nativescript-plugin-firebase to my app, since then the app crashea when I start it. And in my cmd after installing the app on the device, it says socket conncection timed out. I'm using the latest version of the plugin and tns android 6.3.1, I saw somewhere that I should try going back to tns android 6.1.0, but it didn't work Now, I've removed the plugin, my apps works but I really need to use it @EddyVerbruggen

mast3rd3mon commented 4 years ago

I have the same issue. Adding this plugin to a standard app created by tns create appname --ng is enough to stop the app from launching

manojdcoder commented 4 years ago

@mast3rd3mon / @adekunle11 Can you share a sample project where the issue can be reproduced?

mast3rd3mon commented 4 years ago

@manojdcoder for me, it was because i had told the setup to enable admob but hadnt set admob up in my app. Spent hours digging into logcat to find the issue

youtpout commented 4 years ago

@manojdcoder for me, it was because i had told the setup to enable admob but hadnt set admob up in my app. Spent hours digging into logcat to find the issue

Oh ty I have the same shit, but if I reconfigure the plugin, admob stay uncomment in build.gradle (search in your project directory, platforms\tempPlugin\nativescript_plugin_firebase for me) // AdMob / Ads implementation "com.google.firebase:firebase-ads:18.3.0"

Don't forget to comment this line

bariscanyilmaz commented 4 years ago

@manojdcoder for me, it was because i had told the setup to enable admob but hadnt set admob up in my app. Spent hours digging into logcat to find the issue

Oh ty I have the same shit, but if I reconfigure the plugin, admob stay uncomment in build.gradle (search in your project directory, platforms\tempPlugin\nativescript_plugin_firebase for me) // AdMob / Ads implementation "com.google.firebase:firebase-ads:18.3.0"

Don't forget to comment this line

I have the same issue. I did what did you say but it doesn't work

youtpout commented 4 years ago

Maybe you have activate other plugins in same file

bariscanyilmaz commented 4 years ago

i fixed it. i forget to set application id in AndroidManifest.xml file

dibya-89 commented 4 years ago

image I am getting this error any help will be appreciated.

EddyVerbruggen commented 4 years ago

@dibya-89 That could be anything. At the very least run adb logcat in a Terminal during the time of a crash to gain some more insight.

manojdcoder commented 4 years ago

@dibya-89 I guess you have randomly enabled all the services, do you really need them?

FYI, the app is crashing now because you have enabled admob but haven't done the configurations. With reference to your sample project posted in SO