Android: Additional data for wide events / pixels to track query purchase changes#8863
Merged
Merged
Conversation
Avoids adding a separate wide event field; the cause is appended to the existing loginError as "PurchaseInfoNotAvailable - <cause>". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0732cb0 to
7becaeb
Compare
Contributor
|
Privacy Review task: https://app.asana.com/0/69071770703008/1215658841043923 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/1/137249556945/task/1215532568282106?focus=true
Tech Design URL (if applicable): https://app.asana.com/1/137249556945/project/481882893211075/task/1215021185439979?focus=true
Description
Steps to test this PR
QA-optional
Note
Medium Risk
Touches subscription auth refresh and store-recovery error paths; behavior for users is largely unchanged aside from richer failure telemetry and one new pixel on confirmed no-purchase restore.
Overview
Improves observability around Play Billing
queryPurchasesand store-login recovery by carrying low-cardinality cause tags through the purchase-query path instead of a single opaque failure label.LatestPurchaseResult.Unknownis now a data class withcause(e.g.billing_client_not_ready,query_purchases_failed:…), propagated intoStoreLoginResult.Failure.PurchaseInfoNotAvailable(cause). That cause is included in auth token refresh wide-eventplay_login_errorwhen store login fails without sign-out, and inrecoverSubscriptionFromStore()failure messages for the same failure type.Adds pixel
m_privacy-pro_app_recover-subscription_no-active-purchase(count + daily), fired only when recovery hitsNoActivePurchase(confirmed empty Play purchase), including manual restore and auto-recovery during purchase—not when login succeeds but the backend subscription is inactive or when purchase info is unknown.Reviewed by Cursor Bugbot for commit 7becaeb. Bugbot is set up for automated code reviews on this repo. Configure here.