Thanks for breaking down the problems, Satyajit Malugu.
Adrian Tineo

Adrian Tineo thanks for you interest, I may write a follow up post with more detail but here is a sample gist — this method started out as similar for both iOS and Android but later on, after few failures, it was realized that on iOS notification popup comes first and vice versa in Android. Hence the code had to add in a conditional

One clap, two clap, three clap, forty?

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