🤖Android / iOS
Dependencies
If you only need to support mobile (Android and iOS) add the following dependencies:
Then you can add them to your build.gradle.kts
:
Geocoding Setup
No location permissions are needed for geocoding operations. Compass will use the built-in Android or iOS services. These services can be rate-limited, so make sure you aren't calling them too frequently. Check out the Android documentation as well as the iOS documentation for more information.
Geolocation setup
Location permissions are required for using geolocation on Android and iOS. Compass can handle the permission requesting automatically for you.
Android
On Android you don't need to declare any location permission in your manifest since Compass includes those in the geolocation-mobile
artifact.
iOS
On iOS you are required to edit your info.plist
and add the following entries:
Make sure you change the description for both permissions. You are required to explain to your users why you need their location. Check out the Documentation.
If you don't add these keys to your info.plist
, you will encounter a runtime exception when requesting permissions.
Last updated