Well, I kept digging and found the answer: it was not a "collapse_key", I had to use the "tag" in the notification instead.
So, using this JSON, only one notification is displayed:
{ "notification": { "title": "MyAPP", "body": "Open MyAPP to access your data", "click_action" : "OPEN_MAINACTIVITY", "icon": "ic_launcher_red", "color": "#ff0000" "tag": "unique_tag" }, "data": { "extra1":"sample1", "extra2":"sample2" }, "registration_ids":[ "--my_id--" ] }
Hope this helps others!
And if someone wants to explain further "collapse_key", I would be glad, it is clear that I misunderstood it.
source share