enableOfflinePush method Null safety
- @Deprecated("Use [setSilentModeForAll] to instead")
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;
}
}