I use OneSignal to send notification from server and users to users.
In my app,users can send notification to eachother.
it is possible with send tag
? if so how can i do that?
I do not want to use user ids. (How can find each user ids from another user?)
I want to do that like parse.com. One user setchannel and other user send notification to that channel.
Thanks in advance
Find your device for Mobile App Using the OneSignal SDK User Data Methods, plugin your device to Xcode or Android Studio and log the player id of your device in the console. Then copy the Player Id without quotes and see above to add it as a Test User.
Install Your SDK Copy the alpha numeric code that OneSignal generates called Your App ID in the image below. On Thunkable, open the Push Notifications dialog and paste this ID into the Android App ID field. Click the Live Test button. Once the app is on your phone, go back to One Signal.
You can call sendTag
from the OneSignal SDK with your channel name as the key and 1
as the value.
You can then make a POST call to OneSignal's create notification REST API. Set the tags
field according to the documentation page to target your 'channel'. This call needs to be made from your server since targeting tags
requires your OneSignal App REST API key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With