I want to disable android.permission.ACCESS_BACKGROUND_LOCATION in my Xamarin app.

Wout Ongena 276 Reputation points
2021-11-29T16:24:14.277+00:00

I want to disable android.permission.ACCESS_BACKGROUND_LOCATION in my Xamarin app because I dont need it anymore but when I uncheck the checkbox in the Properties tab:

153444-image.png

And delete the permission request in the android.manifest file itself:

enter image description here

The permission request still seems to be there according to the manifest file from the archived .aab file and also according to the google play dev console. I also searched my entire solution and dident find any other references. Is there anything that causes this request or anything I forgot to delete?

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

Accepted answer
  1. Wout Ongena 276 Reputation points
    2021-11-30T12:56:04.45+00:00

    I fixed it by applying the following line of code in my android manifest file:

    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" tools:node="remove" />
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful