Firebase/Crashlytics & Firebase/Analytics 的 NSUserTrackingUsageDescription 的目的字符串是什么?

What will be purpose string of NSUserTrackingUsageDescription for Firebase/Crashlytics & Firebase/Analytics?

由于 Apple 要求开发人员通过 App Tracking Transparency 框架获得用户的许可才能跟踪他们或访问他们设备的广告标识符 (IDFA) iOS 14.5

我在我的应用程序中使用 'Firebase/Crashlytics' & 'Firebase/Analytics' 来获取崩溃报告。所以我在 info.plist

中添加了以下目的字符串
<key>NSUserTrackingUsageDescription</key> 
<string>This identifier will be used to collect Crash Data.</string>

但他们仍然拒绝了应用程序,原因如下。

Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage


We noticed that your app requests the user’s consent to access the AppTrackingTransparency framework, but doesn’t sufficiently explain the use of the AppTrackingTransparency framework in the purpose string.

To help users make informed decisions about how their data is used, all permission request alerts need to specify how your app will use the requested information.

Next Steps

Please revise the relevant purpose string in your app’s Info.plist file to specify why your app needs access to the user's AppTrackingTransparency framework. Make sure the purpose string includes an example of how the user's data will be used.

You can modify your app's Info.plist file using the property list editor in Xcode.

有人可以向我建议,我需要添加哪个字符串作为此目的字符串吗?所以它可以充分说明用法。

此外,我从 google 文档中找到了将应用内消息添加到您的应用。

https://firebase.google.com/docs/ios/supporting-ios-14

但对此有一些疑问,请有人告诉我这是正确的解决方案吗,我需要实施它,或者只需更新目的字符串就可以实现。

让它更详细。你可以说 This identifier will be used to collect Crash Data and in-app activity in order to improve functionalities and user engagement。或者类似的东西。

在你的 String 中你只提到了 Crashlytics 但你没有提到 Analytics.

Apple 可能会在更正字符串后回复说他们没有在您的应用程序中找到警报。如果发生这种情况,您只需要回答他们警报只在每个设备上显示一次(如果是这样),以及显示警报的 class(通常用于 AppDelegate)。