Returns true if device is ignoring battery optimizations for your app.
In most cases, the SDK performs normally with battery optimizations enabled.
Prepare a request to show Android’s Ignore Battery Optimizations settings screen.
Does not immediately redirect — returns a DeviceSettingsRequest first so you can
decide whether to prompt the user (eg: avoid annoying them if seen === true).
⚠️ On some devices/OS versions, this screen may not exist; callers should catch errors.
Prepare a request to show a vendor-specific “Power Manager” screen (Huawei, Xiaomi, Vivo, etc).
Does not immediately redirect — returns a DeviceSettingsRequest first.
Not all vendors/versions implement this screen; callers should catch errors.
Execute a previously prepared DeviceSettingsRequest to actually show the screen.
Resolves true if the redirect was attempted.
Device Settings API (types-only).
Provides an API to show Android & vendor-specific Battery / Power Management settings screens that can affect performance of the Background Geolocation SDK on various devices.
See: https://dontkillmyapp.com/
Example