fix(native): location at the accuracy asked for, and a Play payment that clears later is redeemed

- The location shim runs at high accuracy only while a watcher wants it and
  drops back once that watcher is gone, instead of keeping the 2 s GPS rate
  for the rest of the session.
- The purchase client can hand over a Play subscription that was paid but
  never delivered (a pending payment that cleared later), and the plans screen
  redeems it at once, as a restore would, before Google Play refunds it after
  three days.
This commit is contained in:
Maurice
2026-11-07 14:57:50 +01:00
parent c1c71a12cf
commit 46f4cab1b7
6 changed files with 120 additions and 7 deletions
+7
View File
@@ -110,6 +110,13 @@ export interface TrekShellPlugin {
event: 'windowLayout',
listener: (payload: NativeWindowLayout) => void
): Promise<{ remove: () => Promise<void> }>;
/** Android, feature playBilling: a paid subscription never delivered (cleared while the app was closed). */
storeUnfinished(options: { prefix: string }): Promise<StoreRestoreResult>;
/** Android, feature playBilling: a pending payment cleared while the app runs. */
addListener(
event: 'storeTransaction',
listener: (payload: StoreRestoreResult) => void
): Promise<{ remove: () => Promise<void> }>;
}
/** What Google Play Billing answers a restore with (Android, feature playBilling), beside iOS's `jws`. */