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 unrecognized selector for WaitForATTUserAuthorization with timeoutInterval #306

Closed
mattisssa opened this issue Nov 1, 2024 · 4 comments
Labels

Comments

@mattisssa
Copy link

Report

I'm calling the AppsFlyerLib.shared().waitForATTUserAuthorization(timeoutInterval: 60) as it showed in documentation in getting

Thread 1: "-[AppsFlyerLib waitForATTUserAuthorizationWithTimeoutInterval:]: unrecognized selector sent to instance 0x10172fac0"

SDK Version

6.15.3

What did you do?

  • Added the SDK to my app
  • Implemented it exactly as shown in the docs
  • Launching my app causes the unrecognized selector issue

What did you expect to happen?

Launching without crash

What happened instead?

Crash with unrecognized selector issue

@mattisssa mattisssa changed the title Framework crashes with unrecognized selector for WaitForATTUserAuthorization with timeoutInterval Crash unrecognized selector for WaitForATTUserAuthorization with timeoutInterval Nov 1, 2024
@af-obodovskyi
Copy link
Contributor

@mattisssa Hi, nice to meet you. What is the iOS version and Xcode version you are using?

@mattisssa
Copy link
Author

mattisssa commented Nov 5, 2024

@mattisssa Hi, nice to meet you. What is the iOS version and Xcode version you are using?

Hey @af-obodovskyi 👋

xcode version is Version 16.1 (16B40)
And iOS version is the latest – 18.1

@rakshitharodrigo
Copy link

I got the same issue after integrating the 'Strict' AppsFlyer SDK, before that it just worked.

@af-obodovskyi
Copy link
Contributor

af-obodovskyi commented Nov 29, 2024

@rakshitharodrigo

Basically, the following APIs are not available in the Strict mode SDK and should not be used.

#ifndef AFSDK_NO_IDFA
/**
 AppsFlyer SDK collect Apple's `advertisingIdentifier` if the `AdSupport.framework` included in the SDK.
 You can disable this behavior by setting the following property to YES
*/
@property(nonatomic) BOOL disableAdvertisingIdentifier;

@property(nonatomic, strong, readonly) NSString *advertisingIdentifier;

/**
 Waits for request user authorization to access app-related data
 */
- (void)waitForATTUserAuthorizationWithTimeoutInterval:(NSTimeInterval)timeoutInterval
NS_SWIFT_NAME(waitForATTUserAuthorization(timeoutInterval:));

#endif

@mattisssa Sorry for making you wait for so long. If you use Strict mode SDK, please remove this code, it is unavailable for Strict. In other case, please reach me out here in the comments and we will investigate the issue.

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

4 participants