Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the "in-app billing service" cache

In the documentation for in app billing (v3), it says: "Upon a successful purchase, the user’s purchase data is cached locally by Google Play’s In-app Billing service."

I now want to thoroughly test my app's billing code and wish to clear that cache. Its important because without the data being in the cache, it may take a little longer to collect the data - or it may not be accessible at all. I want to test that my app can handle these cases.

So is there a way to clear that cache?

like image 622
Mick Avatar asked Mar 25 '13 15:03

Mick


People also ask

What does clearing application cache mean?

Clearing your cache means deleting the information automatically stored to your device when visiting a new site or opening an app. You might do this if you are strapped for space on your device or if you've noticed it's performing slower than usual.


1 Answers

You can do this with adb (works for non-rooted as well):

adb shell pm clear com.android.vending

It's as simple as that!

like image 190
Pär Nils Amsen Avatar answered Oct 18 '22 03:10

Pär Nils Amsen