Expo Facebook App Events not tracked on iOS 14.5+

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): iOS

Hi,
I’m trying to capture the auto App Events in facebook as well as some custom App Events. I can see the events coming through fine from Android devices but not from any iOS devices.

I have implemented expo-tracking-transparency requestTrackingPermissionsAsync method to get the permission to track these events and even when I allow tracking on my iPhone the events are not coming through.

Any thoughts on this?

This is how my function looks like and its being called from within a useEffect hook.

 const initFacebook = async () => {
  await Facebook.initializeAsync({
    appId: facebookAppId,
  })
  const { status } = await requestTrackingPermissionsAsync();

  if (status == 'granted') {
    console.log('Tracking enabled');
    try {

      await Facebook.setAutoLogAppEventsEnabledAsync(true);
      await Facebook.setAdvertiserIDCollectionEnabledAsync(true);
    }catch (err) {
      throw err
    }
  }else{
    console.log("Tracking disabled")
  }
}

After checking the facebook developer console i could see that its complaining about the iOS facebook SDK version being too old. See attached image.

I’m using expo-facebook version ~11.3.1 which is the latest currently. I’m also on the managed workflow.

This may happen because of new iOS security update.

Having some trouble with this as well.

Could anyone confirm if expo-facebook supports app events for ios version 14+?

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