Data Fetching and Rendering Errors
Products Loading Errors
If you didn't pass the product array during initialization, AdaptyUI will retrieve the necessary objects from the server by itself. In this case, this operation may fail, and AdaptyUI will report the error by invoking this method:
public func paywallController(_ controller: AdaptyPaywallController,
didFailLoadingProductsWith policy: AdaptyProductsFetchPolicy,
error: AdaptyError) -> Bool {
return true
}
If you return true, AdaptyUI will repeat the request after 2 seconds.
Rendering Errors
If an error occurs during the interface rendering, it will be reported by calling this method:
public func paywallController(_ controller: AdaptyPaywallController,
didFailRenderingWith error: AdaptyError) {
}
In a normal situation such errors should not occur, so if you come across one, please let us know about it.
Updated about 2 months ago