none
Windows 10 App License is not same as Win 8 ?

    Question

  • My App is a try before buy app.

    I use some codes to check license when app starts.

    It works in Win8 and Win8.1, but it does not work in Win10. It always jump to 'buy' page in Win10 whatever user bought the app or not.

    I wonder if Windows 10 App License is not same as Win 8 ?

    The license check codes below:

    ---------------------------------------------------

                Dim licenseInformation As LicenseInformation = CurrentApp.LicenseInformation
                If Not licenseInformation.IsActive Then
                    Dim rootFrame As Frame = Window.Current.Content
                    rootFrame.Navigate(GetType(Buy))
                ElseIf licenseInformation.IsTrial Then
                    If (licenseInformation.ExpirationDate - DateTime.Now).Days < 0 Then
                        Dim rootFrame As Frame = Window.Current.Content
                        rootFrame.Navigate(GetType(Buy))
                    End If
                End If

    ---------------------------------------------------

    Thanks.

    Wednesday, June 3, 2015 11:05 PM

Answers