Sample Notification
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.
The example below shows how to create a notification that can be passed to SdkConfig.Builder
. We use the android.support.v7.app.NotificationCompat
class to build a notification suitable for both old and new Android versions.
The notification channel, necessary for Android 8 and above, has the channel importance set to IMPORTANCE_LOW
, the minimum recommended by Google for notifications used for running services.
You can quickly test the notification appearance by running a fresh SDK install on an Android Oreo device. The notification will appear the first time the SDK starts automatic detections, or when you manually start a trip. More about this here.
Last updated