Google Play In-App Review using Android Studio - Section.io
文章推薦指數: 80 %
Google announced an in-app review API that prompts users to submit Play store ratings and reviews without leaving the application and ...
Platform
gps_fixedSectionEdgePlatform
KubernetesEdgeInterface(KEI)
AdaptiveEdgeEngine(AEE)
GlobalEdgeNetwork
view_moduleCorePlatformFeatures
API
Security
Observability
select_allAdd-OnEdgeServices
PlatformExtensions
RecommendedPartners
Docs
Resources
Blog
EdgeContentLibrary
SolutionBriefs
EngineeringEducation
AboutSectionWE'REHIRING
Pricing
Platform
gps_fixedSectionEdgePlatform
KubernetesEdgeInterface(KEI)
AdaptiveEdgeEngine(AEE)
GlobalEdgeNetwork
view_moduleCorePlatformFeatures
API
Security
Observability
select_allAdd-OnEdgeServices
PlatformExtensions
RecommendedPartners
Docs
Resources
Blog
ContentLibrary
SolutionBriefs
EngineeringEducation
AboutSectionWE'REHIRING
Pricing
EngEdAuthorBio
JosephChege
JosephChegeisanundergraduatestudenttakingaBachelorinBusinessInformationTechnology,a4th-yearstudentatDedanKimathiUniversityofTechnology.JosephisfluentinAndroidMobileApplicationDevelopmentandhasalotofpassionforback-enddevelopment.
Viewauthor'sfullprofile
EngEdCommunity
Section’sEngineeringEducation(EngEd)ProgramfostersacommunityofuniversitystudentsinComputerSciencerelatedfieldsofstudytoresearchandsharetopicsthatarerelevanttoengineersinthemoderntechnologylandscape.YoucanfindmoreinformationandprogramguidelinesintheGitHubrepository.Ifyou'recurrentlyenrolledinaComputerSciencerelatedfieldofstudyandareinterestedinparticipatingintheprogram,pleasecompletethisform
.
GooglePlayIn-AppReviewusingAndroidStudio
December14,2020
Inthisguide,wewilllearnhowtoimplementtheratethisappfunctionalitywithinyourAndroidapplicationusingGooglecorein-appreviewAPI.
Whenauserisinteractingwithyourapplication,youalwayswanttogetfeedback.Feedbackwillgiveyouinsightintowhatyourusersthinkaboutyourapplication.
Intheolddays,auserwouldhavetoopentheGooglePlaystoretowriteareview.Insomefashion,youwoulduseafallbackreviewdialogwithsome“calltoaction”buttonstonudgetheusertoreviewyourapplication.Iftheuseragrees,thebuttonredirectstothePlaystoresothattheusercanwriteareviewaboutyourapplication.
Thisapproachdoesnotpromoteausergoodexperienceandcanpotentiallyruinyourapplication’sreputationamongusers.Tomakemattersworse,thismethoddoesn’testablishcommunicationbetweenthePlaystoreandyourapplication;itwillkeeppoppingupevenafterauserleavesareview.
Thistypeofcalltoactionwillforceyourusertoleaveyourapplication.Youdon’twantsuchascenario,asthere’sachancethatausermaynotreopenyourapplicationonceredirectedtotheplaystore.
Googleannouncedanin-appreviewAPIthatpromptsuserstosubmitPlaystoreratingsandreviewswithoutleavingtheapplicationandwithoutopeningthePlaystoreeither.Users’reviews/ratingswilleventuallybedisplayedintheGooglePlaystore.
Thisencouragesuserstogivefeedbackonyourapplication.
Imagesource
Thisishowthein-appreviewAPIlookscomparedtotheoldfallbackdialog.
Typically,thisAPIconceptisabetterwayofaskingusersforareviewthanthefallbackratedialog.
Prerequisites
ThisguideassumesyouhavepriorknowledgeofAndroidapplicationdevelopmentusingAndroidStudio.
Tocarryouttestingyouwillneed:
AGooglePlayConsoleaccount.
AnapplicationalreadypublishedintheGooglePlaystore.
Whyyoushouldaskyourusersforreviews
Reviewsplayamarketingroleinyourapplication.Theyareacrucialpartofsecuringmoredownloadsbecausetheycanconvinceanewuserwhethertheyshoulddownloadtheapplication.There’sagoodchanceanewuserwillcheckreviewsandratingstodecidewhichapplicationtotry.Thereviewssharetheexperiencesofprevioususers.
Reviewsalsoformalineofcommunicationbetweenyouandyourusers,astheytellyouwhattoimproveinyourapplication.Potentially,ausercouldexperienceabugwhileinteractingwithyourapplication.Feedbackletsyouknowthatsomethingmightnotbeworkingwell,givingyouanudgetofixsaidbug.
ImprovementonyourPlaystorerankingcanmakeyourapplicationmorediscoverableviaorganicsearches.Apartfromkeywordsthatyouaddsuchastheapplicationtitleanddescription,GooglePlaystoreindexesalmosteverytextinyourstorelisting.
Reviewsarepartofthistextbecausetheyappearinyourstorelisting.Whenindexed,yourapplicationbecomesmorediscoverabletotherelevantusers.Thistranslatestoagoodranking,whichresultsinmoredownloadsfromtrafficconversion.
Whentoshowin-appreviews
Googlein-appreviewisagreatconcept.However,youshouldbesmartaboutwhentoimplementin-appreviews.
Typically,youdon’twanttoaskausertorateyourapplication,forexample,inthemiddleofagame.Thiswillleadtoabaduserexperience,andthechancesarethatusersmightwritenegativereviews.Youshouldstrategicallyknowwhenisappropriatetoshowareviewdialog.
Forexample,afterauserhasfinishedplayingaparticulargamelevel,thatwouldbeaperfectmomenttodoso.Thiswillensuretheusergivesareviewthataccuratelyreflectstheirexperienceplayingthatgame.
Anothercasewouldbethatyouhave,say,ane-commerceapplication.Inthiscase,itwouldbeinappropriatetotellausertoreviewtheappinthemiddleofmakinganorder.
Youwanttheusertohaveenoughinformationaboutyourapplicationservicesbeforesubmittingareview.Inthiscase,youwouldaskausertowriteareviewwhentheorderhasbeenprocessed,tocapturetherightmoment.
Youdon’twanttoshowthereviewdialogwhenauserisyettointeractwithyourapplicationenoughtogiveadequatefeedback.
WithGoogleCore,theAPIisdesignedtorespectuserprivacy.Theratingsheetdoesnotshowupatanytime.It’snotattachedtoanycalltoactionevent.TolimitAPImisuse,theAPIhasquotalimitsperuser.
However,Googlehasnotprovidedtheexactnumberoftimestheratingdialogwillopenupperuser.AsimilariOSAPIhasitsquotalimitssetthreetimesayearperuser,whichmakessense,asthiswillnotbeannoyingtotheuser.
Checkthedocumentationguidelinesregardingwhenyoushouldrequestthereviewflow.
TheAPIstatesthatyouneedtonotethefollowing:
Howyouaskforreviewsmatters.WhenusingthisAPI,youshouldnotaskpredictiveoropinionatedquestionsbeforeorafterthereviewsheetdialogsshowtheappinyourapplication.Thesequestionsinclude:
Wouldyouratethisapplicationfivestars?
Doyoulikethisapp?
TheAPIalsoadvisesyouonlytoshowdialogonceauserhasenoughexperiencewithyourapplication.It’snotagoodpracticetoaskausertowriteareviewbeforetheappdeliversvaluetothatuser.Chancesare,theuserwillgetannoyedandskipthereview.Andiftheydon’tskipit,theywillgivenegativereviews.
InordertominimizeAPIusageandavoidannoyingusers,itwouldbebestifyoudidnotexcessivelyaskuserstowritereviews.
Implementation
GoogledescribesthisAPIaslight.It’ssimpletointegratewithinyourapplication.Tobegin,identifyanactivitywhereyouwanttoimplementthereviewflow.Onceimplemented,theAPIwillhandlethereviewflowforyou.
Requirements
AnAndroidphonerunningAndroid5.0(API21)orhigher.ThedeviceshouldhaveGooglePlayinstalledandconnectedwithaGmailaccount.
GooglePlayCoreLibrary,version1.8.0orhigher.
Integration
Step1:Addingdependency
AddGoogleCoreLibrarytoyourbuild.gradlefile.
implementation'com.google.android.play:core:1.9.0'
Synctodownloadthelibrarytohaveaccesstothenecessaryclassestoinitiatereviewflow.
Alwaysensurethatyouareusingthelatestlibraryversion.Checkherefornewlyaddedversions.
Step2:Creatinganinstanceofa‘ReviewManager’
TheReviewManagerprovidestherequiredfunctionsthattriggerthereviewflow.
Theyinclude:
requestReviewFlow()—fetchesapplicationinformationfromthePlaystore.
launchReviewFlow()—initiatesthereviewflow.
DeclareReviewManagerrightaboveonCreate().
TocreateaninstanceofReviewManager:
DeclareReviewManagerrightaboveonCreate().
UseReviewManagerFactorycallingthecreatefunction,andpassyourapplicationcontexttoit.
reviewManager=ReviewManagerFactory.create(getApplicationContext());
Step3:Requestingreviewinfo
requestReviewFlow()communicateswiththeGooglePlaystoreremotelytogettheinformationthatreferencesyourapplication.
DeclareReviewInfo.
ReviewInforeviewInfo;
ReviewInfoholdsthisinformation,thatwillbeusedtotriggerthereviewflowprocesstotheenduser.
Task
延伸文章資訊
- 1How to Add Android In-App Review API to Improve Ratings
- 2View and analyze your app's ratings and reviews - Google Help
Users can rate your app on Google Play with a star rating and review. ... For tips on analyzing y...
- 3Google Play In-App Review API | Android Developers
The Google Play In-App Review API lets you prompt users to submit Play Store ratings and reviews ...
- 4Test in-app reviews | Android Developers
- 5How to Integrate In-App Review API into Android App?
In-App Review API is a part of Play Core API. In order to use In-App Review API in our app, we ne...