Skip to main content

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.

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! 


@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!


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!