One Android app receives push notifications from two different Firebase project - android

I created two Firebase projects for the same Android app.
One for development
Other for production.
For development, I was compiling my application with my google-service.json from the dev Firebase project and now I'm compiling with the file from the production Firebase project.
The problem is I'm still receiving push notifications from the dev
project on the app I compiled with the production
google-service.json file. I checked Firebase Settings and every id I
have found are different in dev and production. So how is it
possible that I'm still receiving notifications from the dev project?
Note: I'm not using a back-end to send notifications, I'm doing everything from the Firebase console.
Thanks a lot,

Related

should we use same google-services.json for both ios and Android in firebase?

We are developing app for both Android and iOS. we are implementing firebase analytics as well as crashlytics. I am not sure if we have to create diff. google-services.json for iOS and android or should we use same in both?
Each platform has a different config file. Android uses google-services.json, and iOS has GoogleService-Info.plist. You get them separately from the console, and they can't be interchanged.

How to remove the Firebase Cloud Messaging SDK from Unity?

I want to display an Android notification with a large image whenever I send a notification from FCM (I have included the data payload with a URL for the image). The Android app can be in background or foreground.
I did not know earlier that this is not directly possible with the Unity SDK for FCM. So now I have a Unity project which I'll need to export the project to Android Studio and do something, according to this thread: https://github.com/firebase/quickstart-unity/issues/146#issuecomment-389579086
What I've figured is (maybe I'm wrong) I'll need to remove the FCM SDK from Unity and add the Android SDK in Android Studio and follow the steps for Android. So I deleted all the FCM specific files from my project, reimported other SDKs (Firebase Database, Firebase Auth, Firebase Analytics, Firebase Remote Config, Facebook SDK and GoogleMobileAds SDK) to ensure I didnt break any of these SDKs in the process.
Before exporting to Android Studio, I tried building directly from Unity to make sure I'm making stable builds, but the app crashes as soon as I open it. This is probably happening because the Messaging SDK has irreversibly changed the entry point to a MessagingUnityPlayerActivity, and I have already deleted it.
How do I safely remove the Messaging SDK? Or is there any other solution to my problem?

No clients were able to be added to your Firebase project

I recently released an Android App on the playstore this app is currently linked with both Google's Admob and Google's firebase for analytics, after a while I started working on an update that includes FIREBASE NOTIFICATIONS when I tried to connect firebase to the project I got this error:
Firebase
No clients were able to be added to your Firebase project for the following reasons:
An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing project list.
Client Package Name: xxxxxxxxxxxxxxxxxxxxxxxxx
Client SHA1: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
How to fix this without loosing my previous analytics stats ?
You Should Use The existing App And Include Feature For Push Notifications at Firebase console or firebase assistant in studio
As you are creating a new project in firebase assistant for push notifications but you have aldready added this app for another services it Wont use two firebase projects for Single application so Make Sure You Are Going With The Past Project which you have done for admob and then go to cloud messaging amd enable it then you will successfully connect
If any errors again i can Help
Thank you
And If You Created Aldready you can import that project into previous project but make sure that you use same firebase account
https://firebase.google.com/support/faq/
Use this link to know about importing projects

Google Sign In method with Firebase not working through version control shared project in Android Studio

I have a team working on a project which uses Firebase for storing data and Google Sign in for authenticating users and their own stored data.
The problem is that everything works fine on my computer when I run the application through Android Studio (tried on 3 mobile phones), but when I share my code with my team through Git, they cannot sign in for some unknown reason. Then I've built an APK file and suddenly it all worked (they managed to run application on their phones).
Can anyone explain what is the main cause of this problem and how could I possibly edit the project to deliver a working project to my teammates on Git?
Your teammates should add a SHA fingerprint to your project in the firebase console. You can do that in your project's settings -> general and "ADD FINGERPRINT"

Can I use the same Firebase project to get push notification for both android and iOS application?

I have create a firebase console project for testing push notification service and use the json.plist file in an android project. Now I want to test it for iOS application. So can I use the same firebase console project for iOS push notification implementation or need to create different google firebase console project and plist file?
Yes, you can use the same Firebase Project when using FCM to both Android and iOS.

Categories

Resources