Dolphin MOVE SDK
2.x
2.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
        • Access Control
        • Configuration
        • Timeline
        • Points of Interest
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
        • Troubleshooting
      • React Native
      • Flutter
      • Move SDK CLI
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Setup
        • Services
      • React Native
        • Components
        • Initialization
        • Services
      • Flutter
        • Initialization
        • Services
    • Models
      • Listeners/Callbacks
      • MoveAssistanceCallStatus
      • MoveAuth
      • MoveAuthError
      • MoveAuthResult
      • MoveAuthState
      • MoveConfig
      • MoveConfigurationError
      • MoveDevice
      • MoveDeviceStatus
      • MoveGeocodeError
      • MoveHealthItem
      • MoveHealthScore
      • MoveOptions
        • DeviceDiscovery
      • MoveSdkState
      • MoveSdkAndroidConfig
      • MoveTripState
      • MoveScanResult
      • MoveServiceFailure
      • MoveServiceWarning
      • MoveShutdownResult
    • Appendix
      • Token refresh
      • Android
        • Permission Handling
          • Permission Overview
          • Runtime Permissions
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
      • React Native
        • Permission Handling
  • MOVE Backend
    • MOVE Backend
      • MOVE Admin API
      • MOVE TIMELINE API
      • MOVE State API
      • MOVE Last Location API
    • MOVE Generic Notifier
    • MOVE Assistance Notifier
    • Example requests
  • FAQ
  • Changelog
    • Android
    • iOS
    • React
    • Flutter
    • Backend
  • 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

PreviousRuntime PermissionsNextNotification Management

Last updated 1 year 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 from the Play Store. 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