v2.4.0
What's New in v2.4.0:
This version is recommended for update.
- Enhanced Error Handling: There are now significant improvements in error handling, especially for scenarios when there is no internet connection on the device.
- Paywalls Fallback Enhancements: Internal improvements to the Paywalls Fallback mode.
- API Updates:
- Renamed method
placementsDidLoadCallback(callback: (List<ApphudPlacement>) -> Unit)
tofetchPlacements(callback: (List<ApphudPlacement>, ApphudError?) -> Unit)
. The updated method now returns an optional error. Refer to theApphudError
documentation for more details. - The method
paywallsDidLoadCallback(callback: (List<ApphudPaywall>, ApphudError?) -> Unit)
has been updated to return an optional error.
- Renamed method
- Guaranteed Response for Paywalls and Placements: All methods that fetch paywalls or placements are now designed to ensure a response under all circumstances, even in cases of errors or when Google Billing is unavailable.
- ApphudError Class Improvements: The
ApphudError
class has been improved to potentially include Google Billing error codes. - [IMPORTANT] Subscription Purchase Update: Apphud will now attempt to purchase a subscription even if an
offerToken
is not provided in the purchase method. The SDK will attempt to fetch the first available offer token and initiate the purchase with it. - [IMPORTANT] Renamed Methods: The method
refreshEntitlements
has been renamed torefreshUserData
.