📜  指南 5.1.2 - Legal- App Tracking Transparency 以请求用户许可 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:26.359000             🧑  作者: Mango

代码示例1
import { requestTrackingPermission } from 'react-native-tracking-transparency';

const trackingStatus = await requestTrackingPermission();
if (trackingStatus === 'authorized' || trackingStatus === 'unavailable') {
  // enable tracking features
}