Android Developers1.32 млн
Опубликовано 20 сентября 2013, 16:57
Efficient Data Transfers: Eliminating Polling with Google Cloud Messaging
One of the most effective ways you have at your disposal for optimizing the efficiency of your data transfers is eliminating user-driven updates.
That means, doing everything you can to eliminate the refresh button within your app. The most common reason people hit refresh, is because they don't believe your app is displaying up-to-date information -- and if you're using some form of client-side polling, they're probably right. Instead, use Google Cloud Messaging to have your server notify your app when there is data ready to be downloaded -- or even include the new data in the message payload itself.
Further Reading and Sample Code:
developer.android.com/google/g...
(Episode 5 of 7)
By Reto Meier
#devbytes #efficientapps
One of the most effective ways you have at your disposal for optimizing the efficiency of your data transfers is eliminating user-driven updates.
That means, doing everything you can to eliminate the refresh button within your app. The most common reason people hit refresh, is because they don't believe your app is displaying up-to-date information -- and if you're using some form of client-side polling, they're probably right. Instead, use Google Cloud Messaging to have your server notify your app when there is data ready to be downloaded -- or even include the new data in the message payload itself.
Further Reading and Sample Code:
developer.android.com/google/g...
(Episode 5 of 7)
By Reto Meier
#devbytes #efficientapps
Свежие видео