Skip to content

iOS crash on release builds #121

Closed
Closed
@salujaharkirat

Description

@salujaharkirat

I am getting this error after calling Analytics.initialize() on iOS release builds.

Looks like there is something wrong with analytics-react-native-firebase package. It works fine on android and iOS development but iOS release build hangs. If I comment out firebase package here it works perfectly fine.

const WealthyAnalytics = {
  initialize: () => {
    Analytics
      .setup(analyticsKey, {
        // using: [Firebase],
        recordScreenViews: true,
        trackAppLifecycleEvents: true,
        trackAttributionData: true,
        android: {
          flushInterval: 60,
          collectDeviceId: true
        },
        ios: {
          trackAdvertising: true,
          trackDeepLinks: true
        }
      })
      .then(() =>
        console.log("Analytics is ready")
      )
      .catch(err =>
        console.error("Something went wrong", err)
      );
  },
  identify: (content) => {
    Analytics.identify(content);
  },
  track: async (eventName, properties) => {
    const payload = {
      ...properties
    };
    Analytics.track(eventName, payload);
  }
};

Can someone please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions