uni-app iOS 15.4.1没有广告标识提示框

发布于 1周前 作者 eggper 来自 Uni-App

uni-app iOS 15.4.1没有广告标识提示框

示例代码:

We’re looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 15.4.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you’ve implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to undeclare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

  • Tracking is linking data collected from your app with third-party data for advertising purposes, or sharing the collected data with a data broker. Learn more about tracking.
  • See Frequently Asked Questions about the requirements for apps that track users.
  • Review developer documentation for App Tracking Transparency.

操作步骤:

We’re looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 15.4.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you’ve implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to undeclare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

  • Tracking is linking data collected from your app with third-party data for advertising purposes, or sharing the collected data with a data broker. Learn more about tracking.
  • See Frequently Asked Questions about the requirements for apps that track users.
  • Review developer documentation for App Tracking Transparency.

预期结果:

We’re looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 15.4.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you’ve implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to undeclare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

  • Tracking is linking data collected from your app with third-party data for advertising purposes, or sharing the collected data with a data broker. Learn more about tracking.
  • See Frequently Asked Questions about the requirements for apps that track users.
  • Review developer documentation for App Tracking Transparency.

实际结果:

We’re looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 15.4.1.

Next Steps

Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.

If you’ve implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.

If your app does not track users, update your app privacy information in App Store Connect to undeclare tracking. You must have the Account Holder or Admin role to update app privacy information.

Resources

  • Tracking is linking data collected from your app with third-party data for advertising purposes, or sharing the collected data with a data broker. Learn more about tracking.
  • See Frequently Asked Questions about the requirements for apps that track users.
  • Review developer documentation for App Tracking Transparency.

bug描述:

“ios” : { // “UIBackgroundModes” : “audio”, “idfa” : true, “privacyDescription” : {

            "NSUserTrackingUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备、第三方广告、并保障服务安全与提示浏览体验"  
        }  
    },  

按照官网设置 并且云端打包,上架ios被拒

自己本地自定义基座,运行项目到手机6s 系统是15.1也没有广告标识提示框弹出;

配置 App 隐私ios已经确认配置完毕


12 回复

你有用到这个广告标识么,如果没用到勾选了会被拒


有的 微信授权登录等等

前几次我们上版本都行 这次突然被卡 问题设置了也没弹窗提示框啊

回复 优服科技: 设置了不会提示 你用到才会提示 微信授权登录没说要勾选idfa啊? 在哪里看到有说要勾选

回复 优服科技: 一般用广告才会用到 你上个版本是什么版本 没用到idfa去掉勾选就可以了

回复 DCloud_iOS_WZT: 好像想到了 打包的时候有个默认勾选基础开屏广场这次没有勾选我试试谢谢

回复 DCloud_iOS_WZT: 勾选了基础开屏广告 自定义基座编译 同步代码还是没有弹窗

回复 优服科技: 基础开屏不用勾选idfa

回复 优服科技: 增强广告需要

那我都取消吧哎谢谢上架试试

在 iOS 15.4.1 系统中,如果你的 uni-app 应用没有弹出广告标识(IDFA)提示框,可能是由于以下几个原因:

1. 未正确配置广告标识(IDFA)

  • 在 iOS 14 及以上版本中,苹果引入了 App Tracking Transparency (ATT) 框架,要求应用在访问设备的广告标识(IDFA)之前,必须向用户显示提示框并获得用户的明确同意。
  • 如果你没有在代码中正确实现 ATT 框架,系统不会自动弹出提示框。

2. 未在 Info.plist 中添加 NSUserTrackingUsageDescription

  • 为了显示广告标识提示框,你需要在 Info.plist 文件中添加 NSUserTrackingUsageDescription 键,并提供一个描述字符串,解释为什么你的应用需要访问广告标识。
  • 例如:
    <key>NSUserTrackingUsageDescription</key>
    <string>We use your data to provide a better experience and show relevant ads.</string>

3. 未调用 requestTrackingAuthorization 方法

  • 你需要在应用启动时调用 requestTrackingAuthorization 方法来请求用户的授权。如果未调用此方法,系统不会弹出提示框。
  • 在 uni-app 中,你可以通过原生插件或直接调用原生代码来实现这一点。

4. 用户已经做出选择

  • 如果用户之前已经对广告标识的访问权限做出了选择(允许或拒绝),系统不会再次弹出提示框。你可以在代码中检查用户的授权状态。

5. 测试环境问题

  • 在某些测试环境中(如模拟器或某些测试设备),广告标识提示框可能不会正常弹出。建议在真实设备上进行测试。

6. uni-app 插件或框架问题

  • 如果你使用了某些 uni-app 插件或框架,可能存在兼容性问题,导致提示框未正常弹出。建议检查插件的文档或更新到最新版本。

解决方案:

  1. 确保 Info.plist 中已添加 NSUserTrackingUsageDescription
  2. 在应用启动时调用 requestTrackingAuthorization 方法。
    • 例如,在 App.vueonLaunch 方法中调用:
      if (plus.os.name === 'iOS') {
          plus.ios.import('AppTrackingTransparency').then((ATT) => {
              ATT.requestTrackingAuthorization((status) => {
                  console.log('Tracking Authorization Status:', status);
              });
          });
      }
  3. 检查用户的授权状态。
    • 你可以通过 ATT.getTrackingAuthorizationStatus 方法来检查用户的授权状态。

示例代码:

if (plus.os.name === 'iOS') {
    plus.ios.import('AppTrackingTransparency').then((ATT) => {
        ATT.requestTrackingAuthorization((status) => {
            console.log('Tracking Authorization Status:', status);
        });
    });
}
回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!