3

在 C2DM注册表单中,(在很多事情中)我们被问到以下两个:

  1. 接收消息的应用程序的包名
  2. 用于向 C2DM 服务器发送消息的角色帐户电子邮件 ID。

我的问题是:这两件事是联系在一起的吗?

同一个注册应用程序(包名称)可以接受来自任何(或多个)注册角色帐户电子邮件 ID 的消息吗?

一个用例:

我必须向多个组织出售我的解决方案。该解决方案包括设备应用程序以及服务器部分(发送消息)。

我有一个注册包名称,比如 com.foo.Test(并提供了一个虚拟角色帐户,因为这是注册表单中的必填字段)

现在,每个组织(我已将我的解决方案出售给)应该能够使用他们自己的 ROLE 帐户 ID 将通知消息推送到 com.foo.Test 他们应该(并且可以)使用相同的包名称和他们自己的 ROLE 帐户再次注册ID ?

4

1 回答 1

4

Well, I found out that these two are not tied together. Initially I had a package name say (com.foo.test) registered on the C2DM sign up form. At that time I provided a ROLE account ID (say email1@gmail.com). Later on I went to the sign up page again and entered the same package name (com.foo.test) along with a different ROLE account ID (say email2@gmail.com) On two successive scenarios, the device app used these 2 ROLE account IDs as Sender IDs and was able to receive push notifications successfully.

于 2011-04-19T18:58:15.917 回答