This the error that I have been getting.
“This method should not be called on the main thread as it may lead to UI unresponsiveness.”
The method called in the main thread –
func setupRevenueCat() {
Purchases.logLevel = .debug
Purchases.configure(withAPIKey: Constants.publicKey)
}
This was how I was calling the function
init(){
setupRevenueCat()
GADMobileAds.sharedInstance().start(completionHandler: nil)
FirebaseApp.configure()
}
I wonder if any one can help me. Perhaps, I need to call the method in App Delegate. I was reading documentation from Revenue cat.
Louis Lee