Skip to content
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

Android Auth intermittently doesn't work, auth/firestore/storage very slow #369

Open
rezamohamed opened this issue Nov 10, 2024 · 0 comments

Comments

@rezamohamed
Copy link

rezamohamed commented Nov 10, 2024

I have noticed that Auth and fetches from FireStore/Storage on Android are very slow, while iOS is very fast.

these are the nugets I am using:

      <PackageReference Include="Plugin.Firebase.Analytics" Version="3.0.0"/>
    <PackageReference Include="Plugin.Firebase.Auth" Version="3.0.0"/>
    <PackageReference Include="Plugin.Firebase.Firestore" Version="3.0.0"/>
    <PackageReference Include="Plugin.Firebase.Storage" Version="3.0.0"/>
And Android specific:
      <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
    <PackageReference Include="Xamarin.AndroidX.Activity" Version="1.9.0.4"/>
    <PackageReference Include="Xamarin.AndroidX.Activity.Ktx" Version="1.9.0.4"/>
    <PackageReference Include="Xamarin.AndroidX.Browser" Version="1.8.0.3"/>
    <PackageReference Include="Xamarin.AndroidX.Collection" Version="1.4.0.6"/>
    <PackageReference Include="Xamarin.AndroidX.Collection.Ktx" Version="1.4.0.5"/>
    <PackageReference Include="Xamarin.AndroidX.Core" Version="1.13.1.3"/>
    <PackageReference Include="Xamarin.GooglePlayServices.Base" Version="118.4.0"/>
  </ItemGroup>

I just checked the 3.1.0 version, but it doesn't seem to have any changes to auth/firestore/storage.

UPDATE: this is often the exception that gets thrown when I do an Auth sign in with username and password.

Firebase.Firestore.FirebaseFirestoreException: Failed to get document because the client is offline.

usually along with this:

System.AggregateException
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

If I wait a few seconds and try again without changing any username or password info it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant