Wednesday, November 11, 2026
HomeiOS Developmentjavascript - Fb App Occasion by no means obtain any occasion on...

javascript – Fb App Occasion by no means obtain any occasion on dashboard on react native ios

[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
enter image description here
enter image description here

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>

Console stated okey:
enter image description here

However it NEVER LOG on dashboard, solely work by android:
enter image description here

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]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments