-
Notifications
You must be signed in to change notification settings - Fork 3
BroadcastService
TexasGamer edited this page Mar 21, 2013
·
2 revisions
NavalBattle has a BroadcastService to detect new updates and announcements. The BroadcastService is run on launch and does not require authentication with RoketGamer. BroadcastService assets are stored in the NavalBattle repository.
NavalBattle checks for updates and announcements by downloading a simple xml file (found here).
<?xml version="1.0" encoding="UTF-8"?>
<navalbattle>
<string name="version_code">5</string>
<string name="version_readable">0.5</string>
<string name="update_text">Update text</string>
<string name="update_url">http://github.com/JPII/NavalBattle</string>
<string name="announcement_code">0</string>
<string name="announcement_title">This is an announcement</string>
<string name="announcement_text">Announcement text</string>
<string name="announcement_url">http://github.com/JPII/NavalBattle</string>
</navalbattle>
- version_code - internal code to track version differences (set in Constants class)
- version_readable - version number to display to the user (major.minor.build)
- update_text - version changelog and other information (keep it short)
- update_url - URL that the user should visit to view more information (should not point to a file)
- announcement_code - internal code to track announcements (stored in local settings file)
- announcement_title - title of announcement
- announcement_text - announcement text (keep it short)
- announcement_url - URL that the user should visit to view more information
To create a sticky announcement, set the announcement_code to -1. This announcement will always be displayed when the game is launched.