mixpanel / mixpanel-react-native

Official React Native Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
107 stars 48 forks source link

iOS is not sending events #190

Closed reeq-dev closed 1 year ago

reeq-dev commented 1 year ago

iOS does not track any events even from freshly installed project. 0 logs after .setLoggingEnabled(true); from xcode or rn terminal. Since the react-native package installs a swift package as well I tried to setup and fire event from swift file and it worked - so problem is related to react-native wrapper Android seems fine.

XCode: 14.2 (14C18) Chip: M1 Pro "react-native": "0.71.7" "mixpanel-react-native": "^2.2.4",

Pay attention that there is some changings in Podfile to allow launch app on m1:

    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

and excluded archs in build settings for target: arm64 aswell

repo to reproduce https://bitbucket.org/nreeq/mixpanel_test_project/src/master/

reeq-dev commented 1 year ago

Update: downgrade for 2.2.1 made it work

Dallas62 commented 1 year ago

Experiencing same issue, drop of mixpanel events since last update.

hilat-autofleet commented 1 year ago

experiencing same issue, downgraded to 2.2.1

alimomos commented 1 year ago

experiencing same issue, downgraded to 2.2.1 doesn't work as well.. any other suggestions?

hilat-autofleet commented 1 year ago

experiencing same issue, downgraded to 2.2.1 doesn't work as well.. any other suggestions?

for 2.2.1:

  1. remove the app from device
  2. npm install & pod install
  3. clean build
  4. build
  5. reinstall the app.
alimomos commented 1 year ago

Hey @hilat-autofleet , yes It works .. forgot to update here. btw thanks 🙏

gimi-anders commented 1 year ago

It looks like the issue has been solved in version 2.2.5. At least I am seeing events from iOS on that version.

jaredmixpanel commented 1 year ago

This issue should be fixed in v2.2.5. Please update and let us know if the issue persists.