Crashes on rateReminder.Notify();

6 posts, 0 answers
  1. Patrick
    Patrick avatar
    20 posts
    Member since:
    Aug 2013

    Posted 18 May 2014 Link to this post

    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
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 20 May 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Patrick
    Patrick avatar
    20 posts
    Member since:
    Aug 2013

    Posted 20 May 2014 Link to this post

    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
  5. Patrick
    Patrick avatar
    20 posts
    Member since:
    Aug 2013

    Posted 20 May 2014 in reply to Patrick Link to this post

    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.
  6. Todor
    Admin
    Todor avatar
    778 posts

    Posted 21 May 2014 Link to this post

    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.

     
  7. Patrick
    Patrick avatar
    20 posts
    Member since:
    Aug 2013

    Posted 21 May 2014 in reply to Todor Link to this post

    That won't be necessary, it works now due to calling it in the correct location.  Thank you
Back to Top
DevCraft banner