问题描述
有一个类似的主题 这里
好的.我们可以通过对 Google Play 的 RESTORE_TRANSACTIONS 请求了解用户的购买情况.但.它写在文档中" 仅当您的应用程序首次安装在设备上或您的应用程序已从设备中删除并重新安装时,您才应使用 RESTORE_TRANSACTIONS 请求类型."为什么不是每次开始后?每次应用启动时都可以查询 Google Play,看起来很舒服.
Okay. We can find out about user's purchase using RESTORE_TRANSACTIONS request to Google Play.But. It is written in documentation that" You should use the RESTORE_TRANSACTIONS request type only when your application is installed for the first time on a device or when your application has been removed from a device and reinstalled."Why not after every start?It looks comfortable and possible to query Google Play every time when the app starts.
否则
1) 我应该在我的 WEB 服务器上存储有关付款的信息
1) I should store information about payment on my WEB server
2) 或者我应该将此信息保存到 sdcard.记录应该是安全的,包括设备 ID,因此无法在其他设备上复制
2) Or I should save this info to sdcard. The record should be secure, includingdevice ID, so that copy on another device will not work
所以.哪种方式更好?谢谢.
So. Which way is better?Thanks.
推荐答案
我建议:
3) 使用应用内 Shared-Preferences 类或 SQLite 数据库
3) Use the in-app Shared-Preferences Class or SQLite Database
(查看此页面:http://developer.android.com/guide/topics/data/data-storage.html)
加密总是好的,但这样可以说数据附加到您的应用程序,通常不能被其他应用程序访问.
Encryption is always good, but this way the data is so to say attached to your application and can usually not be accessed by other apps.
这篇关于应用内结算.如何存储用户已支付的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!