v2.2.0

Until this version, presentations were tied to a specific product. This constraint made multi-product presentations impossible and version 2.2.0 prepares app code to unlock that possibility.

Presentation controller

Purchasely.productController(for: "my_product_id",
                                        with: "my_presentation_id"
                                        completion: { (result, plan) in
})

is replaced by 👇

Purchasely.presentationController(with: "presentationVendorId"
                                completion: { (result, plan) in
})
myapp://ply/products/PRODUCT_VENDOR_ID/PRESENTATION_VENDOR_ID

is replaced by 👇

myapp://ply/presentations/PRESENTATION_VENDOR_ID

Events

PLYEvent.productPageViewed is replaced by PLYEvent.presentationViewed (PRODUCT_PAGE_VIEWED to PRESENTATION_VIEWED in React Native).

Last updated

Was this helpful?