requestBackgroundExtension method

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

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

@override
Future<bool> requestBackgroundExtension({
  Duration duration = const Duration(seconds: 30),
}) async {
  // In-memory simulator grants extensions by default unless disposed.
  return !_isDisposed;
}