c# - How to Properly Implement a Trial Experience in Windows Phone -
I installed the app in the App Launch and App Activation as LicenseInformation.IsTrial
for your app My main question guided here is to return CheckLicense
to _isTrial = _licenseInfo.IsTrial ()
in release mode, if a user is not an active connection (say That they do not have cellular service where they are currently), then will the app crash? My main concern is that every time the app is activated or launched, so in order to be careful to stop the action from crashing, do I need to store the current test status in separate storage? The documentation was not clear on this and I have not got anything in this situation and stating what to do.
App.xaml.cs
Private Static LicenseInformation _licenseInfo = New LicensingEconomy (); Private static bool _isTrial = true; Public bool istrial {receive {return_isTrial; }} /// & lt; Summary & gt; /// View the current license information for this application /// & lt; / Summary & gt; Private zero checkLicense () {// Debugging, we want to simulate a test mode experience The following conditional allows us to set _isTrial // property to turn the test mode on or off. Except string message #if = "This sample shows the implementation of a test mode in an application." Press "OK" to emulate the test mode. Press 'Cancel' to run the application in normal mode. "; If (Show message box (Message, "Debug Trial", Message Box Button. OKCanal) == Message Box Result. OK) {_isTrial = true; } And {_isTrial = false; } #alse_ISTial = _licenseInfo.IsTrial (); #endif} Private Zero Application_Living (Object Sender, LaunchingEventArgs e) {CheckLicense (); } Private Zero application_Activated (Object Sender, ActivatedEventArgs e) {CheckLicense (); }
No, the app does not crash if you do not have an internet connection . The reason for this is that licenses are embedded in addition to the app, so it can also be accessible in offline mode. One more thing to prove this is that when you buy a full version of an app that provides a test option, then the app will know that it runs in 'full' mode even when there is no internet connection.
The only thing so you can buy an app in offline mode. Note that your app will not crash, you will only get a store error
Comments
Post a Comment