export function closeIOSCCPChannel()

in src/index.tsx [73:85]


export function closeIOSCCPChannel(): Promise<PushResult> {
  if (Platform.OS !== 'ios') {
    let result = {
      code: kAliyunPushOnlyIOS,
      errorMsg: 'Only Support iOS',
    };
    return new Promise((resolve, _) => {
      resolve(result);
    });
  }

  return AliyunPush.closeCCPChannel();
}