@livx.cc/native-kit 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livx.cc/native-kit",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Isomorphic native-capabilities kit for PWAs \u2014 same API in browser and in an appwrap native shell. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "author": "Elya Livshitz",
@@ -132,7 +132,10 @@ export class BillingModule {
132
132
  if (this.capability !== 'native') {
133
133
  throw new KitError('UNSUPPORTED', 'The in-app subscriptions sheet is iOS-only (StoreKit 2). Use manageSubscriptions() on web/Android.');
134
134
  }
135
- return this.kit.invoke('billing.manageSubscriptionsSheet');
135
+ // The sheet resolves only when the USER dismisses it (seconds to minutes), so the default 10s
136
+ // invoke timeout would fire mid-sheet and make the caller think it failed → a spurious fallback.
137
+ // Give it a long window; a dismissed-but-unreported sheet just leaves the promise pending (harmless).
138
+ return this.kit.invoke('billing.manageSubscriptionsSheet', undefined, { timeoutMs: 600_000 });
136
139
  }
137
140
 
138
141
  /** Out-of-band transactions (renewals, Ask-to-Buy, cross-device). Native streams only. */