Skip to content

v2.4.0

Compare
Choose a tag to compare
@ren6 ren6 released this 28 Feb 09:53
· 72 commits to master since this release
d52b0f7

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) to fetchPlacements(callback: (List<ApphudPlacement>, ApphudError?) -> Unit). The updated method now returns an optional error. Refer to the ApphudError documentation for more details.
    • The method paywallsDidLoadCallback(callback: (List<ApphudPaywall>, ApphudError?) -> Unit) has been updated to return an optional error.
  • 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 to refreshUserData.