C2dM 的缺点

发布于 2024-11-09 14:10:49 字数 157 浏览 6 评论 0原文

我们都知道,从 Android 2.2 开始,存在推送通知系统(C2dM)。但是,我没有看到很多开发人员使用它。 在我的下一个项目中,我计划(希望如此)使用这个系统。所以在深入研究它之前,我想知道它有哪些不好的方面?为什么人们不使用它?

这不仅仅是因为与 2.2 之前的系统不兼容。

We all know that as of Android 2.2 a push notification system exists (C2dM). However, I do not see many developers using it.
In my next project I plan (hope so) to use this system. So before I dig into it, I would like to know what are the bad sides of it? Why people do not use it?

It can't be just because of incompatibility with systems older that 2.2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一笑百媚生 2024-11-16 14:10:49

好问题。这是我的 2 美分:

  1. C2DM 仍处于测试阶段
  2. 您可以发送的消息数量有限制。如果您需要发送大量消息,那么您需要向Google解释并获得批准。
  3. 该设备必须有 Android 市场并登录一个 google 帐户。
  4. 该文档有点不稳定 [我个人的意见]。例如,注册表单在同一页面上要求提供应用程序包名称和 ROLE 帐户 ID,这会让人产生错误的印象,即一旦注册,程序包名称就会与 ROLE 帐户 ID 绑定,并且只能从中接收消息。

我不认为人们没有使用它。相反,我发现大多数开发人员对此非常感兴趣并且正在实施它。我的 C2DM 帖子 访问者最多我所有的帖子。

然而,问题可能出在开发独立应用程序的个人开发人员身上。他们可能不愿意使用它,因为他们需要维护服务器端组件来推送消息。

[将更新我的答案。如果我发现任何其他东西。]

Nice question. Here is my 2 cents :

  1. C2DM is still in beta
  2. There is a limit on the number of messages you can send. If you need to send a large number of messages, then you need to explain it to Google and get it approved.
  3. The device must have Android market with one google account signed in.
  4. The documentation is a bit flaky [My personal opinion]. e.g. The signup form asks for the app package name and the ROLE account ID on the same page providing wrong impression that once signed up, the package name is bound to the ROLE account ID and can only receive messages from it.

I don't think people are not using it. Rather I find most developers are very much interested in it and are implementing it. My C2DM post has the most visitors of all my posts.

However the problem might be for individual developers who develop stand alone apps. They may be reluctant to use it since they will require to maintain a server side component to push messages.

[Will update my ans. if I find anything else.]

奶气 2024-11-16 14:10:49

我认为很多人不使用它,因为

  • 他们没有真正需要它
  • 到目前为止,它还不是很直接
  • 如上所述,它仍处于测试阶段。

使用Apple Push,它非常简单(在设备端),您只需调用一个调用,它就会为您提供设备令牌。使用C2DM,您必须(尽管您可以挖掘Google帐户)提示用户输入Google帐户,然后您必须希望他们没有太多已注册C2DM的应用程序(现在限制100个)。

服务器端,我想说 C2DM 比推送容易得多,您只需调用一个服务,使用 APNS 您需要设置管道、使用证书等。这对大多数人来说并不容易做到。 C2DM 只是调用 HTTP 调用。服务器方面也增加了一些费用,托管应用程序服务并不总是便宜。

我没有看到很多应用程序需要它,到目前为止 Twitter 和 Facebook 似乎需要它(尽管他们可能使用其他东西,我不确定)。

而且,它仍然是测试版服务。开发人员是否愿意在测试版服务上投入大量时间?并非所有人都这样做,有些人会冒险。

我已经使用过它并且喜欢它,我将它与 APNS 结合起来,到目前为止已经取得了巨大的成功。

I think a lot don't use it because

  • They have no real need for it
  • So far it isn't very straight forward
  • Stated above, it is in beta still.

With Apple Push, it is pretty straight forward (on the device side), you simply invoke a call and it gives you the device token. With C2DM, you have to (though you can dig for the google account) prompt the user for the google account, then you have to hope they don't have too many Apps already registered for C2DM (100 limit now).

Server side, I'd say C2DM is a lot easier than push, you simply are invoking a service, with APNS you need to setup pipes, use certificates, etc. It isn't easy for most to do. C2DM is just invoking a HTTP call. The server aspect adds a bit of expense as well, hosting application services isn't always cheap.

I don't see a lot of Apps having the need for it, so far Twitter and Facebook seem to be (Though they may be using something else, I am not sure).

And, it is still a beta service. Do developers want to invest a lot of time in a beta service? Not all do, some will take the risks.

I've used it and I like it, I have it coupled with APNS and have had great success so far.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文