requestBackgroundExtension abstract method

Future<bool> requestBackgroundExtension({
  1. Duration duration = const Duration(seconds: 30),
})

Requests a temporary execution extension from the mobile OS (e.g. beginBackgroundTask on iOS).

Returns true if the background extension was granted by the host OS.

Implementation

Future<bool> requestBackgroundExtension({
  Duration duration = const Duration(seconds: 30),
});