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

Crashes on rateReminder.Notify();

5 Answers 28 Views
RateApplicationReminder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 1
Patrick asked on 19 May 2014, 03:40 AM
On WP8, VS2012, I set up the app like shown here: http://www.telerik.com/help/windows-phone/rateapplicationreminder-gettingstarted.html, but an exception occurs on rateReminder.Notify():

"ApplicationRuntimeHelper class should be initialized before using this component."

On WP Silverlight 8.1, VS 2013, set up app the same, however the rate reminder works fine without calling .Notify().  When I add the call to Notify(), and exception occurs. 

Knowing that, I removed the call to Notify in the VS2012 app, but the reminder never shows

5 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 20 May 2014, 06:43 AM
Hi Patrick,

Thank you for writing.

Please confirm that you have followed the whole instructions. That is initialize the ApplicationUsageHelper on Application_Launching and call it's OnApplicationActivated on Application_Activated:

private void Application_Launching(object sender, LaunchingEventArgs e)
{
    ApplicationUsageHelper.Init("2.2");
}
 
private void Application_Activated(object sender, ActivatedEventArgs e)
{
    ApplicationUsageHelper.OnApplicationActivated();
}

If after that you still get an exception, please send us a sample project that we can use to reproduce the exception or let us know of the exact steps we need to perform in order to reproduce it in a blank application.

I hope this information helps.

Regards,
Todor
Telerik
 

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.

 
0
Patrick
Top achievements
Rank 1
answered on 20 May 2014, 12:55 PM
Hello,  as I mentioned before, I called the necessary calls in the documentation.  Please let me know where to send the sample project, as it will not allow me to attach it here.
thanks
0
Patrick
Top achievements
Rank 1
answered on 20 May 2014, 01:00 PM
Edit:  If you call notify() in Application_Launching it works.  Is this where you're supposed to call it?  It doesn't mention it in the documentation.
0
Todor
Telerik team
answered on 21 May 2014, 06:39 AM
Hi Patrick,

The call to Notify() should be where you want the reminder to be shown. There is no specific requirement. You can create a new support ticket in order to be able to attach a project that demonstrates the issue.

Regards,
Todor
Telerik
 

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.

 
0
Patrick
Top achievements
Rank 1
answered on 21 May 2014, 02:25 PM
That won't be necessary, it works now due to calling it in the correct location.  Thank you
Tags
RateApplicationReminder
Asked by
Patrick
Top achievements
Rank 1
Answers by
Todor
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or