3. Configuration

iOS // Configuring Xcode

  1. Go to Signing & Capabilities.

  2. Turn on Background Modes and enable Location updates.

Android // Configuring AndroidManifest.xml

Add the Required Permissions

When targeting API level 29 (Android 10), you must add the following permissions to your app's AndroidManifest.xml file.

AndroidManifest.xml
<manifest ...>
  <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
  <uses-permission android:name="android.permission.ACTIVITY_RECOGNITION"/>
  ...
  
</manifest>

See the Android permissions page for more details.

Customize the Notification

The Sentiance SDK needs to provide a notification to Android, which gets shown to the user when a foreground service is running. You can customize this notification via the AndroidManifest.xml file.

Last updated