Please provide the following:
- SDK Version: 42
- 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")
}
}