Disable placements

The feature described in this section is supported on the following versions and above:

  • iOS: 3.5.0

  • Android: 3.5.0

  • ReactNative: 2.5.0

  • Cordova: 2.5.0

  • Flutter: 1.5.0

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

You should now be defining as many placements as imagined even if you don't intend to use them to avoid app releases.

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

© Purchasely 2020-2023