RadTrialApplicationReminder

Simon

I've Implemented the RadTrialApplicationReminder control in my app however on Clicking "OK" in the messagebox does not launch the marketplace task for the app.
I tried hooking up to the "ReminderClosed" event but this is never fired.
Any ideas?
I've implemented it exactly as was detailed in the documentation link below
http://www.telerik.com/help/windows-phone/trialreminders-trialapplicationreminder.html
Using the latest Q2 2012 release.

Lancelot

I have reproduced this issue and confirmed is is present on a clean templated install. You can submit the issue directly to the telerik Public Issue Tracker (P.I.T.) system. It is a direct line to the engineering team. This link will bring you to the chart view, just drop down the product box and select Windows Phone.

Select the left arrow next to Activity Chart and then slect the New Suggestion box. You can add any issue or feature request to the list and they get it directly, you can also vote on items.

In the meantime I am going to create a workaround and I'll post it here shortly.

Lancelot

It seems you are trying to catch the error while inside the app, that won't happen because the Task method is actually working properly.

When a MarketplaceDetailTask is performed it sends a search query using your app's product ID to the MP. One thing to really take notice of is that your app (if it hasn't been published yet) doesn't have a product Id yet. The one that Visual Studio assigns is local. Have you even noticed that while working on your next version of an app you can see both in your app list? The reason you don't overwrite the published one is because it has a different product ID.

AppHub removes the metadata when you submit it. First it checks for Capabilities the app uses and then strips out the rest, next it replaces the product ID with a new AppHub product Id. Open the WMAppManifest.xml file in the app. You'll see this...

The product ID is different and will not direct your app to the proper marketplace location (even if it already published because the IDs are different).

So now back to your original attempt at catching the error, what is it your trying to catch? When the method navigates to the MP, you should see an error thats starts with an 8. This tells you the Id was not a valid ID. You can however override the ID that gets sent with the query. In the code below, you can see that you explicitly set the product ID. If your app is already published, insert the real product ID.

MarketplaceDetailTask task = new MarketplaceDetailTask();

task.ContentType = MarketplaceContentType.Applications;

task.ContentIdentifier = "AppHub product ID goes in here";

task.Show();

To find the app's real product ID, go to your app in AppHub and switch over to the description view. Scroll down past the description and you'll see the product Id in the left column.

As long as you have this ID set properly, the method will not fail and you wont need a Catch clause (for good coding practices you could just keep the messagebox asking the user to try again that you couldn't connect to the marketplace, but the MP already has that built in).

Good Luck,
Lancelot

Simon

Bascially, If I add the RadTrialApplicationReminder to my app as documented, when testing using the "SimulateTrialForTests" option, clicking on the "OK" button does absolutely nothing, no dialog or confirmation or anything.

So first question is this the expected behaviour as it would be nice for it to launch the marketplace detail task (for the app) even if it is going to error. Just testing my app in the beta marketplace now to see if it will behave any different.

Clicking on "No" works as expected I guess, as the documentation shows you have to handle failed trials manually by testing the TrialApplicatonReminder for "Clicking on "No" works as expected I guess, as the documentation shows you have to handle failed trials manually by testing the TrialApplicatonReminder for "IsTrialExpired" and disable accordingly (still a shame their is no Exit on Trial fail option in WP7 :D)

Valentin.Stoychev

Just to update everyone on the forum that this has been fixed and if you experience the same problem - download the latest internal version from your account. Please let us know if you still have any issues.

Kind regards,
Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.