Location On Dialog Box

#1

I want functionality similar to this Repo:
RNLocationEnabler

How to show dialog box for user to enable their location using expo. With await Location.getProviderStatusAsync() I can only see the status. But, how to actually prompt a dialog that enables the location?

#2

I believe you’re looking to use the Permissions api here: https://docs.expo.io/versions/v27.0.0/sdk/permissions

(See Expo.Permissions.LOCATION)

#3

With that I am only able to know if user has enabled or disabled GPS. But, how to actually show a dialog box that can enable GPS from the app itself

#4

Hi! I believe you’re looking for Permissions.askAsync.

closed #5

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