[ad_1]
I am attempting to make combine Fb App occasion into react native utilizing this lib:
https://github.com/thebergamo/react-native-fbsdk-next
All the pieces work nicely on android, count on for ios
I setup all the pieces appropriate in response to the doc:
I add on Data.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbFB-ID</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>FB-ID</string>
<key>FacebookDisplayName</key>
<string>APP NAME</string>
<key>LSApplicationQueriesSchemes</key>
I add this line on AppDelegate.m


And that i setup that on App.js
useEffect(() => {
Settings.setAppID(`${enviornment.FB_APP_ID}`)
Settings.setAdvertiserTrackingEnabled(true).then(() => Settings.initializeSDK())
}, [])
And take a look at it by:
<TouchableOpacity
onPress={() => {
AppEventsLogger.logEvent(
`login on ${Platform.OS} at ${new Date().getHours()}: ${new Date().getMinutes()}`,
)
console.log("run")
}}
>
<Textual content>Log</Textual content>
</TouchableOpacity>
However it NEVER LOG on dashboard, solely work by android:

So what i did fallacious??? And find out how to make it work?
ios model is 15.4 and that i already grant entry to app monitoring transparency through the use of this lib https://github.com/mrousavy/react-native-tracking-transparency
const requestTracking = React.useCallback(async () => {
attempt {
const standing = await requestTrackingPermission()
console.log("standing", standing)
setTrackingStatus(standing)
} catch (e: any) {
Alert.alert("Error", e?.toString?.() ?? e)
}
}, [])
[ad_2]

