registerForNotifications method

Future<ResponseStatus> registerForNotifications()

Implementation

Future<ResponseStatus> registerForNotifications() async {
  String result = await CommonChannel.invokeMethod<String>(
        method: ChannelMethod.registerForNotifications,
      ) ??
      "undefined";

  if (result == "success") {
    return ResponseStatus.success;
  }

  return ResponseStatus.error;
}