关于Android Google BillingClient queryPurchaseHistoryAsync接口返回范围的技术确认请求
queryPurchaseHistoryAsync question Hey there! Let me break this down clearly for you based on the standard behavior and official docs of the queryPurchaseHistoryAsync API:
Yes, this API only returns purchase records tied to the current app making the call. You don’t have to worry about pulling in purchase data from other apps, so there’s no privacy risk related to accessing unrelated user purchase history.
As the official documentation specifies, this interface returns the most recent purchase record for each SKU your app offers — even if that record is expired, canceled, or consumed. But critically, this scope is strictly limited to SKUs associated with your own application. App store platforms enforce strict sandboxing and access controls, ensuring every app can only access its own user purchase data to protect user privacy and data security.
So if you need to retrieve past subscription records for your own app, this API is totally safe to use. It won’t expose any purchase information from other apps, so you can proceed without privacy-related concerns.
内容的提问来源于stack exchange,提问作者Psest328

