export function clearAndroidNotifications()

in src/index.tsx [249:262]


export function clearAndroidNotifications(): Promise<PushResult> {
  if (Platform.OS === 'ios') {
    let result = {
      code: kAliyunPushOnlyAndroid,
      errorMsg: 'Only Support Android',
    };
    const promise = new Promise<PushResult>((resolve, _) => {
      resolve(result);
    });
    return promise;
  }

  return AliyunPush.clearNotifications();
}