gpt4 book ai didi

ios - 在 iOS 14 上请求跟踪授权总是返回 "denied"

转载 作者:行者123 更新时间:2023-12-05 00:23:10 25 4
gpt4 key购买 nike

我正在尝试测试 iOS 14 跟踪弹出窗口。当我在模拟器上测试它时它会显示出来,但不是在真实设备上(iOS 14.3)。
我已经阅读了这篇文章(IDFA iOS14 returns denied without displaying auth popup)。但是打开跟踪选项并不能解决我的问题。
我确定:

  • 在 Info.plist
  • 中提供目的字符串 ( NSUserTrackingUsageDescription )
  • 实际调用ATTrackingManager.requestTrackingAuthorization(completionHandler:)
  • 启用跟踪(首选项 > 隐私 > 跟踪)

  • 但是在运行应用程序时我没有收到提示。 completionHandler立即使用 .denied 调用案子。
    此外,该应用程序甚至没有出现在使用跟踪的应用程序列表中(首选项 > 隐私 > 跟踪)。

    最佳答案

    问题出在操作系统上,因此您必须将操作系统更新到 14.5.1
    Apple 发布了 iOS 和 iPadOS 14.5.1。根据 Apple 的发布说明,该更新修复了 App Tracking Transparency 的一个错误,该错误可能会阻止一些用户接收来自应用程序的提示。
    iOS 和 iPadOS 14.5.1 发行说明

    This update fixes an issue with App Tracking Transparency where someusers who previously disabled Allow Apps to Request to Track inSettings may not receive prompts from apps after re-enabling it. Thisupdate also provides important security updates and is recommended forall users.


    我将操作系统从 14.5 更新到 14.5.1,现在我在首次启动时收到 ATT 提示。

    关于ios - 在 iOS 14 上请求跟踪授权总是返回 "denied",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65889387/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com