How to use two apps in one Firebase project for push notifications


How to use two apps in one Firebase project for push notifications



I have created one project(TravellerProject) in Firebase developer console... i've added an Android App(UserApp) and i've taken Server key and i used that server key for push notification in to my App Admin site... now i have a new App(DriverApp) related to first App(UserApp)... both are same domain so i didn't created new Project, instead i added one more App in the same project(TravellerProject) with different SHA-1 key... and i was trying to use push notifications for new App(DriverApp). can i use same Server Key for both or i've to create new Server key...?





same key for both will do
– Jinesh Malavia
Jun 29 at 8:53




2 Answers
2



Its really simple. Just open firebase account and select the app in which you want to add another app. you will see the the option to add another app on the top right corner. just click and pass your package name and all the details of your new app.
Now you can use it in both the app. I have included screenshot





i've done already like that only... and i created two apps... i solved my issue... Thanks for your response
– Ramaraju
2 days ago



yes, Server Key is working... in my case problem with com.google.firebase:firebase-core version... previously i am using com.google.firebase:firebase-core:9.0.0 so refresh token was not generating... now i've changed to com.google.firebase:firebase-core:9.0.2... and now it's working... Thank you



enter image description here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift