Get "id player" from onesignal


#1

a block that can pick up the ID of the device “IDplayer” and be able to use that information. in push notification onesignal


#2

Yes, i need this too, since i build a chat application. so users will get Push Notification if they receive new chat message


#3

Take a look at blocks ink PhoneCall components


#4

Let us know if block below helps you out:

image


How to send notifications when app is not running in background?
#5

Thanks a lot for your reply @Hossein.
I have tried using the Phonecall component, although I can get information on the device that the user is using, but it is still very global.
For chat applications 1 to 1 with a number of users of around 600 people, the number of users who use the same device and version will certainly be a lot, so if sending push notification only with device filters will be less effective.
for now, I need PlayerID information which is a unique filter provided by OneSignal to each subscriber.
if the PhoneCall component can provide information about it, what key should I specify to get that information.


#6

What do you mean by global?


#7

These are the things you get back when you use the phonecall block.

Choose the one that are unique for instance the IMEI value.


#8

Thanks @Hossein and @Peter

First, I apologize if my english not to good

what I mean global before, is that identities like “device” (which stored in OneSignal Database when Subscribe) are not unique, and can be owned by multiple users / devices.
so if I send a message with a filter “device”, then the pushnotification about the message can be sent to several people.

Images

IMEI is really unique, but it’s not stored in OneSignal Database.

if possible, when a user subscribes and gets PlayerID from OneSignal, the Application can store the PlayerID data. This is very useful for further application development, it can be used to synchronize with a website database, especially if the application uses the webview component as its main feature

or if possible too, when a user subscribes, from the application it can simultaneously send a special Tag as a unique identification per user / device, for example, the tag used is an email address that has been recorded in the application database.


#9

HI, @Hossein, i found this block on kodular,

can it applied in Appybuilder? i mean about “Get User ID

Kind Regards

Gumilar


#10

We’ll add this Player ID in next release:


#11

Thank you so much @Hossein

Best Regards,

Gumilar


#12

Thank you @Hossein :+1:t2:


#13

thank you so much sir … it will be very useful.:ok_hand:


#14

Thanks so much for you and Appybuilder Team for releasing Editor

after learning and trying for these two days, finally, for the first time I was able to make my own extensions that I really need right now.
This extension is very simple, is an addition to the OneSignalPush extension.
inside there are two parts:

  1. Knowing the subscription status is true or false
  2. Obtain PlayerID information

This extension is still very minimal because this is the first extension I made, besides that I just learned java because I wanted to make this extension.
I hope this extension can help all of your here

com.OneSignalPlus.aix (11.2 KB)