Google Play游戏,“已保存的游戏”已弃用?

时间:2020-03-05 10:36:04

标签: android firebase google-play-services google-play-games google-play-developer-api

是否已弃用Google Play游戏服务的“保存的游戏”功能?

在其网站上,已保存的游戏未列为已弃用。
https://developers.google.com/games/services/android/savedgames

但是,当在代码中指定Drive范围时,Android Studio会提供代码提示,说明该功能已弃用,并且在Google Drive API网站上指出该功能已弃用。
https://developers.google.com/drive/android

网站建议迁移到Drive REST API?
并且该网站建议迁移到Firebase Cloud Firestore。

强烈建议需要应用程序数据存储的客户端迁移到非Drive解决方案,例如Cloud Firestore。

任何清晰度都将不胜感激。

1 个答案:

答案 0 :(得分:2)

不推荐使用Drive API。我想保存的游戏内部实现现在使用Drive REST API。

Drive.SCOPE_APPFOLDER替换为new Scope(Scopes.DRIVE_APPFOLDER),以清除Lint警告。如果您检查内部结构,就会发现它们是相同的。