Power usage

Power usage

SDK Services are started in high power mode by default to provide the best location accuracy. With high accuracy also comes higher battery consumption, which might be too much for application running in the background for extended periods of time (more than one hour). The battery consumption can be considerably reduced by setting the power mode to low, at the expense of slightly reduced accuracy: the returned position is less accurate and smooth than in high accuracy mode (but still quite good), as it switches off all sensors except the BLE sensor.

 

To change the power mode to low (resp. high to change back), proceed as follows:

Android

 - serviceHandle.setPowerMode(TPOWERMODE.LOW) /*resp. TPOWERMODE.HIGH*/

iOS

- [serviceHandle setPowerMode:DBTPOWERMODE_LOW] /*resp. DBTPOWERMODE_HIGH*/

BatterySaver Mode

This mode is added in version 4.11.12 and currently only used on Android and wear OS.
Activating this mode allows NAOSDK to consume less battery for background usage

This is a new power mode ofTPOWERMODE

 /** accurate power mode */
    HIGH,
    /** low-power mode */
    LOW,
    /** Battery Saver mode */
    BATTERYSAVER,

Activation of this mode releases the processor’s wake-up lock when the user is detected as not moving.

Android

 - serviceHandle.setPowerMode(TPOWERMODE.BATTERYSAVER) 

    • Related Articles

    • Release 4.3

      Release V4.3.6 Date: 16 february 2017 Build: V4.3.6-R17865 Fixed Issue Geofencing handle init behavior: when a NAOGeofencingHandle is first instantiated, it should notify geofencing listener of zones the user is currently in via call to ...
    • Release 23.06 (NAO SDK 4.11.12)

      Versions Component Version NAO® Cloud 23.06 NAO® JS SDK 23.06 NAO® SDK iOS 4.11.12 NAO® SDK Android 4.11.12 NAO® Logger iOS 4.11.12 NAO® Logger Android 4.11.12 New Features NAO® Cloud New map supplier supported: WEMAP map format. Alert ...
    • Background related guidelines

      Your app behavior should be adapted depending on the background permissions you asked for in the app plist, and on the ones granted by your users. Refer to https://docs.nao-cloud.com/docs/mobile-sdk/ios-sdk/configure-your-xcode-project/ for more ...
    • Duress Call API

      NAOSDK – Duress Call API An interface that allows you to send a duress call to NAOCloud with the alert level. NAOSDK API Android - boolean fireButtonPressedAlert(Context context, String alertName, TALERTLEVEL level) iOS - BOOL ...
    • Release 23.03 (NAO SDK 4.11.11)

      Versions Component Version NAO® Cloud 23.03 NAO® JS SDK 23.03 NAO® SDK iOS 4.11.11 NAO® SDK Android 4.11.11 NAO® Logger iOS 4.11.11 NAO® Logger Android 4.11.11 New Features NAO® Cloud Add new management for NAOSDK when exiting site Add possibility to ...