PathSense Android SDK How to run as Background Service

By default, the PathSense SDK runs as a foreground service. In order to run it as a background service, add to the /assets folder of your app and set the following property to true:
  • background_service=true

Please note that running PathSense SDK as a background service can result in inconsistent performance, and can adversely be affected by Doze mode. We recommend using the PathSense SDK as-is--defaults to a foreground service--and to customize the notification.