You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I have an app with a keyboard extension. Many features in the keyboard extension are available only for premium users. Therefore, I need to verify the subscription status from this extension.
Although the current setup allows me to perform this check as the keyboard has internet access, it would be more convenient if the app and the extension could share the state. This synchronization would ensure that users experience consistent behavior across both the app and the keyboard.
@mikhailChelbaev, I would recommend synchronizing the subscription status using shared memory on your own rather than relying on the Adapty SDK within the extension. There can be unexpected behaviors otherwise.
Thank you for highlighting your use case; we will certainly consider adding support for extensions in the future. However, I cannot provide any estimate at this time.
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 theAdapty.activate
method, allowing the profile data to be stored in an app group.The text was updated successfully, but these errors were encountered: