GCM 发件人 ID/项目编号 [英] GCM sender id / project number

查看:18
本文介绍了GCM 发件人 ID/项目编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要发送 GCM,我们有来自 Google API 控制台的 SENDER ID,保护该 SENDER ID 是否重要?我的意思是,如果有人知道那个 ID,他们会做坏事吗?我犯了一个错误,我认为 ID 在我的一个项目中......我能以某种方式改变它吗?我无法通过查看 Google API 控制台来更改它!我应该担心吗?或者可以吗?

to send a GCM, we have a SENDER ID from Google API console, is that important to keep that SENDER ID protected? I mean, would someone be able to do bad things if they know that ID? I did a mistake and I think that ID was in one of my projects... am I able to somehow change it? I couldn't find anyway to change it by looking at the Google API console!. should I be worried about that? or is it ok?

可以更改服务器和浏览器 API 密钥,但不能更改 SENDER ID、PROJECT NUMBER...

the server and browser API keys can be changed but not the SENDER ID, PROJECT NUMBER...

推荐答案

是的,您应该保护项目编号(对于 GCM 来说也是 Sender Id);否则任何人都可以使用它,这将计入对 API 的使用.它类似于任何其他服务的 API 密钥,例如谷歌地图.

Yes you should keep the project number (which is the Sender Id as well for GCM) protected; otherwise anyone can use it and it will count toward your usage of the API. It is similar to the API key for any other service e.g. Google Maps.

除了创建新的 Google 帐户之外,我不知道有什么方法可以更改它,但是在 Google API 控制台的仪表板中,有一个选项可以注册/生成 Project ID,但我知道不确定 GCM 是否会将此作为 Sender Id 接受.你可以试试看.

I am not aware of any method to change it other than create a new Google account, but in the Dashboard of Google API console there is an option to register/generate a Project ID but I am not sure if GCM will accept this as Sender Id. You can give it a try.

如果您的 项目编号 暴露了(在旧 API 中,发件人 ID 是您的电子邮件)可能不会那么危险,因为您仍然需要 API 密钥 能够通过 GCM 发送通知

It might not be that dangerous if your project number is exposed (in the old APIs the sender id was your e-mail) , because still you will need API key to be able to send notification via GCM

这篇关于GCM 发件人 ID/项目编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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