Disable placements

Placements are a powerful tool to trigger a paywall at a certain moment in your app journey. Once you define a placement in the code the marketer can choose what to display to whom.

During your Purchasely setup you will be designing and defining the placements needed. You could also be tempted to add some placements that you might want to use in the future but as it would display a paywall you didn't.

This is exactly why this paywall disablement feature is made for. It is now possible to pre-create placements but associated to a paywall yet.

Use cases

Besides this ability to be more flexible in your marketing strategy, here are some good uses cases you can unlock with this feature

  • Test the impact of a paywall at the beginning of the on boarding process or at the end

  • Launch a specific promo to specific audiences on app launch

Implementation

Purchasely.fetchPresentation(for: "onboarding", fetchCompletion: { presentation, error in
    guard let presentation = presentation, error == nil else {
        print("Error while fetching presentation: \(error?.localizedDescription ?? "unknown")")
        return
    }
    
    if presentation.type == .deactivated {
        
        // nothing to display
        
    }
})

Last updated

Was this helpful?