onGeTuiNotificationMessageArrived method

Future<void> onGeTuiNotificationMessageArrived(
  1. String taskId,
  2. String messageId
)

在自定义的 GTIntentService 的 onNotificationMessageArrived 方法中调用

@param taskId GTTransmitMessage 中携带的 taskId

@param messageId GTTransmitMessage 中携带的 messageId

使用范围: only android

Implementation

Future<void> onGeTuiNotificationMessageArrived(
    String taskId, String messageId) async {
  DMHubLog.v('onGeTuiNotificationMessageArrived->: $taskId,$messageId');
  Map req = {'taskId': taskId, 'messageId': messageId};
  Map result = await _channel.invokeMethod(
      DMHubSDKMethod.onGeTuiNotificationMessageArrived, req);
  // DMHubError.hasErrorFromResult(result);
  return result[DMHubSDKMethod.onGeTuiNotificationMessageArrived];
}