I am using OneSignal to send notification and I was able to send a notification successfully but now I want to send them to a specific user or users I know I can create a segment to identify these users but let say I have a segment for company A and another for company B how can I add a new user to that segment.
so, in short, this is how the idea in my mind works in my DB I have users that belong to company A and another to company B they open the app and subscribe now how I give them a key to identify them do I send the key from my application or I store it in my DB?