deepwall
HomeContact UsLogin
  • Overview
  • System Components
  • Key Concepts
  • How It Works
  • Sign In
  • 🚀GETTING STARTED
  • App Registration
  • Configure In-App Products
  • Paywall Setup
    • Create A Paywall
    • Configure Look & Feel
    • Texts and Translations
  • Displaying Paywalls
    • Activate Default Displays
    • Create Targeted Displays
    • Display Priorities
    • Display Reports
    • Edit Displays
    • Display Rules
    • On Close Paywalls
  • Store Configuration
  • Attributions Configuration
  • App Status and Settings
  • ⚙️ SDK Framework
    • SDK Installation
      • iOS SDK
      • Android SDK
      • React Native SDK
      • Flutter SDK
      • Cordova SDK
      • Unity SDK
    • Using the SDKs
      • Initialization
      • Configuration
      • Listening SDK Events
      • Requesting Paywalls
      • Closing a Paywall
      • Validating Receipts
      • Making Purchases
      • Upgrades and Downgrades
      • Non-subscription Purchases
      • Restoring Purchases
      • Transition To Another Paywall
  • 🧪EXPERIMENTS
    • Experiments Overview
    • Create Experiments
    • Experiment Reports
    • Manual Traffic Allocation
    • Update Experiments
    • How Optimization Works?
  • 📦Integrations
    • Integrations Overview
    • Events List
    • Adjust
      • Get App Token
      • Create Adjust Events
    • AppsFlyer
      • Get Dev Key
    • Webhooks
    • OneSignal
  •  App Tracking (iOS 14.5)
    • App Tracking Overview
    • Configure In-app Actions
    • Create ATT Prompt
    • Displaying ATT Prompts
    • Experiments
  • 📈DASHBOARD
    • App Overview
    • Invite Members
    • Access Management
  • GUIDES
    • Apple
      • Getting the App Credentials
      • Setup In-App Products
      • Getting the Shared Secret
      • Server to server notifications
    • Google
      • Getting App Credentials
      • Setup In-App Products
      • Create Service Account Key
      • Developer Notifications
    • Huawei
      • Getting App Credentials
      • Setup In-App Products
      • Developer Notifications
  • 🔍Testing
    • Test Flows
    • Troubleshooting
    • Sandbox Testing
      • Apple App Store
      • Google Play Store
  • 🔗SDK Links
  • iOS SDK
  • Android SDK
  • React Native SDK
  • Flutter SDK
  • Cordova SDK
  • Unity SDK
Powered by GitBook
On this page
  • App-Triggered Close
  • User-Triggered Close

Was this helpful?

  1. ⚙️ SDK Framework
  2. Using the SDKs

Closing a Paywall

Instructions for closing a paywall via Deepwall SDKs

PreviousRequesting PaywallsNextValidating Receipts

Last updated 3 years ago

Was this helpful?

App-Triggered Close

Deepwall closes paywalls only if a user closes the opened paywall. For other cases, Deepwall gives the initiative to the developer to take the necessary action to close open paywalls in their app flow.

The best practice to follow for apps is to close an open paywall whenever a user makes a successful purchase or if a restore is successful and the user has an active subscription.

Use the close paywall method to close the currently opened paywall.

DeepWall.shared.closePaywall()
DeepWall.closePaywall()
DeepWall.getInstance().closePaywall();
DeepwallFlutterPlugin.closePaywall();
cordova.DeepwallCordovaPlugin.closePaywall(function(response){
    console.log(response);
}, function(error){
    console.log(error);
});

User-Triggered Close

All paywalls have a close button, and whenever the close button is clicked by the user, Deepwall closes the paywall automatically and sends close event.

iOS Event

Android Event

deepwallPaywallClosed

Parameters :

  • pageId: Int

CLOSED

Parameters :

PaywallClosedInfo

  • pageId: Int

Deepwall sends the deepwallPaywallClose event for iOS and CLOSEDevent for Android whenever a user closes an open paywall.

Developers can listen to the close events to log user-triggered close actions on their side or they can use it to trigger another paywall or another action in the app flow.

Close event is not sent when a paywall is closed by the app using close method.

You can check out the following guide to learn more about listening to all the SDK events and parameters:

You can also check out the following guide for troubleshooting the most common errors while setting up the in-app purchases and Deepwall SDK :

Listening SDK Events
Troubleshooting