OneSignalPlus | Get PlayerID, Send Push, Add Tag, etc [Donation]

extension
howto

#15

Very nice job!!! Just a suggestion: You could put an option to send a message for a group of users… You know that in OnSignal we can create groups for determined users… it could be a good option. What do you think?


#16

actually the components for this have been made by @Jerin_Jacob here.


#17

Ah ok!, Thank you!!!


#18

Hola, te acabo de enviar un donativo de 5, envíame a este correo la extensión gracias.


#19

@Sebastian_Segovia what about sending a PM to the developer?
also posting an email address in a public forum is probably not a good idea, is it?
do you want to reeive loads of spam messages in your account?

Taifun


#20

Sí Taifun toda la razón.


CustomChatBox v.1
#21

This extension is an further development from the previous version.
in this version I added an addtag feature for certain users.
the advantages of using this tag feature are explained on this page.

example block

you also can delete the tags, just set the key with the tag which you want to delete and set the value with blank text.

if you need this component, you can send a little donation for further development. You can send donations to my paypal here . Donations can be of any value
send a personal message to me after you give a donation, I will send the download link via email.


#22

Hi @wanttobe,

You are doing nice work but i merged all your topics about the same extension together. This way we can keep the forum as clean as possible. I hope you understand.


#23

this is the further development from OneSignalPlus extension.
in this version, i have added the feature so you can send push notification to specific segment

if you need this component, you can send a donation for further development. You can send donations to my paypal here . Donations can be of any value
send a personal message to me after you give a donation, I will send the download link via email.


Extension OneSignalSend
#24

here is the sample block joined with Web Extension


Sending notifications using Onesignal API
#25

hola, estoy usando esta Extension y quiero comentarles que funciona perfectamente!
Uso Android 8.0

Saludos


#26

thanks a lot for your informations


#27

Hello, I made a donation, you could send me the onesignal plus extension to my email


#28

Just made a donation, can you send me the onesignal plus extension to my email, please?


#29

Send a pm to the developer as stated in his post.


#30


Please help with correct format for include_player_id. All efforts to put string values into the array from mysql database give error. I used your extension to get playerId and insert into the database. If i paste the value directly my code works.
I’m dealing with just one value of playerId, not an array.

Thank you.


#31

try put php variable into your function

<?php
    function sendMessage($playerID){
   .....
    $fileds = array(
        'app_id => "your app ID from OneSignal",
        'include_player_ids' => array($playerID)',
        ....

    );
.....
}
$playerID = "put your player ids here"; 
sendMessage($playerID);

#32

Thanks for your response.
This is what I did, fetching string from my database but onesignal sees null.
I guess I’m still doing something wrong.

// …fetch from database
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {

function sendMessage(){
$content = array("en" => $_POST['message']);
$fields = array(
'app_id' => "my app id",
'include_player_ids' => array($row["playerId"]),
'contents' => $content
);
	
	$fields = json_encode($fields);
	print("\nJSON sent:\n");
	print($fields);


#33

just apply my code above, your code was wrong anyway.


#34

I desire to push message to an individual user. I have tried your code, it didn’t work for me. Can you please show the complete code to include message to be sent. Maybe that’s where I’m getting things wrong. I hope to order the new version of your extension this week if you have alternative payment processing. I don’t have paypal account presently.
Thank you.