enableNotificationAndroid method Null safety
Set push notifications (only supported on the Android platform). For the iOS platform, please do not grant the notification permission. The setting takes effect only when updateNotificationConfigAndroid is configured.
[enableRegularNotification] - Specify whether to send notifications on regular messages.
[enableRevokeMessageNotification] - Specify whether to send notifications on message recalling.
Implementation
Future<NIMResult<void>> enableNotificationAndroid({
required bool enableRegularNotification,
required bool enableRevokeMessageNotification,
}) {
return _platform.enableNotificationAndroid(
enableRegularNotification: enableRegularNotification,
enableRevokeMessageNotification: enableRevokeMessageNotification,
);
}