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
(3.2.3) Android app crashes with Java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.{appname}. Make sure to call FirebaseApp.initializeApp(Context) first when calling init()
#515
Comments
Hoping for a solution too.. 😔 |
Same issue |
@bighitbiker3 If you initialize the old way - using build.gradle, you can call As far as this particular FCM issue, we'll investigate, thanks for reporting |
Even calling configure with the old initialization doesn’t fire the id event for me
…Sent from my iPhone
On May 19, 2018, at 11:28, Brad Hesse ***@***.***> wrote:
@bighitbiker3 If you initialize the old way - using build.gradle, you can call OneSignal.configure() in JS to get the ids event to fire.
As far as this particular FCM issue, we'll investigate, thanks for reporting
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@bighitbiker3 the same for me. I tried many things and I had to downgrade to the 3.1.4 version to make it work again along with React Navigation (RN 0.55.4). |
@Nightsd01 The error I get when trying to run I've tried putting it in a timeout to make sure the Android init code is run before I call anything but still get the above error. I'm having a hard time debugging from there because I'm a pretty big newb when it comes to importing external libraries in Android and RN 😅. |
@bighitbiker3 Please try updating to 3.2.4 of the SDK and let me know if that fixes your issue. |
I'm on version 3.2.4 and i'm getting the exact same error message when i call |
I'm using 3.2.4 and having the same error with |
For now, it's working for me: I updated my And also updated my After that I start got some errors, then I changed my
|
@ramonsenadev that worked, thanks! |
To anyone still having trouble with this, note that the React Native setup instructions have recently been updated. This new section in particular is what got everything working for me on 3.2.4. I still had the |
@ramonsenadev Thanks a lot. Your solution worked. Also make sure you update the android support library version I also had to add following at the bottom of app/build.gradle
|
Thanks OneSignal team! Appears to be fixed in 3.2.4. Everyone please check out the link in @jsouza181's comment. Worked great for me |
Description:
When calling
OneSignal.init()
in Android the app crashes with the errorJava.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.reactnativeprototype. Make sure to call FirebaseApp.initializeApp(Context) first
When not calling init and initializing the old way in the
build.gradle
theids
event never fires.Environment
SDK: v3.2.3
Steps to Reproduce Issue:
OneSignal.init()
in Android. App will crash immediatelyThe text was updated successfully, but these errors were encountered: