Clairity on TrailReminder

2 posts, 0 answers
  1. Tony
    Tony avatar
    3 posts
    Member since:
    Mar 2013

    Posted 30 Jan 2014 Link to this post

    Hi Guys,

    I have:
    public RadTrialApplicationReminder trialReminder;

    defined in my App.xaml and it is initialized like this:
    ​trialReminder = new RadTrialApplicationReminder();

    //Sets the lenght of the trial period.
    trialReminder.AllowedTrialUsageCount = 30;

    //Sets how often the trial reminder is displayed.
    trialReminder.OccurrenceUsageCount = 2;

    //The reminder is shown only if the application is in trial mode. When this property is set to true the application will simulate that it is in trial mode.
    trialReminder.SimulateTrialForTests = true;

    What I want to do is if the user does not go to the MarketPlace and purchace the app, I don't want it to continue.  The way it is setup now, when the final message shows up that the trial period is expired and they click no, it still opens the app.  I don't want them to continue using the app.  How do I do that.

    Also, if they did go to the market place and purchase the app, how can I then disable the trialReminder?


  2. Todor
    Todor avatar
    772 posts

    Posted 03 Feb 2014 Link to this post

    Hello Tony,

    Thank you for your question.

    As this help article states, "you should not set this property to true when you release your application", regarding the SimulateTrialForTests property. It should be used only for testing purposes. For the release version of your application whether the application is in trial mode will be handled by the information that we get from the marketplace, so you won't have to worry about the display of a trial message - it will not be displayed when the application is purchased. What you need to do, is decide how to restrict the users from access to the application when the trial is over. Have a look at this blog post. It provides a nice example for a button, that you can enable only in case the trial is not expired:
    PaidButton.IsEnabled = !App.TrialReminder.IsTrialExpired;

    I hope this information helps.

    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
  3. DevCraft banner
Back to Top