Can I test Google Play In-App Review in Android Emulator?

文章推薦指數: 80 %
投票人數:10人

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  



請為這篇文章評分?