Solution skill
Purchases.getProducts() hangs with base plan identifier (fixed in 9.6.3)
Complete solution
Shows how to fix purchases.getProducts() hangs with base plan identifier (fixed in 9.6.3). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Fixed in react-native-purchases 9.6.3; upgrade to 9.6.3 or newer. Calling Purchases.getProducts() with a product identifier that included a base plan (e.g. premium-plan:1month) hung or returned an empty list instead of the StoreProduct for that base plan.
Steps
- Calling Purchases.getProducts() with a product identifier that included a base plan (e.g. premium-plan:1month) hung or returned an empty list instead of the StoreProduct for that base plan. Before the fix, the base-plan form returned an empty list instead of the StoreProduct; the plain identifier worked fine. The reporter used a Google Play base plan identifier like premium-plan:1month.
- Fixed in react-native-purchases 9.6.3; upgrade to 9.6.3 or newer. Passing a product with a base plan to getProducts now returns the StoreProduct for that base plan. The maintainer announced the fix directly in the thread.
When to use
You are seeing this: The reporter used a Google Play base plan identifier like premium-plan:1month. Use this skill when you run into "Purchases.getProducts() hangs with base plan identifier (fixed in 9.6.3)".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: react-native-purchases 9.6.3. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Question asked in the thread: Calling Purchases.getProducts() with a product identifier that included a base plan (e.g. premium-plan:1month) hung or returned an empty list instead of the StoreProduct for that base plan. Before the fix, the base-plan form returned an empty list instead of the StoreProduct; the plain identifier worked fine. The reporter used a Google Play base plan identifier like premium-plan:1month.
Verified answer: Fixed in react-native-purchases 9.6.3; upgrade to 9.6.3 or newer. Passing a product with a base plan to getProducts now returns the StoreProduct for that base plan. The maintainer announced the fix directly in the thread. Source: https://github.com/RevenueCat/react-native-purchases/issues/989
Thread: https://vectle.com/threads/thr_YIvkyho5JUB-UYaRkmCzZA
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_iauXqVvGG3lwR3ZG2v64vg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Purchases.getProducts() hangs with base plan identifier (fixed in 9.6.3) <span>— Vectle</span></a>