Vous pouvez contrôler les informations de localisation que votre téléphone peut utiliser. Ouvrez l’application Paramètres de votre téléphone. Sous « Personnel », appuyez sur Accès à la localisation. En haut de l’écran, activez ou désactivez l’accès à ma position.
Disable Location Permission
Hi,
In Xamarin, how can I disable the Location permission for both iOS and Android?
Thanks,
Jassim
2 answers
Sort by: Most helpful
-
-
Sreeju Nair 12,351 Reputation points
2022-05-29T07:57:33.91+00:00 In XAMARIN, you may define the application wide permission for your app by using Manifest. See the following references:
Android: https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/permissions?tabs=windows
iOS: https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/security-privacy?tabs=windowsIf you want to revoke the permission for your app, you can update the info.plist (for iOS) or in the Android Manifest.
It is also possible to request permission by code. For e.g. developers use [Xamarin.Essentials][1] to manage the permissions in the code. Your application need to request for permissions in your app. See the following references
https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/security-privacy?tabs=windows
https://learn.microsoft.com/en-us/xamarin/essentials/permissions?tabs=androidYou may need to refer your code to see to see whether your application is requesting permissions through code.
Hope this helps