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
})[Purchasely productControllerFor:@"my_product_id"
with:@"my_presentation_id"
completion:^(enum PLYProductViewControllerResult result, PLYPlan * _Nullable plan) {
}];Purchasely.productFragment(
"productVendorId",
"presentationVendorId") { result, plan ->
// result is either Purchase, Cancelled or Restored
}Purchasely.productFragment("productVendorId", "presentationVendorId",
(result, plan) -> {
// result is either Purchase, Cancelled or Restored
}
);try {
await Purchasely.presentProductWithIdentifier('productVendorId', 'presentationVendorId');
} catch (e) {
console.log(e);
}Purchasely.presentationController(with: "presentationVendorId"
completion: { (result, plan) in
})Purchasely productControllerWith:@"my_presentation_id"
completion:^(enum PLYProductViewControllerResult result, PLYPlan * _Nullable plan) {
}];Purchasely.presentationFragment("presentationVendorId") { result, plan ->
//result is either Purchase, Cancelled or Restored
}Purchasely.presentationFragment("presentationVendorId", (result, plan) -> {
//result is either Purchase, Cancelled or Restored
})try {
await Purchasely.presentPresentationWithIdentifier('presentationVendorId');
} catch (e) {
console.log(e);
}Deeplinks
myapp://ply/products/PRODUCT_VENDOR_ID/PRESENTATION_VENDOR_IDmyapp://ply/presentations/PRESENTATION_VENDOR_IDEvents
Last updated