android - Should i use push notifications for all new instant messages -


i using custom php webserver im program send push messages, can send push notifications mobile phone not sure how use properly.

by mean should send messages push notifications, possible that? there limitations push notification's size? or should start timer check new messages after first notification , finish timer when activity closed? proper way instant messages server?

for android limitation on push notification size 4k. if messages smaller that, can use push notifications sending content.

however, delivery of push notifications not guaranteed, it's better practice use if means server notify app new data available, when it's not running in foreground. app calls server retrieve data.

when app in foreground, can poll server periodically new data.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -