isActive method
Whether a given live notification is currently rendered on this device
Implementation
Future<bool> isActive(String liveNotificationId) async {
_checkInitialized();
try {
final result = await LiveActivitiesChannel.invokeMethod<bool>(
method: LiveActivityMethod.isActive,
arguments: {'liveNotificationId': liveNotificationId},
);
return result ?? false;
} catch (e) {
log('PPGLiveActivities: isActive failed - $e');
return false;
}
}