setVehicleCrashListener(VehicleCrashListener)
to activate it.isCrashDetectionSupported(TripType)
.StationaryInfo
object (returned by getStationaryInfo()
) by default. If you use this data, please reach out to us before updating to this SDK version.SdkStatus
update will be delivered to your app, with startStatus
set to PENDING
and isBackgroundProcessingRestricted
set to true
so that you can take the appropriate action.com.google.code.findbugs:jsr305
org.tensorflow:tensorflow-lite:2.2.0
. This dependency adds native libraries to your app. To limit their architectures, see here.setCrashCallback(CrashCallback)
is now deprecated. Use setVehicleCrashListener(VehicleCrashListener)
instead.onInitFailure
will return INITIALIZATION_ERROR
with an accompanying SdkException
containing the message "Unsupported OS version."synchronized
method markings. This change is also carried over to any application code when using Proguard. If you're using R8, it will have no impact on your code.WRITE_EXTERNAL_STORAGE
permission is no longer requested by the SDK. Previously, this permission was requested up to API level 18. If you rely on the presence of this permission in the final manifest, please add it manually to your app's manifest instead.reset(ResetCallback)
.WRITE_EXTERNAL_STORAGE
manifest permission is now limited to API level 18 and lower.ACCESS_BACKGROUND_LOCATION
permission is now removed from the SDK's manifest. If you are targeting API level 29+, please add this permission to your app's manifest instead. The inclusion of this permission affected apps targeting API level 28 or lower. For more information about this change, please see here.ACCESS_BACKGROUND_LOCATION
permission has been added to the SDK's manifest. Background location access is mandatory to support proper detections. See Location Permission.android.permission.ACTIVITY_RECOGNITION
permission is required on Android 10 and above to prevent degradation in the detection quality. See Activity Recognition Permission.getPointsOfInterest()
.StationaryInfo.getLocation()
is no longer nullable. A stationary activity is guaranteed to have a proper location.uses-feature
"android.hardware.location.gps" required
attribute to false
.start()
. The expired detection will cause the StartStatus
to become START_EXPIRED
.setUserActivityListener(UserActivityListener)
.InitIssue.INITIALIZATION_ERROR
.OnInitCallback.onInitFailure()
now passes a Throwable
as an additional parameter in case of the aforementioned InitIssue.INITIALIZATION_ERROR
.CHANGED_CREDENTIALS
).Sentiance.isInitialized()
is now deprecated. Use Sentiance.getInitState()
instead, which returns an InitState
enum.isBatteryOptimizationEnabled
isBatterySavingEnabled
isBackgroundProcessingRestricted
android.permission.FOREGROUND_SERVICE
permission required for Android 9.CrashCallback.onCrash()
is now nullable.