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