Launching a brand new app (iOS) with 1 in-app purchase seems complicated.
The issue is:
- I cannot set a default offering if the in-app purchase is still “Waiting for Review”. Then the paywall will display RevenueCatUI.PaywallError3.
- Solution: Get your in-app purchase approved.
- My in-app purchase won’t be approved by Apple if the Paywall is not properly displayed. Also, Apple won’t approve the purchase if the App cannot be approved.
- Solution: Get your paywall fixed.
Here is what I got:
@objc public var current: Offering? {
guard let currentOfferingID = currentOfferingID else {
return nil
}
return all[currentOfferingID]?.copyWith(targeting: self.targeting)
}Will always return `nil` because there is no current offering marked as default (see point 2) in my dashboard. That means that if you use `PaywallView()` or `presentPaywallIfNeeded` where the default offering is pulled. Then no bueno.
If you call for:
Purchases.shared.getOfferings { offerings...The `offerings.all` array will retrieve everything that is in the dashboard.
My solution so far, retrieve all the offerings and hardcode the “future default” one `PaywallView(offering: offering)`, so the paywall actually shows and works.
Am I missing something? Please enlighten me.
