Hi @slumbergroup ,
Can you let me know which version of the Android SDK you are using? I know you can disable location tracking but I am not too sure if you can completely remove the permission. I believe Amplitude will still work, but it would be difficult to identify some users and their locations. However, applying trackingOption APIs for latlng
will do the job not to report location data.
For Android SDK, there is V 2.25.1 https://github.com/amplitude/Amplitude-Android/releases/tag/v2.25.1 to address this issue. It won’t add location permissions anymore to manifest file. I hope this helps!
Kind Regards,
Denis
I’m currently using the latest Android Kotlin SDK (according to the installation guidelines here). I might try switching over to the Android SDK you suggested instead!
Hi @slumbergroup ! Android SDK is legacy so I would try to stick with Android Kotlin SDK, but you should be able to still use the SDK but some things may not be tracked. Let me ask this internally and I will get back to you!
Thanks for letting me know @Denis Holmes. It is a bit older than we’d like to use, so if you don’t happen upon a solution, we might just have to request it of our users!
Hey @slumbergroup !
I got a reply from our Engineers! You can still use the Kotlin Android SDK without this permission, but the country
field will be empty.
I am also sharing where they found the code:
Thanks!
Thank you for the help, @Denis Holmes!
@Denis Holmes I actually found a solution to removing the permission from our app. Not sure why it was so difficult to find, but it’s actually incredibly simple. You can just add a “remove” command within your App’s Manifest as follows:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" tools:node="remove"/>
Cheers!
Indeed, as I said above “You can still use the Kotlin Android SDK without this permission”. Glad you found it!