SW-2667: Adds preferredLanguageCode and preferredLocale to device attributes. If your app isn't already localized for a language you're trying to target, the deviceLanguageCode and deviceLocale may not be what you're expecting. Use these device attributes instead to access the first preferred locale the user has in their device settings.
Fixes
Fixes bug where a transaction_abandon or transaction_fail event would prevent the presented paywall from dismissing if paywall_decline was a trigger.
SW-2678: Fixes issue where the subscription_start event was being fired even if a non-recurring product was purchased.
SW-2659: Fixes issue on macOS where the window behind a paywall wasn't being removed when a paywall was dismissed, leading to the app appearing to be in a frozen state. (#192)
Checklist
[x] All unit tests pass.
[x] All UI tests pass.
[x] Demo project builds and runs.
[x] I added/updated tests or detailed why my change isn't tested.
[x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
[x] I have run swiftlint in the main directory and fixed any issues.
[ ] I have updated the SDK documentation as well as the online docs.
Changes in this pull request
Enhancements
preferredLanguageCode
andpreferredLocale
to device attributes. If your app isn't already localized for a language you're trying to target, thedeviceLanguageCode
anddeviceLocale
may not be what you're expecting. Use these device attributes instead to access the first preferred locale the user has in their device settings.Fixes
transaction_abandon
ortransaction_fail
event would prevent the presented paywall from dismissing ifpaywall_decline
was a trigger.subscription_start
event was being fired even if a non-recurring product was purchased.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.swiftlint
in the main directory and fixed any issues.