0
I have a code configured for PHP in it is sending the messages all ok for all applications, I want to configure the code to send only to an application. ( What I did after installing the app on the mobile phone generates a player_id on the site of onesignal). I took this id and pasted it in a field of mine in my form {Player}.
CODE:
function sendMessage(){
$content = array(
"en" => "Você Tem Um Novo Aviso Individual !!!"
);
$fields = array(
'app_id' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"include_player_ids" => ('all'),
'data' => array("foo" => "bar"),
'contents' => $content
);
I want to know how to set up here "include_player_ids" => ('all')
, for the code understand that since send to all ('ALL') it send to the player_id that is in this field {Player}.