문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top