Expo Tracking Transparency

I got some question regarding the docs on ATT

1st question?

Is it mandatory that requestTrackingPermissionsAsync is called within a useEffect?

Or would it be okay to do something like

App.tsx

...
requestTrackingPermissionsAsync()

export default function App() {
  const { appIsReady, onLayoutRootView, skipLandingScreen } = useCachedResources()
  
  if (!appIsReady) return null

  return (
     <View>
       ....
    </View>

2nd question

Would it be a problem if the requestTrackingPermissionsAsync is called when the app is in the background?

@adamjnav would you happen to be able to answer this question or suggest how I can find the answers?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.