Adding In-App Upgrade

Access denied. You must login to view this page.

We have received lots of request from developers that they want the ability to pop up the AppUp center with a particular app already displayed. This would greatly assist with their marketing strategy and encourage customers to purchase more of their apps.

One of the new features of the SDK and the AppUp Center is the ability to allow in-app upgrades.

Below I explain how to utilize this new feature. This new in-app upgrade will be available in Java, .Net and C++. Essentially, you will need to add a few lines of code to invoke the API call.

Once the AppUp Center pops up, the customer will be able to see your desired app and they can purchase the app.

Required Prep Work

  1. Join the Atom Developer Program: http://appdeveloper.intel.com/en-us/
  2. Install the lasted SDK into your machine.
  3. Integrate the SDK into your application.

Tools Needed:

  1. Download the latest version of the SDK(Java, .Net, C++): http://appdeveloper.intel.com/en-us/sdk
  2. Download the latest version of the AppUp center: http://www.appup.com/applications/index
  3. A licensed copy of Visual Studio 2008 and/or a java development environment. I have used C++ in this tutorial, but the same call: Upgrade() is used in .Net, Java and C++.

Step 2

In my application, I have added code to respond to the Buy Full Version button. As you can see from the diagram, there are three key lines.

  1. The first highlighted line is the GUID to the app that I want to pop up in the AppUp Center.
  2. The second highlighted code is where I pass in the GUID and calls the AppUp Center to display.



    1. I have already created an instance of Application called app earlier in my code. This allows me to add the line Upgrade() API call, the parameter is the GUID of the app you want to show in the store.
    2. The Upgrade() call is placed inside a try-catch in the situation the call fails.

  3. If the Upgrade() call is sucessful, the AppUp Center will display and show the app. As I mentioned ealier, the calculator it the calling app and the GUID below is the app that I want to display in the store when it pops up.
  4. In the third highlighted code, if the Upgrade() fails, add an error message to inform the user. It would be poor user experience to simply have the button do nothing and not respond in the event of a failure. We have added a new error return value called:ADP_INCOMPATIBLE_VERSION. If the user is currently using an old version of the AppUp Center, they need to get the latest version which supports in-app upgrade. I highly recommend popping up an error message with the blew text.

If the user calls an app that doesn't exist in the store yet still has the most updated version of the AppUp Center, the store will actually through the error. Your code will not have to trap that.

Step 3

If you are running the debugger at this time, you will see the message below message box informing the developer what is going to happen. The release version of the app WILL NOT display this box, this is just for debugging. I’m also using a debug GUID for testing purposes.

Step 4

If the GUIDS are correct, your netbook will automatically pop-up the AppUp Center with the desired app already showing.

Additional Developer Notes

  1. If your app is free/paid, the Upgrade feature will still pop up the correct app if the correct GUID is used. The feature doesn't care if the app to be shown is paid or free.
  2. You can make multiple calls to the Upgrade call in your app. So your app can be linked to several other apps.
  3. If two apps are submitted where App A has an upgrade to App B, both apps must be approved for upgrading to work correctly. If the App B is still in process, App A will not be approved until the second app is done and approved as well. Essentially, an in-app upgrade call can only work if the referrenced app is published.

3
Average: 3 (1 vote)