expo-location doesnt work

hello how are you?
i found an issue with expo-location while i tried the snack example.
i ran it on the phone by qr code and after that i gave the perrmisions its always on waiting…
and not show the location data.
i am a student and i need to use the expo-location for one project and will be happy if someone will can to help me with it, i used expo-location in the past, but now the snack doesnt work then wanted to know if its issue on my device or an other issue.
tnx a lot and wish you all a great day.

Hey @coolbag0, we’ve seen some reports of an issue regarding Location provider unavailable but are you saying the permission promise never resolves for you?

Cheers,
Adam

Hi adam tnx for the response,
i checked it now and looks that i get the location data again, if ill find an other issue later ill send it here at this topic or if it will close ill open an other one.
tnx a lot and wish you a great day.

tsapeta commented 1 hour ago

Hi everyone,

I’m really sorry you’re encountering this issue on production apps — I can confirm it’s caused by an update to Google Play Services that we can’t really control. That’s a bit of a shame that Google is doing such things. Anyway, we will do our best to release this workaround to our builders. I intentionally don’t name it a fix, because we used the API correctly, according to the documentation.

Please give us some time to precisely test it before the release, we will keep you informed.

{
  "nativeStackAndroid": [
    {
      "lineNumber": 563,
      "file": "LocationModule.java",
      "methodName": "onLocationAvailability",
      "class": "expo.modules.location.LocationModule$1"
    },
    {
      "lineNumber": 4,
      "file": null,
      "methodName": "notifyListener",
      "class": "com.google.android.gms.internal.location.zzav"
    },
    {
      "lineNumber": 17,
      "file": null,
      "methodName": "notifyListenerInternal",
      "class": "com.google.android.gms.common.api.internal.ListenerHolder"
    },
    {
      "lineNumber": 5,
      "file": null,
      "methodName": "handleMessage",
      "class": "com.google.android.gms.common.api.internal.ListenerHolder$zaa"
    },
    {
      "lineNumber": 106,
      "file": "Handler.java",
      "methodName": "dispatchMessage",
      "class": "android.os.Handler"
    },
    {
      "lineNumber": 8,
      "file": null,
      "methodName": "dispatchMessage",
      "class": "com.google.android.gms.internal.base.zap"
    },
    {
      "lineNumber": 246,
      "file": "Looper.java",
      "methodName": "loop",
      "class": "android.os.Looper"
    },
    {
      "lineNumber": 226,
      "file": "MessageQueueThreadImpl.java",
      "methodName": "run",
      "class": "com.facebook.react.bridge.queue.MessageQueueThreadImpl$4"
    },
    {
      "lineNumber": 923,
      "file": "Thread.java",
      "methodName": "run",
      "class": "java.lang.Thread"
    }
  ],
  "userInfo": null,
  "message": "Location provider is unavailable. Make sure that location services are enabled.",
  "code": "E_LOCATION_UNAVAILABLE"
}

Bare RN project - Expo Unimodules
I am getting this on Samsung M30s Android 11

Please let me know how can I fix this @tsapeta @wodin

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.