xamarin / GooglePlayServicesComponents

Other
313 stars 145 forks source link

GooglePlayServices.Nearby - IGmsServiceBroker.getService failed #802

Open gebs opened 9 months ago

gebs commented 9 months ago

Xamarin.Android Version (eg: 6.0):

13.2.1.2 (d17-5/a8a26c7)

Operating System & Version (eg: Mac OSX 10.11):

Windows 11

Google Play Services Version

Describe your Issue

When trying to use the nearby api the following error is shown in the output:

[Parcel] Expecting binder but got null!
[GmsClient] IGmsServiceBroker.getService failed
[GmsClient] java.lang.IllegalStateException
[GmsClient]     at android.os.Parcel.createExceptionOrNull(Parcel.java:3019)
[GmsClient]     at android.os.Parcel.createException(Parcel.java:2995)
[GmsClient]     at android.os.Parcel.readException(Parcel.java:2978)
[GmsClient]     at android.os.Parcel.readException(Parcel.java:2920)
[GmsClient]     at com.google.android.gms.common.internal.zzad.getService(com.google.android.gms:play-services-basement@@18.2.0:9)
[GmsClient]     at com.google.android.gms.common.internal.BaseGmsClient.getRemoteService(com.google.android.gms:play-services-basement@@18.2.0:14)
[GmsClient]     at com.google.android.gms.common.api.internal.zabt.run(com.google.android.gms:play-services-base@@18.2.0:7)
[GmsClient]     at android.os.Handler.handleCallback(Handler.java:942)
[GmsClient]     at android.os.Handler.dispatchMessage(Handler.java:99)
[GmsClient]     at android.os.Looper.loopOnce(Looper.java:346)
[GmsClient]     at android.os.Looper.loop(Looper.java:475)
[GmsClient]     at android.os.HandlerThread.run(HandlerThread.java:67)

the nearby api is not working.

I think it has something to do with the newest play services version, it was working fine before and if one uninstalls the playservice updates, it will work again.

Relevant information

Link to Demo Project: https://github.com/gebs/NearByTest

Minimal Repro Code Sample

See above

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

Start Project, accept permissions, error will be in console