I have a code set up 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 phone it generates a player_id on the onesignal site). I took this id and pasted it into a field of mine on my {Player} form.
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 "include_player_ids" => ('all')
here, so that the code understands that from send to all ('ALL'), it sends to the player_id that is in this field {Player}.