I was working on a project for my studies and everything was working fine, but I changed my OS to win11 while wiping all previous data.
Now Firebase is stuck on "loading" after using any type of sign in. Real time database data is not showing as well. After around 5-10 of waiting auth will sometimes work continuously (can sign in, sign out multiple times, until running app again) but database never.
Everything works well when i use physical device. Apps without firebase work fine on emulator. Internet connection works. Example app that doesn't work: https://github.com/firebase/quickstart-android
I have:
Used multiple different emulators(those with google play) with different sdk
Changed SHA1 and google-servies.json
In Settings -> Appearance & Behavior -> SDK Tools downloaded and activated Google play service
Reinstalling Android Studio, installing win10 again
Updated Google Play services version
Tried different projects on different firebase accounts
Activated Sign-in methods in firebase console
Searched web for several hours and done many other things I can't even remember now
The only error I'm sometimes getting is: E/FirebaseInstanceId: binding to the service failed
and this error when I use new emulator for the first time: E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: AUTHENTICATION_FAILED. Won't retry the operation.
E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.
E/FA: Missing google_app_id. Firebase Analytics disabled.
E/FA: Uploading is not possible. App measurement disabled
For me it looks like something is blocking(or really slowing down) connection between android studio emulator and firebase.
I would be very grateful for any kind of help, its really important for my studies.
What fixed my problem was installing an older version of android emulator form this website:
https://developer.android.com/studio/emulator_archive
I was using Android Emulator (31.3.10) Beta 1 and switching to Android Emulator (30.9.5) solved the problem.
I think it's the emulator... Or at least it was for me. I was working with version 31.3.10 and had the same problem. App would not connect to the Firebase server in the emulator. Firebase Authentication would eventually work but took forever to login. Firebase was only using local data. Queries to Firebase returned results only from the cache (which was empty anyway), and I could see that (QuerySnapshot.metadata.isFromCache was true).
Tried reinstalling the app, deleted the emulator image and made a new one, nothing worked. Internet access on the emulator was fine, I could browse web pages etc.
Only thing that worked was downgrading the emulator. I went back to 31.2.10, cause I knew that one worked. You can get older versions from https://developer.android.com/studio/emulator_archive
I really hope they fix it soon cause it cost me a whole day to figure out wtf. Hope this helps someone else.
I have the same problem. It happened after several updates: Windows and Android Studio. Apparently, it's the emulator (version 31.3.10).
In my case, the solution to the problem is disabling Wi-Fi in the emulator and enabling mobile Internet. Although in fact the connection in Windows remains the same.
I found the solution here. Error in the emulator version 31.3.10. Change the emulator to 30.2.9
https://youtu.be/qo3SbdbXFos
I was using emulator version something like 31.3.10 and upgraded it to 31.3.11. Now problem is solved.
Downgrading will also work but i like upgrading.
Below i have attached the screenshot:
https://user-images.githubusercontent.com/96950460/193184898-28e24140-8b12-4c80-8900-c56d4776619b.png
The problem seems to be the emulator. I updated android studio recently and the code that I had already gotten to speak to firebase stopped working without me editing anything.
Instead of reverting to an older emulator, I switched to using a physical device such as my phone instead.
It fixed it right away.
I have the same issue with emulator 31.3.12. After app startup it can't connect to any Firebase services. After 7 minutes and several retries it worked. Without any interaction from my side.
I am using Firebase Remote Config and Crashlytics.
All of sudden google console started throwing an error message saying - "At least one of your app or app bundles contain an actions.xml file."
I have searched my entire app, there is no actions.xml.
Also used Analyze Apk tool of android studio to cross verify if any lib or other module may adding the actions.xml.
Here is one troubleshoot link from google (link) it describe the process To accept the Actions on Google Terms of Service.
But question remains the same that project doesn't contain any actions.xml.
Is it a console bug or I am missing anything.
This was very weird but when I tried to upload the apk after sometime it worked perfectly fine without any error messages.
As I rightly mentioned in the question there was no action.xml and action tag anywhere in my entire project.
It seems to be a console bug in my case.
It was a Google Play Console bug:
Thanks for your patience while our team investigated the behavior you experienced.
They have recently made some changes that should fix the problem. With the recent set of changes, please check to see if you are still experiencing the same issue. If so, I will be happy to see how else we can help.
Please ensure to clear your browser's cache and cookies first using the instructions available in our help center before accessing the Play Console again.
I know that this problem has been consulted before, but no answer gives me a solution.
I want to use Xamarin.Form.Maps and I can not see the map. I have tried with a simple application of mine and with the WorkingWithMaps example
https://developer.xamarin.com/samples/xamarin-forms/WorkingWithMaps/
In both tests I get the same attached image:
From my Samsung device
I have tested on my Samsung device and emulator.
I have already successfully created my Google Maps API v2 key from the suggested link:
https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=vswin
I do not get compilation errors.
I have also modified my Android manifest as indicated. In the case of WorkingWithMaps everything is set. I have also enabled the necessary permissions.
I have updated Visual Studio, Nugets and the Google Play Services app ...
And, honestly, I do not know what else to do ...
Any help, please?
Thanks in advance.
The code builds and runs but I am getting Google Play services issues as follows. I do not know what I am missing. I am using Xamarin Android Player (XAP) emulator.
In the Reference
Xamarin Android Player was deprecated some time ago, so we would not advise using it anymore as it will no longer be updated.
Having said that, we do have some old instructions here which may assist with this question: https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator
One of the motivations of XAP was to make it easy to have a well-performing emulator. Moving forward, we suggest using AVDs from Google which are now just as fast thanks to HAXM: https://developer.xamarin.com/guides/android/getting_started/installation/accelerating_android_emulators/
I am trying to automate an android application using Robotium. I am trying to find the id's of the elements using Hierarchyviewer on the emulator. When I launch my app on the emulator it says "Update Google Play Services" and app closes. I tried all the solutions to updated Google Play Services on Emaultor- NO USE. Tried with AVD - Google API 4.2.2 as well.
Please let me how do I proceed from here.
As pointed out by GrIsHu you should be able to follow what is on that page. If you really cannot get that to work, I might suggest trying to use an alternative emulator Genymotion This makes it really easy to get new emulators that run fast and also gives you a few extra features.