Displaying users subscriptions

Last updated

Last updated
// ⚠️ The controller must be added to a UINavigationController
let ctrl = Purchasely.subscriptionsController()// ⚠️ The controller must be added to a UINavigationController
UIViewController *ctrl = [Purchasely subscriptionsController];supportFragmentManager.beginTransaction()
.addToBackStack(null)
.replace(R.id.subscriptionsFragment, Purchasely.subscriptionsFragment(), "SubscriptionsFragment")
.commitAllowingStateLoss()getSupportFragmentManager().beginTransaction()
.addToBackStack(null)
.replace(R.id.subscriptionsFragment, Purchasely.subscriptionsFragment(), "SubscriptionsFragment")
.commitAllowingStateLoss();Purchasely.presentSubscriptions();Purchasely.presentSubscriptions();try {
Purchasely.presentSubscriptions();
} catch (e) {
print(e);
}private PurchaselyRuntime.Purchasely _purchasely;
_purchasely.PresentSubscriptions();