2. Configuration
When running in the background, the Sentiance SDK needs to start a foreground service and supply a notification to Android, which gets shown to the user when the service is running. You can customize this notification via the AndroidManifest.xml file.
AndroidManifest.xml
<application ...>
<meta-data android:name="com.sentiance.react.bridge.core.notification_id" android:value="1001"/>
<meta-data android:name="com.sentiance.react.bridge.core.notification_title" android:resource="@string/app_name"/>
<meta-data android:name="com.sentiance.react.bridge.core.notification_text" android:value="Touch to open."/>
<meta-data android:name="com.sentiance.react.bridge.core.notification_icon" android:resource="@mipmap/ic_launcher"/>
<meta-data android:name="com.sentiance.react.bridge.core.notification_channel_name" android:value="Detections"/>
<meta-data android:name="com.sentiance.react.bridge.core.notification_channel_id" android:value="sentiance_detections"/>
...
</application>
Last modified 9mo ago