問題描述
為 Google 播放器帳戶存儲自定義數據的免費方式。(安卓,全球定位系統) (Free way to store custom data for a google player account. (Android, GPGS))
我正在尋找一種方法來為我的 android 遊戲存儲一些簡單的數據(遊戲進度、解鎖等)。遊戲將使用遊戲內貨幣(通過獎勵、應用內購買、廣告觀看賺取),因此無法在本地存儲數據。
要求是:
- 即使用戶更換設備或卸載遊戲,數據也應該是持久的。
- 作弊應該不容易
- 我正在尋找一種免費且簡單的方法為了實現這一點,即使遊戲成功,配額也足夠大
考慮到這些,我想我將能夠使用 Google Play 遊戲服務來實現這一目標。但是保存的遊戲不能是選擇,因為它們會被卸載,如果用戶卸載遊戲,並且擁有圖標的要求不符合我的需要。我可以使用成就來“存儲”玩家已經解鎖/購買的物品,但我無法通過成就管理貨幣本身。如果可以選擇將產品配置為“僅使用虛擬貨幣購買”並且它具有虛擬貨幣的銀行賬戶選項,我可以使用計費 api。(我真的不明白,為什麼不存在這樣的功能)
我還是有點希望,我想辦法濫用google‑player‑account周圍的一些免費功能來存儲我需要的。有什麼建議嗎?
如果沒有辦法租用我自己的雲數據庫,有什麼建議嗎?
PS:請原諒我的英語;)
玩家已經解鎖/購買了哪些物品,但我無法通過成就管理貨幣本身。如果可以選擇將產品配置為“僅使用虛擬貨幣購買”並且它具有虛擬貨幣的銀行賬戶選項,我可以使用計費 API。(我真的不明白,為什麼不存在這樣的功能)我還是有點希望,我想辦法濫用google‑player‑account周圍的一些免費功能來存儲我需要的。有什麼建議嗎?
如果沒有辦法租用我自己的雲數據庫,有什麼建議嗎?
PS:請原諒我的英語;)
玩家已經解鎖/購買了哪些物品,但我無法通過成就管理貨幣本身。如果可以選擇將產品配置為“僅使用虛擬貨幣購買”並且它具有虛擬貨幣的銀行賬戶選項,我可以使用計費 api。(我真的不明白,為什麼不存在這樣的功能)我還是有點希望,我想辦法濫用google‑player‑account周圍的一些免費功能來存儲我需要的。有什麼建議嗎?
如果沒有辦法租用我自己的雲數據庫,有什麼建議嗎?
PS:請原諒我的英語;)
參考解法
方法 1:
You can use Firebase to store your data. It is a backend that is provided by Google that includes a real‑time database. It is free upto a certain limit. Failing that, there are also free third‑party hosters like hostinger.com and 000webhost.com which offer free PHP and MySQL systems.
(by Edgar Lensing、rhari)