Reputation: 438
I put in reference this Link
I implemented it it works but am facing troubles: first sometimes I need to restart the android emulator so the push notification could be delivered when the emulator is restarted the push notification work properly. after a while the push notification does not work and it need about 15 min to the push notification to get delivered. if I restart the emulator the push notifications get delivered and so on...
what do you think the problem here?
Upvotes: 4
Views: 2212
Reputation: 77
if you are expecting a notification but there a huge delay in android emulator. You can perform following step to get instant notification.
Turn off the mobile data in Emulator then turn it on again, you will get the notification as soon as you turn it on hope this helps :)
Upvotes: 3
Reputation: 788
Its your wifi router probably, check the description here
https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer
I opened an issue to google here: https://productforums.google.com/forum/#!category-topic/nexus/connecting-to-networks-and-devices/fslYqYrULto
and they agree there is a TCP timeout on some conditions.
Upvotes: 2