Location On Dialog Box

I want functionality similar to this Repo:

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?

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)

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

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

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