简体   繁体   中英

Android , in app purchase , know if the user has already bought it

我的应用程序中有一个用于删除广告的按钮,如果用户购买了广告,则将其删除,我将其保存在用户已经购买过的sharedpreferences中,但是当您再次卸载并安装它或清除数据时,sharedoreferences被删除,因此广告再次展示,我怎么知道用户已经购买了它?

Why not have everything trigger server side? Once its been purchased save it on your server then get the unique id of the device and restore the ad blocker when the app first gets downloaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM