- General Information
- Features
- Installation
- Criteria and Events
- Basic Usage
- Configuration
- Example Project
- Special Thanks
- Contact
UWP library to easily add an App Rater functionality to your application. Adding a rater to your app is proven to be an excellent way to gain high marks in UWP store. And even if the user is not satisfied, he may send some feedback so you can immidiatly check the issue and fix it.
- Built for Visual Studio 2015
- Min UWP SDK version: Windows 10 (10.0; Build 10240)
First some general info on how this library works.
This library will first present the user with an Enjoyment Dialog:
The user can select No and he will be presented with the Send Feedback Dialog:
He may select Yes and then be presented with the Rate Us Dialog:
In the Send Feedback Dialog the user can select Contact us to send a feedback using an email form for instance:
Or he may simply select No Thanks and the dialog will stop showing.
If the user decided to rate your application, he can click Rate us and he will go to your applications market page.
If he chooses Later, the Rate Dialog will appear after a given amount of time.
- Target only satisfied users to achieve a higher App Store rating
- Collect valuable feedback and complaints from dissatisfied users
- Easy to define usage parameters to target only experienced users
- Supports multiple scenarios of significant events to target users who have completed a flow
For now we only support source code consumption, will add the nuget-package support in the future. Here is the steps to consume this library.
- Download the project, put the project AppRater into you project folder.
- Add the AppRater project into your solution.
- Right click the Reference, select add reference.
- At the Add Reference page, choose Project page and tick the AppRater.
This library is checking two different types of rules before it shows the first dialog.
The first type is the criteria type. Criteria are threshold rules that must be completed before any other type of rule (events) are checked. In this library there are two of them.
- Minimum amount of timespan after first time launching the app that must pass before showing the first dialog
- The app must be online
Only after these two threshold rules are met, there will be a check for the other user provided rules. These user provided rules are called events. They can be anything you choose. A click on a specific button, changing text, opening a file, swiping a drawer. A user will provide a list of these rules and after the treshold rules are met, the library will check them. Once they are also met, the first dialog will appear.
Two simple actions to get things going:
Include the resources in App.xaml
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///AppRater/Theme/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Init the library. Preferably in your App()
class so you'll have access to the library from any activity.
You can use the default settings and do some initalization:
void InitAppRater()
{
AppRater.Criteria.InitFirstTimeLaunchTimestr();
AppRater.RatingUs.SetRatingUrl("your_product_id_on_uwp_store");
AppRater.ContactUs.SetFeedbackEmail("[email protected]");
AppRater.ContactUs.SetEmailTitle("your mail title");
AppRater.ContactUs.SetEmailNote("your mail note");
}
In the initalization stage, you need set
- your product id on uwp store
- the feedback mail
- the feedback mail title
- the feedback mail note
That's it. Now you can simply call AppRater.Criteria.eventOccurred("EventName");
to report an event has occurred and initiate a rules check. If the rules are satisfied, the Enjoyment Dialog will appear.
This is the most basic usuage. There are many configurable options. Let's explore some.
In the initialization stage, you can also set the your own event criteria for the AppRater pop up.
AppRater.Criteria.SetEventCriteria("event1", 10);
AppRater.Criteria.SetEventCriteria("event2", 10);
AppRater.Criteria.SetEventCriteria("event3", 10);
string[,] groups = new string[,] { { "event2", "event3" } };
AppRater.Criteria.GroupEventCriteria (groups);
The event criteria means the minimum times this event should happen before we pop up the AppRater.
Your can also group several event criteria into one group, inside this groups they will be connected by or
, which means if one of the events have the enough occur times to satisfy the criteria, the whole group will be satisfied.
You can some add some additional action to the workflow. For example you may want to add the analystics on the enjoyment dialog pop up.
void WhenPopUpTheEnjoyment()
{
Debug.WriteLine("Hello, enjoyment dialog is here!");
//Do some analytics
}
And then in the code, you just hook it to the enjoyment popup by
AppRater.Workflow.addOnPopUpEnjoymentDialog = new AdditionalAction(WhenPopUpTheEnjoyment);
Similarly, you can also provide the additional action on the other dialogs and button clicks.
- Download project to desktop
- Open the solution file ‘ADAppRater.sln’
- The demo app demonstrates 2 ways to use the component:
- Default UI flow without scenarios
- Default UI flow, with custom events.
- Lian Hau Lee
- David Fei
- Hemant Jaggi
- Amir Shavit
- The GOVERNANCE model
- The CONTRIBUTING