InAppMessageListener
interface InAppMessageListener
Receives the outcome of a Play in-app messaging surface shown by AppPurchase.showInAppMessages.
In-app messages are how Google Play recovers subscriptions whose payment was declined: Play shows the user a fix-your-payment-method flow inside your app. If the user resolves the problem, Play returns the token of the recovered purchase and the subscription becomes active again — so the app must refresh its entitlement state when onSubscriptionRecovered fires.
Callbacks are delivered on the main thread.
Since
4.4.0