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

[FA] Failed to retrieve Firebase Instance Id on .Net MAUI #672

Open
Pnixys opened this issue Aug 8, 2022 · 3 comments
Open

[FA] Failed to retrieve Firebase Instance Id on .Net MAUI #672

Pnixys opened this issue Aug 8, 2022 · 3 comments

Comments

@Pnixys
Copy link

Pnixys commented Aug 8, 2022

Hello, I found an issue on MAUI. It's not blovking but I'm curious to find the problem behind this issue.

I used visual studio 17.3.0 Preview 6.0
I work with an emulator Android 11.0 API 30.

Google Play Services Version

118.0.2.1

Issue

So I got this message in my output ([FA] Failed to retrieve Firebase Instance Id) and I don't know why. It's not blocking, but i would understand why I got this message. I link a github repositorie with the code I used. To reproduce the error just launch the solution on an Android platform.

Packages used:

    
	<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'">
	  <PackageReference Include="Xamarin.Firebase.Analytics">
	    <Version>120.0.1.1</Version>
	  </PackageReference>
	  <PackageReference Include="Xamarin.Firebase.Common">
	    <Version>120.1.0</Version>
	  </PackageReference>
	  <PackageReference Include="Xamarin.Firebase.Core">
	    <Version>119.0.1.6</Version>
	  </PackageReference>
	  <PackageReference Include="Xamarin.GooglePlayServices.Basement">
	    <Version>118.0.2.1</Version>
	  </PackageReference>
	</ItemGroup>

The repo with my code.
https://github.com/Pnixys/testfirebase.git

Build settings (tools)
default settings.

Steps to Reproduce (with link to sample solution if possible):

Just run the solution.

Output

[FA] Activity resumed, time: 181976177
[FA] Failed to retrieve Firebase Instance Id
[FA] Connection attempt already in progress

@petermauger
Copy link

Any solution for this @Pnixys ?

@mhdwaelanjo
Copy link

I fixed the problem.. we can use my libraries :

 <PackageReference Include="Anjo.Android.GoogleServices.Ads" Version="22.0.0" />
 <PackageReference Include="Anjo.Android.GoogleServices.AdsBase" Version="22.0.0" />
 <PackageReference Include="Anjo.Android.GoogleServices.AdsLite" Version="22.0.0" />

Supports fixing the problem of Loading ads using :

  • Let's rename for Interstitial ads InterstitialAdLoadCallback to AnjoInterstitialLoadCallback.
  • Let's rename for Rewarded ads RewardedAdLoadCallback to AnjoRewardedLoadCallback.
  • Let's rename for App Open Ads AppOpenAd.AppOpenAdLoadCallback to AnjoAppOpenLoadCallback.
  • Let's rename for Rewarded interstitial ads RewardedInterstitialAdLoadCallback to AnjoRewardedInterstitialLoadCallback.

@raver99
Copy link

raver99 commented May 23, 2024

For me the issue was that the android bundle name was not the same as the one configured in firebase. These 2 must match. Quite obvious when you think about it. But easy mistake and hard to understand from the error message. Hope this helps.

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

4 participants