简体   繁体   中英

How to customize push notifications in Bluemix

I'm trying to configure NodeRED to send notifications to the Android apps on devices of a specific user and people who are registered as his family in the logic. I have never dealt with push notifications and I don't know what to look for so steps or even keywords to look up is appreciated.

It depends. Generally you can now see flows of your notification service. In the Node-RED flow editor, double-click the notification node to open the Edit function node dialog box. You should edit the payload object to customize the message notification.

Here there is an example that could be useful for you http://www.ibm.com/developerworks/library/wa-nodered-push-app/

I suggest using tags to group this 'family' of users together. After creating the tag, you will need some logic on the Android side to identify if the user is part of that family. If they are, you can subscribe them to the appropriate tag, then you can send a notification to all subscribers of that tag with one REST call. See the Bluemix doc Enabling tag-based notifications for more info.

As a general note, you can also send notifications to single users if you have their device ID. The device ID is included in the response after registering with the Push Notifications service and should be saved somewhere if you plan on using it for very specific push notifications. Something to consider, let me know if this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM