Dolphin MOVE SDK
SDK
1.x
1.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
      • React Native
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Services
      • React Native
        • Initialization
        • Services
    • Models
      • MoveAuth
      • MoveConfig
      • MoveConfigurationError
      • MoveDeviceStatus
      • MoveSDKState
      • MoveTripState
      • MoveAuthState
      • Listeners/Callbacks
    • Appendix
      • Android
        • Token refresh
        • Permission Handling
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
  • MOVE Backend
    • MOVE Timeline
    • MOVE State
    • MOVE Last Location
    • MOVE Generic Notifier
    • Open Api Specification
  • Changelog
    • Android
    • iOS
  • Data privacy (GDPR)
Powered by GitBook
On this page
  • Request battery optimization whitelist
  • Third party battery saving
  1. MOVE SDK
  2. Appendix
  3. Android

Battery optimization

PreviousPermission HandlingNextNotification Management

Last updated 3 years ago

Request battery optimization whitelist

Android has various power-saving modes across all manufacturers. One common feature is the . This mode prevents the application from wakeup and has a negative impact on detection of the MOVE SDK. To circumvent this, the application can request to be whitelisted for such optimizations.

Intent intent = new Intent();
intent.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);
String packageName = context.getPackageName();
intent.setData(Uri.parse("package:" + packageName));

Requesting battery optimizations is not mandatory, but strongly recommended.

Third party battery saving

Google Play allows this request only if the core functionality is impacted. Depending on your usecase of the app, it may get suspended/rejected. Please check the for additional information.

Some manufacturers have their own implementations of battery saving features. Since we cannot cover all manufacturers here, a nice source for tips of keeping the app alive can be found at .

offical docs
dontkillmyapp
doze mode
Ignore battery optimizations