Every user have unique user ID for onesignal notification.
You can try sending notification to that ID which receives the message.
However, the block image you posted can be used to group user by tag.
For example: if you have pro and free version users in your app and you want to send notification to only free user or pro user then this block may be useful.
You can make a segment for your user by using that block.
On your app if only one user receives the notification then send it by user’s ID and if a group needs to be notified then do make segment for each group by using the block posted.
You can use Onesignal Send extension for more features.
Thank you for your reply.
I know the TAGS.
I want (as with Whatsapp) that every user who is in the chat group receives a message when someone in the chat has sent a new message.
I can send a message to every single user -> PlayerID
I was hoping that it would be easier with Segment and / or TAG.
I save their OneSignal ID for each user.
When I then click on a chat, I check which users belong to this chat and save the OneSignal ID in a list. Then when I send a chat, I also send the message to the PlayerID.
But my problem now is:
I also get the message when I’m in chat.
I was hoping, with the “Notification Received” method, I can leave the message empty?
What can I do so that the Onesignal message only appears to the recipient when the recipient is not in the chat or the app is closed?
how can I notify a specific user (PlayerID) in a specific segment?
How can I turn off / prevent the in-APP notification. (don’t want to read the message twice when I’m chatting - just want to be notified when the app is closed)
The tags are used to mark users. In the OneSignal dashboard, you can view the tags for the users in the table and create segments accordingly.
A PlayerID already exists, this PlayerID must then be included in the segment via a tag. The segment must then contain “has this tag: xyz” as a condition.
Yes, but I haven’t figured out how to tell whether someone is still actively using the app or not.
Not everyone logs out. You don’t log out of WhatsApp either?
As a sender, how am I supposed to recognize whether someone is still using the application or not?
There is a block called “On App Stop” in block section, when you click screen name. Maybe this could help you. You can disable push notification on screen initialize and enable it using this block. Or you can try some other method.