Code to use RateApplicationReminder control

8 posts, 1 answers
  1. Nilangini
    Nilangini avatar
    6 posts
    Member since:
    Feb 2012

    Posted 04 Apr 2012 Link to this post

    I read the following article.
    http://blogs.telerik.com/blogs/posts/12-02-01/introducing-rate-application-reminder-for-windows-phone.aspx

    But I am not getting where (in which class, which method) should I write the following code in my application.

    RadRateApplicationReminder rateReminder =
    new RadRateApplicationReminder();
    rateReminder.RecurrencePerUsageCount = 50;
    rateReminder.Notify

    Can you please help?
    Thanks,
    Nilangini
  2. Answer
    Todor
    Admin
    Todor avatar
    778 posts

    Posted 05 Apr 2012 Link to this post

    Hi Nilangini,

    Thank you for your question.

    The RateApplicationReminder's purpose is to remind the user to rate the app in the marketplace. This happens by opening a message box with a nice message. To display the message, you need to call RadRateApplicationReminder's Notify method. You can place it where you decide it is most appropriate to notify the user, for example in the MainPage's constructor. You can also choose where to place the other two lines:
    RadRateApplicationReminder rateReminder = new RadRateApplicationReminder();
    rateReminder.RecurrencePerUsageCount = 50;

    Just make sure that they are before calling the Notify method. You can place them in the MainPage's constructor as well or you can also define the RateApplicationReminder in the App.xaml.cs file of your application and call it's Notify method later from any page through:
    (Application.Current as App).rateReminder.Notify();

    Note that before using RateApplicationReminder you also need to initialize the ApplicationUsageHelper with:
    ApplicationUsageHelper.Init("version");
    where "version" is the version of your application.

    You can read more about the RateApplicationReminder and our other controls from the online documentation.

    I hope this information will help you.

    Kind regards,
    Todor
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Nilangini
    Nilangini avatar
    6 posts
    Member since:
    Feb 2012

    Posted 06 Apr 2012 Link to this post

    Thanks. I got it working.

    - Nilangini
  5. Tiziano
    Tiziano avatar
    17 posts
    Member since:
    Feb 2012

    Posted 07 Apr 2012 Link to this post

    "ApplicationUsageHelper.Init("version");"

    I can use it in Application_Launching event and in Application_Activated event?
    Or only in Application_Launching event?
  6. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 09 Apr 2012 Link to this post

    Hello Tiziano,

    The Launching and Activating events are different and are not fired each time depending on the scenario. If the user launches your application for the first time, then the Launching event will be fired. If the user suspends the application by tapping on the Start button and after doing some other work returns to your app the Activating event will be fired. So, you will need to use both events depending on the scenario.

    I hope this helps.

    Regards,
    Deyan
    the Telerik team

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

  7. MIT-INNO
    MIT-INNO avatar
    2 posts
    Member since:
    Mar 2013

    Posted 25 Mar 2013 Link to this post

    I know, this is an old post, but I have two questions corresponding this RateReminder. 
    I implemented this in my WP7-project (which is also distributed for WP8-Phones), and it works great. 

    • The MessageBoxButtons are shown in English (even if the whole app is German) and I set the culture to de-CH (Switzerland). How can I change the Buttons-Text (from "yes"/"no" to "ja"/"nein")?
    • Now, if the user rates the app and didn't chose "skipFurtherReminders", the reminder will be shown again at a later point (i.e. after 50 application startups). Is it somehow possible to never show the reminder again if the user pressed yes (and most likely rated the app)?

    Thank you very much!
  8. Todor
    Admin
    Todor avatar
    778 posts

    Posted 25 Mar 2013 Link to this post

    Hi Peter,

    Thank you for writing.

    You can use various methods for localizing RadControls and they are described in our online documentation here. More specifically, here are the localization strings for RadMessageBox, which is used in RadRateApplicationReminder.

    As to your second question, we have recently added a new property called SkipFurtherRemindersOnYesPressed. When it is set to true, the reminders will be skipped after the first time the user chooses yes (and hopefully rates your application). You might need to download our latest internal build from your account if you haven't done so during the past 2 weeks in order to use this property.

    I hope this information helps. If you need further assistance, don't hesitate to write us back.

    Greetings,
    Todor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  9. MIT-INNO
    MIT-INNO avatar
    2 posts
    Member since:
    Mar 2013

    Posted 02 Apr 2013 Link to this post

    hi Todor

    Thank you for your help. It worked, RadControls is amazing!!

    Cheers,
    Peter
Back to Top
DevCraft banner