Can I test Google Play In-App Review in Android Emulator?
文章推薦指數: 80 %
Yes you can test in-app review from your emulator. But must need to have play store installed on your emulator. And must be logged in. Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore CanItestGooglePlayIn-AppReviewinAndroidEmulator? AskQuestion Asked 1year,1monthago Modified 1year,1monthago Viewed 1ktimes 3 I'mlearningGooglePlayIn-AppReview. IrunCodeAinAndroidEmulator,IhopetodisplayGooglein-appreviewUIjustlikeImageA,butIgetonlytheinfo"aa"whichmeansrequestfailed. CanItestGooglePlayIn-AppReviewinAndroidEmulator? CodeA valmanager=ReviewManagerFactory.create(mContext) valrequest=manager.requestReviewFlow() //valmanager=FakeReviewManager(mContext) request.addOnCompleteListener{request-> if(request.isSuccessful){ //WegottheReviewInfoobject valreviewInfo=request.result valflow=manager.launchReviewFlow(mActivity,reviewInfo) flow.addOnCompleteListener{_-> //Theflowhasfinished.TheAPIdoesnotindicatewhethertheuser //reviewedornot,orevenwhetherthereviewdialogwasshown.Thus,no //mattertheresult,wecontinueourappflow. Log.e("my","cc") } Log.e("my","bb") }else{ Log.e("my","aa") //Therewassomeproblem,continueregardlessoftheresult. } } ImageA androidgoogle-play-services Share Follow askedMar4,2021at3:06 HelloCWHelloCW 2501616goldbadges9393silverbadges215215bronzebadges 1 addthefollowinlineinyour'else'code:@ReviewErrorCodevalreviewErrorCode=(task.getException()asTaskException).errorCode..andlogthereviewErrorCodeorthelogthetask.getException – Cliff Mar8,2021at8:31 Addacomment | 1Answer 1 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 2 Yesyoucantestin-appreviewfromyouremulator.Butmustneedtohaveplaystoreinstalledonyouremulator.Andmustbeloggedin. In-appreviewsonlyworkonthefollowingdevices: Androiddevices(phonesandtablets)runningAndroid5.0(APIlevel21)orhigherthathavetheGooglePlayStoreinstalled. ChromeOSdevicesthathavetheGooglePlayStoreinstalled. Andtestusing- valmanager=FakeReviewManager(context) Youcangetmoredetailsonthisurl- Testin-appreview Share Follow answeredMar13,2021at23:55 Al-AminAl-Amin 1,29288silverbadges2424bronzebadges 2 Thanks!andmore,theCodeAwllnotalwaysdisplayratingsUIandGooglewilldecidetodisplayornot,isittrue? – HelloCW Mar19,2021at2:25 2 FakeReviewManagerisintendedforunittestingonlyandnoUIisshown. – BrianDiesel Oct25,2021at17:10 Addacomment | YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedandroidgoogle-play-servicesoraskyourownquestion. TheOverflowBlog What’stheaveragetenureofanengineeratabigtechcompany?(Ep.434) Newdata:DodevelopersthinkWeb3willbuildabetterinternet? FeaturedonMeta HowmighttheStagingGround&thenewAskWizardworkontheStackExchange... StagingGroundWorkflow:Listings,Filters,QualityControl,andNotifications AnA/Btesthasgonelivefora"Trending"sortoptionforanswers QuestionCloseReasonsproject-IntroductionandFeedback Overhaulingourcommunity'sclosurereasonsandguidance Related 1478 Howcanyougetthebuild/versionnumberofyourAndroidapplication? 101 Thisappwon'trununlessyouupdateGooglePlayServices(viaBazaar) 659 HowtoinstallGooglePlayServicesinaGenymotionVM(withnodraganddropsupport)? 79 HowtoinstallGooglePlayappinAndroidStudioemulator? 27 AndroidPlacesAPI:GooglePlayServicesOutofDateonEmulator 1 Googleplayservices&googleplaygamesapponandroidemulator 5 AndroidStudioEmulatorGooglePlayServices 5 AndroidemulatorhasoutdatedGooglePlayServices HotNetworkQuestions CanMindBlankbedetected? HowcanImakeaparametricwinch(orarollofrope) Howdoitakeoffabentsuspensionforkonaebike? Whatdoes"playerslikeyoulovethisgame"meanexactly? HowlongisitinRoman Whatpublishedresourcefirstintroducedtheduergar? Is“I'mworkingtotes”newslang? Whatismeantby"latte-shaming"? IdentificationofalaptopusingaspoofedWiFiMACaddress WhatdoesthisMonopolychancecardmean? Simulacrumandtrample Quantumandclassicalphysicsarereversible,yetquantumgateshavetobereversible,whereasclassicalgatesneednot.Why? HowdoesVGAworkwithresolutionshigherthanthemaximumresolution? IfTasha'sMindWhippreventsaflyingcreaturefrommoving,doesthecreaturefall? Meaningof"gayladies'man"? Checkhowfarpositionsinlisttostraightline WhatisthecorrectexpressionsyntaxtoautofilloutputextentwhilebatchprocessinginQGIS? Movieaboutgoodandbad"angels"withmachinegunsandblackcoatsthatcamedowntoearthtokilleachother? AccordingtotheLDSchurch,howarewejustified? Whatenvironments/pressureswouldincentivise/selecthuntinginpairs? HowtointegrateDevOpspeopleintoaScrumTeam? Findanddeletewithnano HowcanIconstructthismatrix? Whydopilotsmovethepropellerleverfullforwardbeforelanding? morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. default Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings
延伸文章資訊
- 1A Step-by-Step Guide to Easy Android in-App Review Setup.
Testing In-App review. Testing the In-App review is not as straightforward as running the app fro...
- 2How to Add Android In-App Review API to Improve Ratings
ArcTouch's developers explain how to add the Android In-App Review API — and how it improved the ...
- 3Google Play In-App Review using Android Studio - Section.io
How to test · Generate a signed app bundle/APK. · Share the generated APK with a tester. · Copy t...
- 4Test in-app reviews | Android Developers
In-app reviews require your app to be published in Play Store. However, you can test your integra...
- 5Google 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 ...