ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 208 forks source link

Update example to find "bad" tokens #333

Closed sidhantpanda closed 4 years ago

sidhantpanda commented 5 years ago

Failed tokens can be found with a single filter operation over the registrationTokens using the 1:1 mapping with response data. Earlier example used map + filter to achieve the same result.

eladnava commented 5 years ago

Hi @sidhantpanda, Thanks so much for simplifying the example code.

@hypesystem approve?