小程序
小游戏
企业微信
微信支付
扫描小程序码分享
小程序已经上线运营,appid:wxf02cd82ec6308641
苹果13用户在报名时会调用requestSubscribeMessage,但是却直接返回了reject,没有弹出框询问。
苹果13用户是首次进入该小程序的,没有拒绝过,而且进入设置中,没有“通知管理”选项。
其他用户都能正常使用。
请官方技术帮忙看看为什么会这样?
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
他拒收这个模板了,联系你们开发者就行了
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
const handleSignup = () => {
registerFormRef.value.validate().then(async ()=>{
uni.requestSubscribeMessage({
tmplIds: [tmplId],
async complete(res) {
console.log('订阅消息complete:', res)
if (res[tmplId] === 'accept') {
try {
const resp = await http.post('/xxx/signup', registerForm)
if(resp.success) {
uni.showToast({ title: '报名成功', icon: 'success' })
}else {
uni.showToast({ title: resp.message, icon: 'none' })
}
} catch (error) {
console.error('报名失败:', error)
uni.showToast({title: '报名失败', icon: 'none'})
} else {
uni.showModal({
title: '请允许接收初赛预约通知',
content: JSON.stringify(res),
showCancel: false
})
}).catch(err => {
console.log('表单验证失败:', err);
不像开发者
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
他拒收这个模板了,联系你们开发者就行了
const handleSignup = () => {registerFormRef.value.validate().then(async ()=>{uni.requestSubscribeMessage({tmplIds: [tmplId],async complete(res) {console.log('订阅消息complete:', res)if (res[tmplId] === 'accept') {try {const resp = await http.post('/xxx/signup', registerForm)if(resp.success) {uni.showToast({ title: '报名成功', icon: 'success' })}else {uni.showToast({ title: resp.message, icon: 'none' })}} catch (error) {console.error('报名失败:', error)uni.showToast({title: '报名失败', icon: 'none'})}} else {uni.showModal({title: '请允许接收初赛预约通知',content: JSON.stringify(res),showCancel: false})}}})}).catch(err => {console.log('表单验证失败:', err);})}不像开发者