TrialApplicationReminder Not Working

Thread is closed for posting
2 posts, 0 answers
  1. Ivan
    Ivan avatar
    7 posts
    Member since:
    May 2014

    Posted 15 Aug 2014 Link to this post

    Hi. I've added the TrialApplicationReminder in my Windows Phone 8.0 app and have problems. I use the following sample code:
    private static RadTrialApplicationReminder trialReminder;
    public static RadTrialApplicationReminder TrialReminder {
        get {
            if (trialReminder != null) {
                return trialReminder;
            return new RadTrialApplicationReminder() {
                AllowedTrialUsageCount = 5,
                FreeUsageCount = 2,
                OccurrenceUsageCount = 1,
                SimulateTrialInDebugMode = true,
                TrialReminderMessageBoxInfo = new MessageBoxInfoModel() {
                    Buttons = MessageBoxButtons.YesNo,
                    Content = AppResources.PleaseBuyThisApp,
                    Title = AppResources.ApplicationTitle
    Added the ApplicationUsageHelper.Init( "" ); in AppLaunch and ApplicationUsageHelper.OnApplicationActivated();
     in Activated.

    I'm trying to debug (preview) the trial message box, but there are no message boxes. When I try to debug, I see that the trialReminder is always null at the moment of launch and the constructor is calling. What I need to do?
  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 20 Aug 2014 Link to this post

    Hello Ivan,

    Thank you for the question.

    From the provided information I suppose that the trialReminder field is initialized only in the getter of the TrialReminder property. If you use the trialReminder before ever calling the TrialReminder property, it will be null.

    The messages/notifications should be displayed in some application page (MainPage for example), not in the App class. I have attached a sample project for demonstration.

    I hope this helps. Please, let us know if you have further questions.

    Rosy Topchiyska

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top