registerForPushNotifications static method

Future<void> registerForPushNotifications({
  1. required String email,
})

Register for push notifications

email User's email address that will be sent to the backend along with the device token This ensures the backend can associate the device token with the correct user

Implementation

static Future<void> registerForPushNotifications(
    {required String email}) async {
  _checkInitialization();
  debugPrint(
      'Go Mailer: Registering for push notifications for user: $email');
  await _channel
      .invokeMethod('registerForPushNotifications', {'email': email});
}