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 OneSignalPush extension.
inside there are two parts:
- Knowing the subscription status is true or false
- Obtain PlayerID information
in my case, I am storing this PlayerID information on my server, so I can use this information to send messages to specific users.
This can be used to :
- chat application (accept push notifications if someone sends a message)
- e-commerce application (accept push notifications for purchase / sale status)
- registration of members (accept push notifications for member registration status)
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 who need to get PlayerID from OneSignalPush Push Notification
com.OneSignalPlus.aix (11.2 KB)
note: actually, this is not my full coding result, in the learning phase, I tried to compare from several applications that I had previously made with appybuilder and others and took some parts (scripts) from the extracted results.
Current Version : Version 4