enableOfflinePush method Null safety

  1. @Deprecated("Use [setSilentModeForAll] to instead")
Future<void> enableOfflinePush()

Turns on the push notification.

Throws A description of the issue that caused this exception. See ChatError

Implementation

@Deprecated("Use [setSilentModeForAll] to instead")
Future<void> enableOfflinePush() async {
  Map result =
      await PushChannel.invokeMethod(ChatMethodKeys.enableOfflinePush);
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}