Question

I found this handy piece of code to determine if my app is in trial mode, with the added benefit of being able to test trial behavior in the emulator...

public bool IsTrial
{
    get
    {
        #if DEBUG
        return true;
        #endif

        return new LicenseInformation().IsTrial();
    }
} 

And that's great. I'll be able to adjust behavior accordingly.

But beyond that, I was hoping for some built-in API where I can actually get a dialog box with a button to buy the app. Ideally, the button should take the user directly to the app in the marketplace.

Was it helpful?

Solution

The presentation of the upsell dialog is up to the app developer for the simple reason that it has to blend seamlessly into the app design and user experience.

So, present the user with whatever UI elements you want, and once she clicks on it, sending her to the marketplace using the MarketplaceDetailTask.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top