什么是谷歌,services.json真的吗? [英] What does google-services.json really do?

查看:211
本文介绍了什么是谷歌,services.json真的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经努力把谷歌Analytics(分析)和GCM服务到我目前的应用程序。在这两种服务的实施指导,要求谷歌开发者生成的JSON文件:谷歌services.json并把它应用程序的根目录下

I have working on putting Google Analytics and GCM services into my current app. On the guide for both services implementation, google asks developer to generated a json file: google-services.json and put it under root directory of the app.

我发现,即使我从我的应用程序中删除此JSON文件,该服务仍然有效。

I found that even I deleted this json file from my app, the services still works.

只是想知道肯定,这是什么文件真的呢?什么它的使用以及它是如何工作的?

Just want to know for sure, what is this file really for? What its usage and how it works?

感谢您!

推荐答案

这是什么文件,真是为:

谷歌services.json 包含的开发人员凭证和配置设置,这是需要验证在连接与GoogleApiClient。虽然你的服务是工作的罚款与测试设备,因为它是检测到您的开发者帐户,但释放的公共您的应用程序后,将不无JSON文件的工作。所以,不要删除它。

google-services.json contains developer credentials and configuration settings, which is needed to verify while connecting with GoogleApiClient. Though your service is working fine with your test device as it is detecting your developer account but after releasing your app in public, it will not work without the json file. So don't delete it.

官方文件说:

应用程序建立一个GoogleApiClient,指定该作用域和API的应用程序将访问。当GoogleApiClient连接,用户在签名。

The application builds a GoogleApiClient, specifying which scopes and APIs the application will access. When the GoogleApiClient connects, the user is signed in.

查看它是如何工作部分。

这篇关于什么是谷歌,services.json真的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆