Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想根据位置限制推送通知,这意味着我想为不同的城市发送不同的通知。
Urban airship SDK有可能吗?有没有其他方法可以发送基于地理位置的推送通知?
谢谢。
得到解决方案。我们可以通过在代码中添加这两行来启用定位,
UAirship.location().isBackgroundLocationUpdatesAllowed = true UAirship.location().isLocationUpdatesEnabled = true
UAirship.location().isBackgroundLocationUpdatesAllowed = true
UAirship.location().isLocationUpdatesEnabled = true
我们可以根据位置从城市飞艇帐户中过滤所有用户。