javiersantos / WhatsAppBetaUpdater

An app to update WhatsApp to the latest beta version available on Android. Based on Material Design.
GNU General Public License v3.0
192 stars 57 forks source link

Push-based implementation #12

Closed marcelgerber closed 8 years ago

marcelgerber commented 8 years ago

This is more of a suggestion than a feature request.

In my opinion, polling for updates on a central server (every 5 minutes or so) and then sending push notifications out to clients makes more sense than having all clients poll the server themselves.

The server-side of this is quite easy to implement. Just setup a small server, make it poll the website (you can probably reuse the existing logic), and if the version has changed, send push notifications through Google Cloud Messaging. The client-side is probably harder to do (I've never done app programing myself so I can't really judge), but I presume it's not that hard either.

ghost commented 8 years ago

Please don't do this There a users Luke me they remove all Google apps from there Android phone So when you will usw GCM we are out. I Luke how it works

javiersantos commented 8 years ago

In my opinion, this may be the most optimal way to implement notifications for a proprietary software. But in this case, switching to push notifications through Google Cloud Messaging would complicate any derivative work (it wouldn't only depend by the app itself).