php - OneSignal group notification -
i created project on 1 signal.
i can send php notification on phone.
the problem comes when arrives more 1 notification. new notification replaces previous notification (not yet read ).
how instead android has 2 unread notifications?
the array can send:
$fields = array( 'app_id' => "xxxxxxxxxxxxxxxxxxxxxx", 'included_segments' => array('all'), 'data' => array("foo" => "bar"), 'headings' => array("en" => "test"), 'contents' => $content, 'android_visibility' => '0', 'priority' => '10', 'android_group' => '', 'android_group_message' => array("en" => "$[notif_count] message"), 'url' => "http://www.google.it" );
thank you!
use single quotes or escape $
here if want use $
character
'android_group_message' => array("en" => "\$[notif_count] message"),
or
'android_group_message' => array("en" => '$[notif_count] message'),
Comments
Post a Comment