This repo demonstrates a simple example of expo-location as specified in official documentaion
Purpose of this repo is to show that expo location always includes the com.google.android.gms.permission.ACTIVITY_RECOGNITION
example even though official documentation
does not state it.
Debugging shows that permission com.google.android.gms.permission.ACTIVITY_RECOGNITION
is added to the AndroidManifest.xml by dependecy 'io.nlopez.smartlocation:library:3.2.11'
This dependecy is added in expo location in build.gradle
Permission com.google.android.gms.permission.ACTIVITY_RECOGNITION
is added in the smart-location-lib
for geo-fencing features
- clone this repo
- run
npm install
- run
eas build --platform android --profile dev
--> you may need to login to expo - Wait for the build to finish
- Download the resulting apk
- Inspect the permissions of resulting apk. e.g
aapt d permissions YOUR_APK_FILE_HERE'
- Resulting permissions are
package: com.hamdanis.expolocationbare
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.FOREGROUND_SERVICE'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE'
uses-permission: name='com.google.android.providers.gsf.permission.READ_GSERVICES'