Enhancements
- If a network issue occurs while retrieving the latest Superwall configuration, or it takes longer than 1s to retrieve, the SDK falls back to a cached version. Then it tries to refresh it in the background. This behavior is behind a feature flag.
- When the Superwall configuration is set or refreshed, a
config_refresh
event is tracked, which will give insight into whether a cached version of the Superwall configuration is being used or not. - When the Superwall configuration fails to be retrieved, a
config_fail
event is tracked. - Adds the
config_caching
capability. - Adds the
SuperwallOption
collectAdServicesAttribution
. When set totrue
, this will get the app-download campaign attributes associated with Apple Search Ads and attach them to the user attributes. This happens once per user per install. CallingSuperwall.shared.reset()
will fetch the attributes again and attach them to the new user. - Adds
adServicesAttributionRequest_start
,adServicesAttributionRequest_fail
, andadServicesAttributionRequest_complete
events for the lifecycle of collecting AdServices attributes.
Fixes
- Adds in missing
weak self
references inside task group closures.