Hi all, i need to give the update notification like clash of clans. They give the notification for game updates like that i want. Any ideas? am using android platform.
In Clash of Clans (just like any other “always connected” game) the update notifications are triggered when the client connects to the game server. Then based on whatever rules the developers decide they want, they can have the client app show that notification: if client notices the server version is newer than client version, if the server sends a specific message telling the client to show it…
The client itself can’t know of any updates. You need to have a url/server from which you can make the client check the newest version from, and where you can update the required version number when you make a new release.
If you have a URL where you can maintain a text file with the newest version number, you could make your app just download that file and parse the version number from it and then show a notification if needed.
Just remember that you should update the version file only after the new client version is actually available on Google Play. It can take hours after uploading an APK for it to become available.