【问题标题】:Google Play games, 'Saved games' deprecated?Google Play 游戏,“已保存的游戏”已弃用?
【发布时间】:2020-06-17 23:14:01
【问题描述】:

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

在他们的网站上,Saved Games 未被列为已弃用。
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。

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

任何清晰度将不胜感激。

【问题讨论】:

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


    【解决方案1】:

    Drive API 已被弃用。我猜现在保存的游戏内部实现使用 Drive REST API。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-25
      • 1970-01-01
      • 2019-11-19
      • 2015-07-10
      • 2016-08-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多