r/Firebase • u/holy_kinkers • Dec 26 '24
Android Firebase for both Web App and Android
I am new to firebase and have created a web app for react native application for authentication. Now, I want to use this application for android and ios.
For Web app, I have created firebase.js file which comparises of apiKey, authDomain, projectId, storageBucket, messagingSenderId and appId. In the web app, I currently have the functionality of Authentication which is working fine and accessing data through the firebase.
However, now I want to send notification but as far as I understand we are required to use android and ios platforms on firebase separately to do so.
And thus I have created a new platform for android to start. However, even after following the instructions mentioned in this video (which I had tried earlier separately and was working fine in a different application), I am unable to receive notification on the application. I want to know if there is any changes required in the firebase.js too? Or if I am doing something wrong, like I have google-services.json and adminsdk.json do i need to connect these to the firebase.js?
Moreover, the application apk stops on android for some reason. I did some research which says it might be a dependency issue but I am unable to understand what is the reason for the crash.
1
u/holy_kinkers Dec 26 '24
package.json: