notificationFailed method

  1. @override
void notificationFailed(
  1. ErrorInfoData errorInfoData
)
override

Implementation

@override
void notificationFailed(ErrorInfoData errorInfoData) {
  // TODO: review notification registration failure handling
  // Ensure we're not creating duplicate notifications on Android due to using
  // registered from register success listener, and notificationSubscribed from
  // conversation client listener.
  final code = errorInfoData.code;
  final status = errorInfoData.status;

  if (code == null) {
    //TODO: review required fields
    return;
  }
  final exception = ErrorInfo(code, errorInfoData.message, status);
  _onNotificationFailedCtrl.add(exception);
}