Store Prices
How a native funnel gets its package prices from the store, what it draws while they load or when they fail, and how to have them ready on the first open.
A native funnel's package rows are priced by the store: StoreKit on iOS,
Play Billing on Android. The lookup goes through the SDK's product cache,
the same one getOfferings and the background prefetch after configure,
identify and logOut fill, so a funnel opened after any of them reads
prices from memory, and concurrent lookups share one store query.
Opening a funnel — RovenueFunnelView or presentFunnel — waits at most
3 seconds for the prices. A slower store does not hold the funnel back: it
opens, and the prices fill the rows when they arrive, on the screen the
visitor is on. React Native and Flutter host the native view, so they behave
the same. Web funnels are not affected by anything on this page: the funnel
runner prices them from Stripe on the server.
Have prices ready on the first open
Call preloadPlacement early for the placement that shows your paywall, and
the first open draws its prices on the first frame. A good place is right
after identify (or after configure for an app that never identifies):
the SDK drops cached store prices on identify and logOut, so a preload
made before them is spent on the previous user.
await Rovenue.identify(userId, identityToken);
void Rovenue.preloadPlacement("paywall");try await Rovenue.shared.identify(appUserId: userId, identityToken: identityToken)
Task { await Rovenue.shared.preloadPlacement("paywall") }Rovenue.shared.identify(userId, identityToken)
lifecycleScope.launch { Rovenue.shared.preloadPlacement("paywall") }await Rovenue.instance.identify(userId, identityToken);
unawaited(Rovenue.instance.preloadPlacement('paywall'));The preload warms prices with no time cap: nothing waits on it, so a cold store (a first Play Billing connection can take several seconds) gets all the time it needs, and the answer is cached for the open that follows. The 3-second budget applies only to an open. See Preload the paywall at app start for what else it warms.
While prices load
From SDK 0.30.0, a funnel whose prices have not arrived within the 3 seconds opens in a loading state instead of a paywall that looks finished but has no price. It applies only to packages that name a store product and have no price yet; a package with no store product (credits granted in-app) and a package that is already priced draw as usual.
- The price slot of each such package row draws a skeleton bar where the price goes. A price suffix ("/ month") stays beside it.
- Copy that depends on the price — a row's period line or caption, or a
text line naming a
{{product.…}}value that is still empty — draws as a skeleton line of roughly the copy's width, so the layout does not jump when the price lands. A row badge that names one is hidden until then. - Every control that would buy is disabled: the purchase button, and the
call to action or any button or option whose actions include
purchase_selectedorcheckout(inside aconditionaltoo). They keep their label (a purchase button's fallback label while its store value is empty) and draw as a disabled button, with no spinner. A control that buys a package that is already priced stays enabled.
Skeletons pulse gently. With Reduce Motion (iOS) or animations off (Android) they stay still.
When the prices land, the rows, copy and controls redraw with them on the visitor's current screen: the same visit, nothing re-sent.
When prices do not arrive
If no prices have arrived 10 seconds after the funnel started opening, or the store answers with no price at all for the offering's products, the funnel stops waiting:
- the package rows that still have no price show "Price unavailable" in muted text, without a price suffix;
- copy that depends on the price is hidden, as it is for any empty
{{product.…}}value; - every control that would buy reads "Try again" and is enabled. A tap asks the store for the prices again, puts the screen back into the loading state and gives the new lookup another 10 seconds. It never starts a purchase.
Prices that arrive late — after the 10 seconds, or from the retry — still fill the screen and bring the controls back. A store that prices only some of the packages is taken as an answer: the screen draws what it got, as before.
"Price unavailable" and "Try again" are the SDK's own copy, in the visitor's language among the 10 languages funnel chrome ships in (English, Turkish, German, Spanish, French, Portuguese, Italian, Japanese, Korean and Chinese). You do not author them.
Why the buy controls wait
App Review guideline 3.1.2 asks that the price is clear before the visitor buys. A funnel never offers a purchase with no price on screen: it waits, then says the price is unavailable and offers to try again, and never shows a skeleton forever. See Pass App Review.
Next: Present a funnel.