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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -