This is a migrated thread and some comments may be shown as answers.

Clairity on TrailReminder

1 Answer 24 Views
TrialFeatureReminder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 2
Tony asked on 30 Jan 2014, 08:03 PM
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?

Thanks,

Tony

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 03 Feb 2014, 09:48 AM
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.

Regards,
Todor
Telerik
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.
Tags
TrialFeatureReminder
Asked by
Tony
Top achievements
Rank 2
Answers by
Todor
Telerik team
Share this question
or