5.0.X
9 days ago by Kevin Herembourg
Version 5.0 of the Purchasely SDK introduces support for the new Screen Composer and includes several major updates and breaking changes.
Version per platform
Platform | SDK Version |
---|---|
iOS | 5.0.0 |
Android | 5.0.1 |
Flutter | 5.0.0 |
React Native | 5.0.1 |
Cordova | Released in January 2025 |
Unity | Released in February 2025 |
New features
- Support of our new Screen Composer
- Ability to set an array for a user attribute. The array must be of type String, Integer, Float or Boolean.
- Add 2 built-ins user attributes to allow you to build audiences based on user eligibility to an introductory offer
- Intro Offer Eligible Plans
- Intro Offer Eligible Products
Breaking Changes:
- iOS 12 minimum required
- Android 6.0 minimum: Google supports Android 6.0 and up for Google Play Services
- Removed
ONESIGNAL_PLAYER_ID
attribute. - Replaced
UIListener
withUIHandler
.
Android only
Android 5.0 support extended
We reverted our change with version 5.0.1 to support min SDK 21 again (Android 5.0).
Please note that Google recently stated that Google Play Services supports only Android 6.0 and up. As such, In-App purchases that are part of Google Play Services, may not work properly on devices below Android 6.0 (SDK 23).
- Kotlin Updated: Upgraded to Kotlin 2.0.20.
- Updated Android Build Requirements:
compileSDK
: 34minSDK
: 21
- Updated purchase history retrieval:
- Removed
purchaseHistory(onSuccess, onError)
. - Use
purchaseHistory(): List<PLYPlan>
instead.
- Removed
- Updated subscriber status check:
- Removed
isPastSubscriber(result: (Boolean) -> Unit)
. - Use
isPastSubscriber(): Boolean
instead.
- Removed
- Renamed
PLYPresentationViewProperties
toPLYPresentationProperties
. - Replaced
show/hide closeButton
byshow/hide headerButton
- Simplified Presentation API:
- Removed
FetchPresentationForPlacement
. - Use
FetchPresentation
instead.
- Removed
- Fixed an issue with user attribute
has expired subscription
that could not have been computed on SDK start callback