广播到所有注册设备的通知通知、设备

2023-09-07 23:59:49 作者:久念陌人

我想使用谷歌云消息推送通知添加到我的Andr​​oid应用程序。我不需要任何幻想,我只想当某些事件发生时通知应用程序的所有用户。

我并不需要通知个人用户,我总是希望将通知发送给每一个用户。这是内部应用与用户的数量非常有限,所以不公开分发

现在,据我了解的文件,我需要为每一个通知,我想送一个注册ID。我真的不希望跟踪那些因为我不需要识别各个设备。

我可以只广播到所有的设备,而无需使用任何注册ID?如果不是这样,我怎么能得到所有注册设备的注册ID?我必须手动跟踪那些(GCM的外通信)?解决方案   

我可以只广播到所有的设备,而无需使用任何注册ID?

没有,不好意思,而不是在present时间。

  关于开展2014年度注册设备监理师执业资格注册工作的通知

如果不是,我怎么能得到所有注册设备的注册ID?我必须手动跟踪那些(GCM的外通信)?

是的,你必须手动跟踪那些(例如,安装了该应用通过Web服务发送给您的注册ID)。

I'm trying to add push notification using Google Cloud Messaging to my Android application. I don't need anything fancy, I just want to notify all users of the app when certain events happen.

I don't need to notify individual users, I always want to send the notification to every user. This is an internal app with a very limited number of users, it is not distributed publicly.

Now, as far as I understand the documentation I need a registration id for every notification I want to send. I don't really want to keep track of those as I don't need to identify individual devices.

Can I just broadcast to all devices without using any registration ids? If not, how can I get the registration ids of all registered devices? Do I have to keep track of those manually (outside the GCM communication)?

解决方案

Can I just broadcast to all devices without using any registration ids?

No, sorry, not at the present time.

If not, how can I get the registration ids of all registered devices? Do I have to keep track of those manually (outside the GCM communication)?

Yes, you have to keep track of those manually (e.g., have the app send you the registration ID via a Web service).