facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 910 forks source link

logEvent not working for ios on v0.80 #722

Open pvanny1124 opened 4 years ago

pvanny1124 commented 4 years ago

🐛 Bug Report

logEvent isn't logging events on ios AND basic default events such as app installs are not being logged either. I don't get any build errors at all, and I followed all the steps to install facebook sdk v4.4 using react-native-fbsdk.

To Reproduce

install react-native fb-sdk 0.80 and use the logevent function

Expected Behavior

log an event with a custom name, app installs, and all other defaults

Code Example

import { AppEventsLogger } from 'react-native-fbsdk';
import { withNavigation } from 'react-navigation';
class HelpScreen extends Component {
  onClose = () => {
    const {
      navigation: { navigate, state },
    } = this.props;

    navigate((state.params && state.params.prevRoute) || 'Home', {
      prevRoute: state.routeName,
    });
  };

  componentDidMount() {
    const { navigation } = this.props;
    this.didFocusListener = navigation.addListener('didFocus', () => {
      AppEventsLogger.logEvent('help-screen');    
    });
  }

Environment

React Native Environment Info: System: OS: macOS 10.15.3 CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz Memory: 3.11 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.13.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 25, 26, 27, 28 Build Tools: 26.0.1, 27.0.3, 28.0.3 System Images: android-22 | Google APIs Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-25 | Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5977832 Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.1 => 0.59.1 npmGlobalPackages: create-react-native-app: 2.0.2 react-native-cli: 2.0.1

creativemind1 commented 4 years ago

Its not working for me as well

tedkimzikto commented 4 years ago

any updates? it's missing the most of the events.

tedkimzikto commented 4 years ago

it's missing almost 95% of the events for us