在iOS 14上请求跟踪授权始终返回“拒绝". [英] Requesting tracking authorization on iOS 14 always returns "denied"

查看:54
本文介绍了在iOS 14上请求跟踪授权始终返回“拒绝".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试测试iOS 14跟踪弹出窗口.当我在Simulator上测试它时,它会显示出来,但在真实设备(iOS 14.3)上却没有.

I'm trying to test the iOS 14 tracking popup. It shows up when I test it on the Simulator, but not on a real device (iOS 14.3).

我已经阅读了这篇文章( IDFA iOS14返回未显示而被拒绝auth popup ).但是打开跟踪选项并不能解决我的问题.

I have already read this post (IDFA iOS14 returns denied without displaying auth popup). But turning on the tracking option doesn't solve my problem.

我确定:

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

但是运行该应用程序时没有提示我. completionHandler .denied 情况下立即被调用.
另外,使用跟踪(首选项>隐私>跟踪),该应用甚至不会显示在应用列表中.

But I don't get prompted when running the app. The completionHandler gets called immediately with the .denied case.
Also, the app does not even show up on the list of apps using tracking (Preferences > Privacy > Tracking).

推荐答案

问题与操作系统有关,因此您必须将操作系统更新为14.5.1

Issue is with OS so you have to update your OS to 14.5.1

Apple发布了iOS和iPadOS 14.5.1.根据Apple的发行说明,此更新修复了应用程序跟踪透明性"中的一个错误,该错误可能阻止了某些用户从应用程序中收到提示.

Apple released iOS and iPadOS 14.5.1. According to Apple's release notes, the update fixes a bug with App Tracking Transparency that may have prevented some users from receiving prompts from apps.

iOS和iPadOS 14.5.1发行说明

Release notes for iOS and iPadOS 14.5.1

此更新解决了App Tracking Transparency的问题,其中一些问题以前禁用允许应用程序请求跟踪"的用户重新启用设置后,设置可能不会收到来自应用程序的提示.这此更新还提供重要的安全更新,建议用于所有用户.

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

我将操作系统从14.5更新到14.5.1,现在第一次启动时出现ATT提示.

I updated OS from 14.5 to 14.5.1 and now I am getting ATT prompt on first launch.

这篇关于在iOS 14上请求跟踪授权始终返回“拒绝".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆