How to show location permission screen for application using Xamarin forms

Rajat 1 Reputation point
2021-09-21T08:26:31.54+00:00

i am using Xamarin forms and want to open following Location permission page of my app. It would be great help if someone can suggest I need this screen in both #IOS & #Android using #xamarinforms. Thanks in adavnce.

![133912-image.png]1

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,313 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,951 Reputation points
    2021-09-22T06:24:03.587+00:00

    Hello Rajat,​

    Welcome to our Microsoft Q&A platform!

    The page as the picture shown will only be presented when you request the permission for the application. We cannot open the page manaually. After adding the permissions/keys to the configuration file, this dialog will be presented to the user the first time they run the app or when you request the permissions.

    Here are the related docs, you could refer to it:
    https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/accessing-user-data/
    https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/permissions?tabs=windows#runtime-permission-checks-in-android-60

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments