Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in ios #556

Open
AhmedHF opened this issue May 30, 2024 · 0 comments
Open

Crash in ios #556

AhmedHF opened this issue May 30, 2024 · 0 comments

Comments

@AhmedHF
Copy link

AhmedHF commented May 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant