simulatePush method
Feed a push envelope into the rendering pipeline — testing only
Android only; a no-op on iOS. Lets you exercise the parse → render
pipeline without a backend. See LIVE_ACTIVITIES.md for envelope
examples.
Implementation
Future<void> simulatePush(Map<String, String> data) async {
_checkInitialized();
try {
await LiveActivitiesChannel.invokeMethod<void>(
method: LiveActivityMethod.simulatePush,
arguments: {'data': data},
);
} catch (e) {
log('PPGLiveActivities: simulatePush failed - $e');
}
}