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

The anonymous user feature causes the app to crash on production with newArch enabled #584

Open
divineniiquaye opened this issue Oct 24, 2024 · 1 comment
Labels

Comments

@divineniiquaye
Copy link

Report

Plugin Version

6.15.1

On what Platform are you having the issue?

ios and android

What did you do?

Enabled the New Architecture and build

What did you expect to happen?

I expected the RNAppsFlyer.anonymizeUser() to return boolean

What happened instead?

I got this error

AppsFlyer Error [Error: RNAppsFlyer.anonymizeUser(): Error while converting JavaScript argument 0 to Objective C type BOOL. Objective C type BOOL is unsupported.]
@corbella83
Copy link

corbella83 commented Nov 6, 2024

Same here. But it's only an issue on ios.

Solve it temporarily by removing the unneeded pointer of a boolean parameter at the POD: (react-native-appsflyer/RNAppsFlyer.m):

Replace this:

RCT_EXPORT_METHOD(anonymizeUser: (BOOL*)b callback:(RCTResponseSenderBlock)callback) {
    [AppsFlyerLib shared].anonymizeUser = b;
    callback(@[SUCCESS]);
}

with this:

RCT_EXPORT_METHOD(anonymizeUser: (BOOL)b callback:(RCTResponseSenderBlock)callback) {
    [AppsFlyerLib shared].anonymizeUser = b;
    callback(@[SUCCESS]);
}

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

No branches or pull requests

3 participants