Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

How I can remove location permission for user's? #23

Closed
iderevitskiy opened this issue Mar 15, 2019 · 4 comments
Closed

How I can remove location permission for user's? #23

iderevitskiy opened this issue Mar 15, 2019 · 4 comments

Comments

@iderevitskiy
Copy link

I don't need location tracking. But an app with AppMetrica asks users about it. Tips from page don't work. (https://appmetrica.yandex.ru/docs/mobile-sdk-dg/concepts/unity-plugin.html, about APP_METRICA_TRACK_LOCATION_DISABLED and off Location Tracking parameter in AppMetrica object)

@Trost123
Copy link

Trost123 commented Apr 8, 2019

I have the same question.
Is there a way to avoid this? I don't need location data, all I need is install attributions.
Google warned me about this: https://i.imgur.com/Qx6rJ41.png

@NesterovichAlexey
Copy link
Contributor

NesterovichAlexey commented Apr 8, 2019

You can add following lines to AndroidManifest.xml:

<manifest xmlns:tools="http://schemas.android.com/tools" ...>
    <application>
        ...
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" tools:node="remove" />
    </application>
</manifest>

@Trost123
Copy link

Trost123 commented Apr 8, 2019

Ok, I added APP_METRICA_TRACK_LOCATION_DISABLED to "Scripting Define Symbols" (Unity project settings) and now there is no longer ACCESS_FINE_LOCATION in AndroidManifest.xml (so, problem solved I guess?)
But I wonder why disabling location tracing here in prefab doesn't remove that permission as well?
https://i.imgur.com/w6taJ2Z.png

@NesterovichAlexey
Copy link
Contributor

AppMetrica Push Unity Plugin adds <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> in AndroidMainfest.xml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants