Skip to content

Support for iOS App Extensions #81

@mikhailChelbaev

Description

@mikhailChelbaev

Currently, subscription data cannot be shared between the main app and extensions because internally you store profile data in the UserDefaults.standard. As a result, each extension must individually fetch subscription status.

To address this issue, you can include a userDefaults parameter in the Adapty.activate method, allowing the profile data to be stored in an app group.

Adapty.activate(
  "adapty-api-key",
  customerUserId: "user-id",
  userDefaults: .init(suiteName: "group.com.example")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions