A good way to handle incoming notifications in Android
Deividi Cavarzan

4. Guarantee that your application will always process the notifications from CGM correctly.
5. Don’t need to worry if the app is running or not when a new notification from GCM arrives.

will this also guarantee works on xiaomi devices?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.