githubEdit

Asynchronous paywalls

Pre-fetch and customize paywalls display

circle-exclamation

Purchasely, by default, shows the paywall screen with a loading indicator while fetching the paywall from the network and preparing it for display.

Using Purchasely.fetchPresentation() method, you can pre-fetch the paywall from the network before displaying it. This provides the following benefits:

  • Display the paywall only after it has been loaded from the network

  • Handle network errors gracefully

  • Show a custom loading screen

  • Pre-load the paywall while users navigate through your app, such as during onboarding screens

  • Choose not to display a paywall for a specific placement

Implementation

Call Purchasely.fetchPresentation for a placement or with a presentation id

  1. An error may be returned if the presentation could not be fetched from the network.

  2. If successful, you will have a PLYPresentation instance containing the following properties

A presentation can be one of the following types:

Last updated

Was this helpful?