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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -