Skip to content

App freezes on iOS 14.5 after calling enableAdServicesAttributionTokenCollection() #2121

Description

@ddaddy

Describe the bug
When calling Purchases.shared.attribution.enableAdServicesAttributionTokenCollection() the app will freeze on iOS 14.5.

I call this during app startup, after configuring the SDK and my app freezes on the Launch Screen. I tried moving it to later in the app cycle and the app freezes as soon as this is called.

  1. Environment
    1. Platform: iPhone and iPad Simulator
    2. SDK version: 4.15.0
    3. StoreKit 2 (disabled with useStoreKit2IfEnabled(false)) (Y/N):
    4. OS version: iOS 14.5
    5. Xcode version: 14.1
    6. How widespread is the issue. Percentage of devices affected.

Additional context
Add any other context about the problem here.

Reported by multiple users here: https://community.revenuecat.com/sdks-51/calling-enableadservicesattributiontokencollection-on-ios-14-5-seems-to-hang-my-app-2010

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions