Developers
AvantGo Channel Developer Guide

TOC PREV NEXT INDEX


Syncing just one channel

You are probably a little tired of waiting for all of your AvantGo channels to sync up every time you want to update the channel you are testing. One solution is to remove all of your channels except the test channel, but if the mobile device you are testing with also happens to be the mobile device you use personally, it is not the best solution. After all, it would be nice to keep your personal AvantGo channels without having to remove and re-install them constantly. Luckily, there is another solution:

  1. Get yourself a second account.
  2. Go to the URL below and set up an account that is separate from your personal AvantGo account

    https://my.avantgo.com/home/

    Note: You can only have a maximum of two accounts at once on your mobile device.

  1. Keep one of your accounts (if yout name is Todd, you might call it "toddpersonal") as your personal account.
  2. Keep all the channels you normally use in your personal account.

  3. Make the second one ("todddev" if your name is Todd) into your development account.
  4. Add your test channel to (and remove anything else in) the development account.

    The next time you sync your mobile device, it will add the second account on your device. Go to the menu and select Go|Choose Server to jump between accounts.

    Note: If you happen to still be using the 3.2 or earlier version of the AvantGo Client, there will be a little bee icon on the top of the screen that you can click on to switch between accounts.

Figure 3-4 Available Servers screen

  1. When you are ready to start testing your channel, go to the menu and select Options|Sever Preferences.
  2. This will take you to an area that allows you to configure settings for each of your servers. Select the server that contains your personal account.

    Tip: Both servers will probably be named "AvantGo.com" by default, so look for the one that has the User Name equal to your personal account's name.

Figure 3-5 AvantGo.com Server Preferences screen

  1. Uncheck the Enabled checkbox.
  2. This tells the AvantGo sync server not to sync any of the channels on this account.

  3. Do not touch the Refresh All Content checkbox.
  4. This is usually handled automatically by the AvantGo sync server.

  5. Double-check and make sure the server with your development account is enabled.
  6. Click Done to save your settings.
  7. Sync up your mobile device.
  8. If everything is set up correctly, you will only sync the account that contains your development channel. The syncing process should be a whole lot speedier than before.

    Even though the server with your personal account is disabled, you will still be able to view your personal channels — just go to the menu and select Go|Choose Server to switch between accounts.

    Note: Remember that while your personal account is disabled, the channels on that account will not update throughout the day as you sync.

  1. When you want to start syncing your personal channels again, re-enable your personal account.
  2. Go into the Server Preferences screen, and re-check the Enabled checkbox for your personal server. Sync your mobile device one last time to update your personal channels, and you are done!



TOC PREV NEXT INDEX