enableUserNotifications method
- EnableUserPushNotificationsArgs? options,
Enables user notifications.
args
Optional arguments for enabling user notifications.
Returns a Future with the permission result. The result may be null if the operation fails.
Implementation
Future<bool?> enableUserNotifications(
{EnableUserPushNotificationsArgs? options}) async {
final Map<String, Object?> arguments = options?.toJson() ?? {};
return await _module.channel
.invokeMethod('push#enableUserNotifications', arguments);
}