Skip to main content
Question

PWABuilder and adding in Paywall

  • October 13, 2024
  • 3 replies
  • 40 views

Forum|alt.badge.img

Hi all,

I have an iOS app created by PWABuilder that Apple have rejected for not having in app purchases. Therefore I’m implementing RevenueCat. However I’m struggling to see where I would add and present the paywall within the code built by PWABuilder. I have 0 experience with Xcode and Swfit unfortunately.

Does anyone have any experience of this at all please?

https://www.revenuecat.com/docs/tools/paywalls/displaying-paywalls

 

Thanks.

This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • October 17, 2024

Hey @GGXXIII , 

 

We dont have any integration or specific workflow with PWABuilder so I would recommend reaching out to them in order to see if they can help get the paywall configured. Usually with no/low-code builders, they have their own code build up so it might be hard to directly implement the RevenueCat SDK. 

 

Let me know if you have any other questions! 


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • October 26, 2024

@Michael Fogel Yes have reached out to them too but not had much help. Is there any guide on where exactly to place the code to get it working in an iOS app? I’ve tried AppDelegate etc and viewing the sample apps. I can get the code added and the app built but nothing ever happens on opening the app for example. It is this part specifically:

 

import UIKit

import RevenueCat
import RevenueCatUI

class ViewController: UIViewController {

    @IBAction func presentPaywall() {
        let controller = PaywallViewController()
        controller.delegate = self

        present(controller, animated: true, completion: nil)
    }

}

extension ViewController: PaywallViewControllerDelegate {

    func paywallViewController(_ controller: PaywallViewController,
                               didFinishPurchasingWith customerInfo: CustomerInfo) {

    }

}

How do i then call this to present the paywall? Any info would be great!


Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • November 1, 2024

Hey @GGXXIII ,

 

We have some documentation which goes over best practices for displaying the paywalls in Swift between both the footer paywalls and the full screen paywall. 

 

We generally recommend storing this in a View with contentView. 

 

Let me know if that helps! 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings