Releases: apphud/ApphudSDK-Android
Releases · apphud/ApphudSDK-Android
v2.8.3
What's new in v2.8.3:
- Initial support for Web-to-Web flow. This introduces a new SDK method
fun attributeFromWeb(data: Map<String, Any>, callback: (Boolean, ApphudUser?) -> Unit)
. - Added an optional callback to
updateUserId(userId: UserId, callback: ((ApphudUser?) -> Unit)? = null)
method.
v2.8.0
What's new in v2.8.0:
- Important: Added support for real-time audience segmentation in placements based on user properties. This includes two new methods
forceFlushUserProperties
anddeferPlacements
. Learn more. - Important: Starting this version, the SDK does not automatically load permission groups at launch. You should manually call updated
fun fetchPermissionGroups()
method. - Important: Starting this version, the SDK automatically restores purchases at launch. Keep track of
fun apphudSubscriptionsUpdated(subscriptions: List<ApphudSubscription>)
orfun apphudNonRenewingPurchasesUpdated(purchases: List<ApphudNonRenewingPurchase>)
methods. - Important: Removed some deprecated methods that used paywalls without placements:
paywall(identifier: String): ApphudPaywall?
,paywalls()
,rawPaywalls()
. Now only one deprecatedpaywallsDidLoadCallback()
method left. - Now it is possible to use purchase method by passing only product_id without using
fetchPermissionGroups()
method. - Method
fun refreshUserData(callback: ((ApphudUser?) -> Unit)? = null)
now returnsApphudUser
object in a callback. - Added
purchaseToken
property toApphudSubscription
andApphudNonRenewingPurchase
objects. - Changed
ApphudGroup
's propertyval products: List<ApphudProduct>?
tofun productIds(): List<String>
. - Internal improvements for User Properties APIs.
- Internal bug fixes and improvements.
2.7.4
What's new in v2.7.4:
Added 'apphudDidReceivePurchase' function to ApphudListener
2.7.3
What's new in v2.7.3:
- Add 'forceRefresh' parameter to Apphud.nativePurchases function
2.7.2
What's new in v2.7.2:
Stability improvements
v2.7.0
What's new in v2.7.0:
- Internal Improvements for Observer Mode: All purchases are now tracked automatically, making the
trackPurchase
method optional. This can be utilized for A/B testing analytics when using paywalls and placements. - Google Billing Exception Handling: Improved internal handling of Google Billing exceptions.
- Library Update: Updated the dependent library OkHttp.
- Bug Fixes: Minor bugs fixes related to handling callbacks when the network is unreachable.
- Custom Attribution Data Support: Added technical support (not product-ready yet) for custom attribution data.
2.6.6
What's new in v2.6.6:
- Improved Products loading
v2.6.5
What's new in v2.6.5:
- Important: changed
maxAttempts
parameter infetchPlacements
,placements
,paywallsDidLoadCallback
methods topreferredTimeout
. - Internal improvements in errors handling
- Added new method
fun loadFallbackPaywalls(callback: (List<ApphudPaywall>?, ApphudError?) -> Unit)
to explicitly load paywalls from local json fallback file.