Skip to content

chiragbhatt3/EmojiReaction

Repository files navigation

Harmony_Amplify_Library

Amplify library for Harmony OS source code Amplify library is used to prompt users for feedback at the right times. Based on ruled defined by us library determines the right time to ask for feedback and based on their reaction, users are given choice to leave a quick rating/review on the Huawei App gallery or send a complaint email

first

Source

Inspired from android library https://github.com/stkent/amplify

Features

We can define several rules to determine the right time to prompt for feedback which takes into account the number of days since the app is installed, last asked for feedback, update in the app etc. Library tracks significant events and prompts only when all defined rules allow to do so

In addition to this we can design the layout of the feedback prompt. Users with positive feedback are given choice to leave a quick rating/review on the Huawei App gallery and those with critical feedback are given choice to send a complaint email that will automatically include pertinent app and device information

(Currently the feature to open email client from the app is not there, so for time being they are also given choice to review on App gallery)

first second

If User gives positive feedback image

If we get critical feedback image

Usage

  1. Initialize the shared Amplify instance in the MyApplication class and supply feedback collectors that determine where positive and critical feedback should be directed

image

By default, the HuaweiAppgalleryFeedbackCollector will search their stores for the app whose package name matches the running application. If your app's build variants do not all share a single package name, amplify will fail to load the appropriate App Gallery page in non-release builds. To fix this, pass your release build package name to the FeedbackCollectors during initialization.

image

  1. Add a DefaultLayoutPromptView instance to XML layouts where you may want to prompt the user for their feedback

image

  1. Get the shared Amplify instance in the MainAbilitySlice class and call promptIfReady method and pass the DefaultLayoutPromptView instance: If nothing specified, prompt will come with default settings we can customize the prompt and configure the prompt in the xml or in the code (Code to configure prompt is provided in MainAbilitySlice in Sample App) image

Future Work

  1. Opening email client when user gives critical feedback, currently opening app gallery for both positive and critical feedback

  2. Post Delayed

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published