如何应用邀请工作没有谷歌,services.json? [英] How is App Invites working without google-services.json?

查看:146
本文介绍了如何应用邀请工作没有谷歌,services.json?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过步骤设置了应用程序描述邀请的>。

I've gone through the steps to setup App Invites as described here.

出于好奇,我试着不包括谷歌,services.json,它仍然在不同的谷歌开发者控制台

Out of curiosity, I tried without including the google-services.json and it still works depending upon the configuration in Google Developer Console.

如果没有Android的API密钥(或有可能是一个Android API密钥,但没有包的限制),那么应用程序邀请作品(以作品我的意思是能够发送邀请消息 - 我没有测试过的其他功能如转介)。如果API密钥包定义限制,那么这些规则服从。

If there is no Android API key (or there is an Android API key but no package restrictions) then App Invites works (by "works" I mean is able to send the invite message - I haven't tested the other features such as referrals). If API key package restrictions are defined then those rules are obeyed.

更新:尝试这种情况下 - 没有定义API密钥,两OAuth 2.0用户端的标识 - 一个版本,一个用于调试。然后,应用程序可以邀请两个版本发送消息和调试版本,不需要任何的JSON文件。

UPDATE: Try this scenario - No Api Keys defined, Two OAuth 2.0 client IDs - one for release, one for debug. Then App Invites can send messages in both release and debug builds without any need for the json file.

这是所有预期的行为吗?不包括JSON文件带来什么好处呢?

Is this all expected behaviour? What benefits does including the json file bring?

推荐答案

有关的谷歌服务的内部工作原理的详细信息gradle这个-插件看到我的其他答案:

For detailed information about the inner workings of google-services gradle-plugin see my other answer:

http://stackoverflow.com/a/330​​83898/433421

这篇关于如何应用邀请工作没有谷歌,services.json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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