简体   繁体   English

在BlueMix上的移动应用程序中,如何轻松地对用户进行分组(授权)

[英]In a mobile app on BlueMix, how the users can be easily grouped (authorization)

I am building a mobile app based on the BlueList example on Bluemix. 我正在基于Bluemix上的BlueList示例构建移动应用程序。 I need to add a feature that the login users can be grouped and only users within certain groups get the notification. 我需要添加一个功能,可以对登录用户进行分组,并且只有某些组中的用户才能收到通知。 Like a chatroom app. 就像聊天室应用一样。 What is an easy to use BlueMix services to help to implement this? 有什么易于使用的BlueMix服务来帮助实现这一点? Thanks a lot for your help. 非常感谢你的帮助。 Zheng

Sounds like you need to create some tags for user subscriptions. 听起来您需要为用户订阅创建一些标签。 You do not need to implement any kind of further authorization to enable what you are trying to do. 您无需实施任何进一步的授权即可启用您要尝试执行的操作。

Simply create a tag in your push application and name it whatever you'd like. 只需在推送应用程序中创建标签,然后根据需要命名即可。 You can do this through the Push Dashboard or through the REST API. 您可以通过Push Dashboard或REST API来执行此操作。 Once a tag is created you can subscribe individual users to that tag. 创建标签后,您可以为单个用户订阅该标签。 Then you'll be able to send out a push notification to that tag and only users subscribed to that tag will get the notification. 然后,您将能够向该标签发送推送通知,只有订阅该标签的用户才能收到通知。

If you are using the IBM Push Notifications service check out these docs: 如果您使用的是IBM Push Notifications服务,请查看以下文档:

https://www.ng.bluemix.net/docs/services/mobilepush/using_tags.html https://www.ng.bluemix.net/docs/services/mobilepush/using_tags.html

If using the Push service (deprecated): 如果使用推送服务(不建议使用):

http://mbaas-gettingstarted.ng.bluemix.net/android#subscriptions http://mbaas-gettingstarted.ng.bluemix.net/android#subscriptions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在IBM Bluemix中对移动云应用程序进行授权 - How to do authorization for mobile cloud app in IBM Bluemix 如何在Bluemix中为移动应用程序创建服务器 - How to make a server for a mobile app in Bluemix 什么 OpenID Connect 授权流程可以对移动应用程序用户进行身份验证? - What OpenID Connect authorization flow to authenticate mobile app users? IBM Bluemix使用地理分析来定制移动应用程序地图 - IBM Bluemix customizing mobile app map with geoanalytics Bluemix Mobile Analytics:看不到我的应用程序发送的日志记录数据 - Bluemix Mobile Analytics: Can't see logging data sent from my app 我可以将授权码与 PKCE Flow 一起用于移动应用程序吗? - Can I use Authorization Code with PKCE Flow for mobile app? 使用Facebook登录的移动应用-如何验证用户身份 - Mobile app with Facebook login - how to authenticate users 如何轻松地将现有的Android应用程序适应Honeycomb? - How can I easily adapt my existing Android app to Honeycomb? 移动和Web用户的身份验证/授权架构 - Architecture for Authentication/Authorization of Mobile and Web Users 可以轻松确定移动设备的MAC地址吗? - Can the MAC address of a mobile device be easily determined?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM