解决措施requestEnableNotification首次执行时,会直接弹出通知权限的申请弹窗,且该接口的回调函数与用户是否授权无关。requestEnableNotification非首次执行时,不会弹出通知权限的申请弹窗,且无论是否拥有通知权限,都会直接返回success。
解决措施