push notifications with tag and sub tags at IBM WL\MF 7.1.0.00

74 Views Asked by At

i wanna develop possibility of send push notification with tags and sub tags, the only information that i read was with only one level tag. maybe, there is an option that to thread the tags and sub tags, but if i want to send push notification and the user register to more than one tag \ sub tag he will get the notification twice (or more)? is someone had this challenge? I'd love to get ideas for solutions.

thanks you all, sahar

1

There are 1 best solutions below

4
On

There is no option to create "sub tags". There is only one level of tags.

You could possibly control this with some logic before sending the notification.

If I recall your project you have a PHP script that sends the call to the adapter to send the push notification, in this case if the tag is also a "parent tag" (such as "news", which is a tag like "sports", "politics", "tech"), then when constructing the request, use only "news" and not also another notification per "child tag".

Edit: per the comment where you're asking about using adapters, you should be able to implement this also in an adapter, since in the adapter you obtain a list of tags, so that's where you could also decide to which tags to send the notification: https://github.com/MobileFirst-Platform-Developer-Center/TagNotifications/blob/release71/adapters/PushAdapter/PushAdapter-impl.js#L29