processPendingActions method

  1. @override
Future<bool> processPendingActions()
override

Checks for pending intent actions cached by native App Intents.

Call this after all intent handlers are registered. Pending actions are delivered via the existing executeIntent mechanism. Returns true if a pending action was found and delivered.

Implementation

@override
Future<bool> processPendingActions() async {
  final result =
      await methodChannel.invokeMethod<Map>('processPendingActions');
  if (result == null) return false;

  final identifier = result['identifier'] as String;
  final params = _convertToStringDynamicMap(result['params']);
  await _emitAndExecute(identifier, params);
  return true;
}