加油吧打工仔
加油吧打工仔
  • 发布:2025-10-15 10:33
  • 更新:2025-11-01 11:17
  • 阅读:87

【报Bug】ios26中插屏广告的任何回调函数都不触发

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macOS14.3

HBuilderX类型: 正式

HBuilderX版本号: 4.66

手机系统: iOS

手机系统版本号: iOS 26

手机厂商: 苹果

手机机型: iPhone 16

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

iOS26系统测试

预期结果:

iOS26系统测试触发回调

实际结果:

iOS26系统测试不触发回调

bug描述:

ad-interstitial 插屏广告在最新的iOS26系统中,不触发回调(@load,@close,@error)。

2025-10-15 10:33 负责人:DCloud_iOS_WZT 分享
已邀请:
DCloud_iOS_WZT

DCloud_iOS_WZT

提供一下示例项目吧

加油吧打工仔

加油吧打工仔 (作者) - 认真做事的人!

<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>  

要回复问题请先登录注册