Skip to content

App Crash when Advertisement tracking "Allow Tracking" in iOS14 #452

@maipeera

Description

@maipeera

My project and other similar projects are facing the crash issue when app "Allow Tracking" and get ATTrackingManager.AuthorizationStatus.authorized from AppTrackingTransparency.

The crash happen once we start initialize Adjust SDK by Adjust.appDidLaunch(adjustConfig) then the app crash with message "Message from debugger: Terminated due to signal 9"

I have also tried setting the config .allowIdfaReading = false but still face a crash.

I also tried this with new example project to prove that this happen and it's. Just simple project and adding code below

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        ATTrackingManager.requestTrackingAuthorization { status in
            let adjustConfig = ADJConfig(appToken: Constant.adjustTrackerToken, environment: ADJEnvironmentSandbox)
            Adjust.appDidLaunch(adjustConfig)
        }
        return true
}

If select "Allow Tracking", App will crash and even next time relaunch app it will also crash due to authorization status is already authorized. However if select "Do not allow tracking" App won't crash and Adjust will initialize correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions