I am trying to get the TrialApplicationReminder working, but it is defying logic. Here's what I want from it:
- For two weeks, no reminders.
- After that, one reminder every two weeks
- Allow users to not be reminded again
For testing purposes, I modified the code in Application.xaml.cs in the WP8 Examples application. I figured that since in the SimulateTrialExpiration event you just set the AllowedTrailPeriod to zero and call reminder.Notify, I should be able to just set my AllowedTrialPeriod to what I want (15 seconds in this case, for testing), and call reminder.Notify. So I added two lines to your code. Here's what I have:
TimeSpan(0, 0, 15);
reminder.OccurrenceUsageCount = 1;
InstallationDate = ApplicationUsageHelper.InitialInstallationDate;
ApplicationRunsTotal = ApplicationUsageHelper.ApplicationRunsCountTotal;
I would expect that when I deploy the app fresh, the first run would give me no notification. After that (since 15 seconds would have passed), I would receive a notification. I don't get anything. I have tried setting other parameters, but I just can't seem to make it work.
Why in the world does setting AllowedTrialPeriod to zero work, but setting it to 15 seconds and letting that much time elapse doesn't? I've also tried a couple minutes for the TimeSpan as well, but the results were the same.
Thanks for any help.