AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
279 stars 199 forks source link

Crash in ios #556

Open AhmedHF opened 4 months ago

AhmedHF commented 4 months ago

Report

Plugin Version

use: "react-native-appsflyer": "^6.14.3",

On what Platform are you having the issue?

IOS

What did you do?

I call this function

export const LogViewServiceDetails = service => {
  const eventName = 'view_service_details';
  AFLogEvent(eventName, service);
  AFLogEventWithoutJSON(AF_viewCart, service);
};

that call this

export function AFLogEvent(name, values) {
  appsFlyer.logEvent(name, JSON.stringify(values), null, null);
}
export function AFLogEventWithoutJSON(name, values) {
  appsFlyer.logEvent(name, values, null, null);
}

What did you expect to happen?

Event to be logged to dashboard

What happened instead?

App crased and this is log in the senry NSInvalidArgumentException -[__NSCFString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x120d5cd60 -[AppsFlyerLib callServerWithEventName:eventValues:options:completion:]

Please provide any other relevant information.

The issue started when using the plugin to the latest version