Vegas Gateway
Mobile Specific Functionality

The Same As Desktop

Deploying mobile games directly on to the Vegas platform is essentially the same process as deploying a desktop game. The mobile games will obviously have a different set of assets (HTML5 instead of Flash) to be loaded, which will be deployed within their own folder.

Along with new assets there are a couple of other technical considerations.

Redirecting on Bookmark

The first of these considerations the behaviour of the game when a user attempts to load the game after creating a bookmark whilst playing the game.

The way that Vegas loads games is by passing query parameters in a GET request to a game loading script. The necessary parameters are:

  • CurrCode - The currency the game is to be played in.
  • GameCode - The unique code identifying the game to be played
  • AccountID - The token identifying the customer

Because the AccountID is on the URL, when a user bookmarks a running game on their phone it will bookmark the AccountID currently in the URL. This AccountID will become invalid as soon as the user logs out of William Hill.

This means that a supplier will need to peform a check to see if, when the game is loaded, the AccountID is valid. If the AccountID is invalid then the user should be redirected back to the lobby from whence they came.

This can be done in a manner similar to this:

The Menu

Mobile Vegas games contain a menu that is populated by using some JavaScript supplied by William Hill and calling a service that delivers menu XML which the JavaScript understands.

The menu service is available in all environments, the URLs being:

  • Systest -
  • PP1 -
  • PP2 -
  • PP3 -
  • PTE -

    The menu XML should be retrieved in a manner similar to the following:

The SDK

The Vegas SDK comes packaged with teh JavaScript and XML necessary for integrating the menu during development. When deploying the SDK you will need to provide the location of the common folder within your IIS directory structure.

The command used to deploy the SDK with the mobile assets is: