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
})

If you have multiple products inside the same app, don't forget to specify the presentationId and don't set it to nil otherwise you will be falling back to the app default presentation.

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

© Purchasely 2020-2023