是否有仅使用GCM主题时收集注册标记点? [英] Is there a point in collecting registration tokens when using only the GCM Topics?
问题描述
我目前正在实施云谷歌将消息传递我的应用程序。基本上我的应用程序有类别和我需要的用户进行notifed关于经常性在这些类别的事件。
I'm currently implementing Google Cloud Messaging into my app. Basically my app has categories and I need my users to be notifed about recurring events in those categories.
我决定用GCM主题作为一种简单的方式来通知所有订阅特定类别的用户(我将有200-300主题)。
I decided to use GCM Topics as a simple way to notify all the users subscribed to a specific category (I will have about 200-300 topics).
我的问题是:由于我没有在通知单个用户,而是所有用户订阅频道特定主题计划,有没有在我的服务器上收集注册标记点?这些ID不需要发送下行消息到一主题
My question is : Since I don't plan on notifying a single user but instead all users subcribed to a specific topic, is there a point in collecting the registration tokens on my server ? Those ids are not required to send a downstream messages to a topic.
我现在有20〜000的用户
I currently have ~20 000 users
发送到GCM HTTP连接服务器消息
Message sent to GCM Http Connection Server
{
"to": "/topics/category1",
"data": {
"message": "Hello subscribers of category1 !",
}
}
感谢您
推荐答案
由于它是不是最好的做法,但在技术上没有必要令牌存储在服务器上,如果你只是想用主题讯息。
As it isn't the best practice but technically there is no need to store tokens on your server if you just want to use topic messaging.
您应该知道这几点:
- 您不能再发送推送通知给特定的用户。
- 您必须处理
onTokenRefresh()
仔细eachtime你会得到一个新的令牌注册用户提供所有所需主题的 agian 。 - 作为主题讯息是GCM新功能的一些旧版本的谷歌游戏服务可能无法的用户订阅的主题。请参见此页面。
- 每个主题有注册用户的最大数量(每个主题100万用户) 限制
- You can't send a push notification to a specific user anymore.
- You have to handle
onTokenRefresh()
carefully and eachtime you get a new token register the user for all of the desired topics agian. - As topic messaging is a new feature on GCM some of the users with old version of Google Play Services maybe unable to subscribe to topics. See this page.
- Each topic has a limit for maximum number of registered users (1 Million user per topic)
这篇关于是否有仅使用GCM主题时收集注册标记点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!