Skip to content

Detect unpremium user #116

Closed Answered by jdleung
mehmetpeker asked this question in Q&A
Discussion options

You must be logged in to vote

It might a wrong way, but that's a solution I can find:

  1. Set addBillingClientConnectionListener to check billing connection when app starts.
  2. If status is true in onConnected, set all subscription and nonconsume products to false.
  3. Then onSubscriptionRestored will be called if product is valid, just set the product to true again.

Important: be sure that the connection status is true before setting a product to false

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by akshaaatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants