Android 14

1. Foreground Service Types

  • If an application targets Android 14, at least one foreground service type must be specified for each foreground service within the application. Developers need to choose a foreground service type that represents the application’s use case. Refer to this document for more information on foreground service type changes to be made within Android Manifest.

  • If the application calls the foreground service startForeground() without declaring the appropriate foreground service type permission, the system throws a security exception. This error message occurs if a trip fails to start due to denied location permission: (New Error Code: Location_Permission_Denied)

  • Zendrive SDK manifest files already adds the below permissions, so there is no specific action required from developers:

    • Manifest.permission.ACCESS_FINE_LOCATION

    • Manifest.permission.ACCESS_COARSE_LOCATION

2. Action for Application Developers:

Developers integrating SDK v10.0.1 and targeting Android 14 (API level 34) need to make the following changes:

  • Upgrade dependency packages as per the above dependency version tables. Contact Zendrive in case of any discrepancy in the package versions used by the app.

Was this helpful?