ios26中uni-app插屏广告的任何回调函数都不触发
ios26中uni-app插屏广告的任何回调函数都不触发
操作步骤:
- iOS26系统测试
预期结果:
- iOS26系统测试触发回调
实际结果:
- iOS26系统测试不触发回调
bug描述:
| 信息类别 | 详细信息 |
|---|---|
| 产品分类 | uniapp/App |
| PC开发环境操作系统 | Mac |
| PC开发环境操作系统版本号 | macOS14.3 |
| HBuilderX类型 | 正式 |
| HBuilderX版本号 | 4.66 |
| 手机系统 | iOS |
| 手机系统版本号 | iOS 26 |
| 手机厂商 | 苹果 |
| 手机机型 | iPhone 16 |
| 页面类型 | vue |
| vue版本 | vue3 |
| 打包方式 | 云端 |
| 项目创建方式 | HBuilderX |
更多关于ios26中uni-app插屏广告的任何回调函数都不触发的实战教程也可以访问 https://www.itying.com/category-93-b0.html
3 回复
<template>
<ad-interstitial
ref="adInterstitialRef"
adpid="1111111113"
:loadnext="false"
v-slot:default="{ loading, error }"
@load="onadload"
@close="onadclose"
@error="onaderror">
<view v-if="error">{{ error }}</view>
</ad-interstitial>
</template>
<script setup>
import { ref } from 'vue'
// 加载广告
const adInterstitialRef = ref()
const loadAD = () => {
uni.showLoading({
title: '加载广告...'
})
adInterstitialRef.value.show()
}
const onadload = e => {
uni.hideLoading()
console.log('onadload', e)
}
const onadclose = e => {
uni.hideLoading()
console.log('onadclose', e)
}
const onaderror = e => {
uni.hideLoading()
console.log('onaderror', e)
}
defineExpose({
loadAD
})
</script>
<style lang="scss" scoped></style>


