-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Expo] Error: You attempted to use a firebase module that's not installed on your Android project by calling firebase.app(). #9
Comments
Looks like issue is missing some details, can you add? |
Sorry, I accidentally hit enter. Now it's complete :) |
Now it's complete. I'll be grateful if you can give some insights what can be changed to make it work. |
Having the same issue. Correct me if I am wrong, but I believe it has something to do with FlyerChat using the React Native Firebase dependency, separate from the Firebase JS SDK, which is not usable on the managed workflow utilized by Expo. |
Oops completely missed that! We are working on a big update for React Native with new features and Firebase package will be updated too. I will take a look at Expo too. |
When can we expect this update? And in the meantime, is there anything developers using Expo's managed workflow can do? |
@aaryashahk I have never used Expo before, so I can't suggest anything. PR with an update is already in the UI repo, I just need to find some time to review it, so in the near future. |
I understand. Does this PR with the update that's already in the UI repo have the capability of working with Firebase in Expo's managed workflow? |
@aaryashahk UI and Firebase are not related packages. We separated them completely in order for people to use whatever they want, not requiring the other part. From what I know UI has no problems with Expo whatsoever. |
Yes, UI works perfectly fine on Expo. Incorporating Firebase is the problem in Expo since FlyerChat is using react-native-firebase, which is not compatible with Expo's managed workflow. Are you going to add support for FlyerChat's Firebase BaaS to work on Expo's managed workflow? |
@aaryashahk you are saying that Expo does not support |
I think that expo supports |
It should work in a bare workflow anyway? The question was about managed workflow I suppose. To do that I will need to rewrite everything using JS SDK. |
It also works now with the managed workflow using custom dev clients and expo config plugins. |
Hi, @hirbod I am using expo managed workflow and was trying to implement Firebase messaging but getting the same error "Error: You attempted to use a firebase module that's not installed on your Android project by calling firebase.app()." Can you please let me know what specific steps you took while implementing? |
hey @KMNowak, did you get any solution to fix it ? |
Unfortunately not, I was applying that to PoCs I was building and gave this specific one up. Anyway, I hope someone will find a solution, so you will get unstuck. |
Has anyone fixed it? I keep having the same trouble for a long time |
please don't use this package @cryptodev6 - not maintained for a very long time. Just keeping it as a placeholder in case I will be able to return to it. |
General
What bug do you experience? 🐞
While using with Expo 42.0.0, calling
fetchUser
returns:How can it be reproduced? 🤔
A few steps to define where does the bug occur.
Step 1. Create new app with Expo 42.
Step 2. Create project in Firebase and add it to the application.
Step 3. Sign in (e.g. Anonymously), get user and try call
fetchUser(firebaseUser.uid)
What behavior is expected? 💡
The method
fetchUser
should be called correctly.Extras
Code snippets 📝
Minimum example:
Environment info
Please specify the react, react-native, react-native-firebase-chat-core versions.
react: 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz
react-native-firebase-chat-core: 1.0.1
npx react-native info
output 👇Platform
Device: sm-g781b
OS version Android 11
The text was updated successfully, but these errors were encountered: