I am trying to use In-App Purchase promo code in my android application. Same as define in “In-app Promotions” in developer “billing_promotions” page. But it not works properly, when I am uninstalling my app, my promo code not work. The application again shows the purchase button and the promo code not work, it says the promo code already used. How to detect purchased the app using promo code. How I can solve it?
My In-App Purchase promo code step In my activity's onResume() method use getPurchases(), within my onResume() method I use BroadcastReceiver and register my BroadcastReceiver as myPromoReceiver, using “IntentFilter - PURCHASES_UPDATED”
In my activity's onActivityResult()
And unRegisterReceiver(myPromoReceiver) in onPause() method.
Still it’s not work, how I can solve it? Please help me.