appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

Crash in ios

Open AhmedHF opened this issue 1 year ago • 0 comments

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

AhmedHF avatar May 30 '24 21:05 AhmedHF