Send push notification using GCM to multiple topics at a time in ios #ios # google-cloud-messaging

时间:2015-11-12 10:58:04

标签: ios google-cloud-messaging

Id like to replace using UrbanAirship with GCM in my project. Urban Airship allows me to create tags to a certain device and send a push notification to a Intersection of devices that fall under a tag.

Question 1 : How do I achieve this with GCM with the already existing API's ? For example, If a few devices are registered for multiple topics (Region, DeviceType, Version) , I'd like to send a push to an "intersection" of devices who have registered to these topics instead of sending it the "Union" of devices ? (I'd like to send a push notification only to devices in NorthIndia for iPad with a version of 2.0).

Question 2 : I also see that for device group messaging, "The maximum number of members allowed for a notification_key is 20.” Does this mean that I can only have a max of 20 devices under one notification_key ?

1 个答案:

答案 0 :(得分:0)

答案1: GCM无法做到这一点。

回答2:是的,这意味着一个独特的用户不应该拥有超过20个设备! :d