core: record the device store's view of a subscription

The service reads the store only once a subscription's paid coverage has
ended, so it never sees a cancellation while the period runs. The apps read
the device's store (StoreKit's renewal state, Play's isAutoRenewing) and
report it with /_badge subscription <state> <payment>, which records it on
the credited subscription purchase the payment resolves to and announces the
change to its owner.

A renewing report does not replace billingRetry or ended: Play lists a
subscription in its grace period with auto-renew on, and the service's next
answer clears billing retry once the charge lands.

Run: 003-badge-subscriptions-ui, slice 3
This commit is contained in:
spacedandy-agents-simplex committed 2026-10-14 23:00:34 +00:00
1 parent 7bc4dbca36
commit f126ef075d
5 files changed
+74 -1

No files matched your search

+1
View File
@@ -430,6 +430,7 @@ undocumentedCommands =
"APISendCallOffer",
"APISendServiceRequest",
"APISetAppFilePaths",
"APISetBadgeSubscriptionStatus",
"APISetChatItemTTL",
"APISetChatSettings",
"APISetChatTags",