Push notification collapse_key

I’m building an ionic notifications to receive push notifications using phongap_push_plugin and fcm.
now while device is offline and I sent more than 100 notifications when I make device online I found no notifications , so I want to use collapse_key but I want using it after 100th notification.
how can I do this ?