onJPushReceiveRegisterId method

Future<void> onJPushReceiveRegisterId(
  1. String appKey,
  2. String clientId
)

JPush 注册

@param appKey 用户申请的JPUSH 得到的appkey

@param clientId 用户申请的JPUSH 得到的clientId

使用范围: android|ios

Implementation

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