mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
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:
@@ -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`. */
|
||||
|
||||
Reference in New Issue
Block a user