Play Core In-App Review API not showing the Review Activity

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

I'm calling the following code from the onResume() method of my activity: reviewManager = ReviewManagerFactory.create(AlarmClock.this); Logger. Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore PlayCoreIn-AppReviewAPInotshowingtheReviewActivity AskQuestion Asked 1year,8monthsago Modified 3monthsago Viewed 34ktimes 71 23 I'mtryingtoutilizetheReviewAPI(PlayCorelibrary1.8.0)fromGooglewhichwasjustreleasedyesterday. Seehttps://developer.android.com/guide/playcore/in-app-review Ifollowedthetroubleshootingsectioncarefully,Imadesuretheappisdownloadedfromtheinternaltestingtrack,myaccountdoesnothaveareviewontheapp,theappisinthelibraryofthatuseretc..Ieventriedwithacompletelynewaccount,buteverytimethecom.google.android.finsky.inappreviewdialog.InAppReviewActivityisshownonlytoimmediatelydisappear. I'mcallingthefollowingcodefromtheonResume()methodofmyactivity: reviewManager=ReviewManagerFactory.create(AlarmClock.this); Logger.logInfo("Rating:requestReviewFlow()"); reviewManager.requestReviewFlow().addOnSuccessListener(newOnSuccessListener(){ @Override publicvoidonSuccess(ReviewInforesult){ Logger.logInfo("Rating:launchReviewFlow()"); reviewManager.launchReviewFlow(AlarmClock.this,result).addOnSuccessListener(newOnSuccessListener(){ @Override publicvoidonSuccess(Voidresult){ Logger.logInfo("Rating:launchReviewFlow()success"); } }); } }); Bothlistenersreturnsuccess. Hereisthelogoutput: 2020-08-0616:01:29.31729618-29618/?I/MyApp:[06Aug16:01:29.317,main]:Rating:requestReviewFlow() 2020-08-0616:01:29.31829618-29618/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:requestInAppReview(com.mypackage) 2020-08-0616:01:29.32029618-29774/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:Initiatebindingtotheservice. 2020-08-0616:01:30.08129618-29618/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService}) ***2020-08-0616:01:30.08229618-29774/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:linkToDeath*** 2020-08-0616:01:30.35529618-29637/?I/PlayCore:UID:[10409]PID:[29618]OnRequestInstallCallback:onGetLaunchReviewFlowInfo 2020-08-0616:01:30.35529618-29774/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:Unbindfromservice. 2020-08-0617:02:21.5907478-7478/?I/MyApp:[06Aug17:02:21.590,main]:Rating:launchReviewFlow() 2020-08-0617:02:21.6301511-4316/?I/ActivityTaskManager:STARTu0{cmp=com.android.vending/com.google.android.finsky.inappreviewdialog.InAppReviewActivity(hasextras)}fromuid10122 2020-08-0617:02:21.7507478-7478/?I/MyApp:[06Aug17:02:21.750,main]:Rating:launchReviewFlow()success Anyonehadsuccesstomakethisworking?Anytips.Bigthanks! androidgoogle-playgoogle-play-core Share Follow editedAug6,2020at15:14 PetrNalevka askedAug6,2020at15:08 PetrNalevkaPetrNalevka 1,40911goldbadge1010silverbadges1818bronzebadges 12 3 Iamalsofacingthesameissue@PetrNalevkaIfyoufindanysolutionpleasedosharehere – Dinjit Aug6,2020at18:52 1 ManythanksI'mnowtryingaminimalimplementationwithmyotherappandwillsee.. – PetrNalevka Aug6,2020at21:22 1 Iseethesameissue.ThesyslogincludesthisException:Classnotfoundwhenunmarshalling:com.google.android.play.core.review.b(withminifyEnabled=false!).HereisthelinktotheGoogleissuetracker:issuetracker.google.com/issues/162969017 – mattlaabs Aug7,2020at12:09 IsuccessfullyimplementedtheAPIonAndroid,itshowedonlyonversionreleasedviaInternaltesttrack.Icansendyoucodesnippet@PetrNalevka.BtwIthinkit'swrongtotriggeritinonResume,youshouldtriggeritafteryoubringsomevaluetotheuser,forexampleaftersettinganalarminyourcase. – DavidVávra Aug10,2020at13:13 1 Idecidedtonotusethatapi.WhyshouldIriskwithsovaluableuserreviewsfornoreason – orium Aug28,2020at12:54  |  Show7morecomments 20Answers 20 Sortedby: Resettodefault Highestscore(default) Trending(recentvotescountmore) Datemodified(newestfirst) Datecreated(oldestfirst) Helpusimproveouranswers.Aretheanswersbelowsortedinawaythatputsthebestansweratornearthetop? Takeashortsurvey I’mnotinterested 25 Okay,IhadexactlythesameproblemasdescribedbytheOPandasislistedontheissuetrackerhere:https://issuetracker.google.com/issues/167352813andhasstillnotbeenresolvedasyetbyGoogleDev. SameUImanifestation(s),samelogentries(incidentally,thelogentriesarethesamewhenitworksthough,completewiththeentrythatsays“ReviewService:linkToDeath”,butlet’snotworryaboutthateh?) Thekeything,you'llno-doubtwanttoknowthough,toavoidtoomuchsuspense,isthatITWORKS.Thein-appreviewAPIworks!Noneedformetorepeattheblockofcodeforcallingthereviewflow,itisprettymuchexactlythesameasinthedocs,similartowhattheOPhaslisted,andseveralothershavekindlyrepeated. Tookmeawhile,butIgottothebottomofitasfollows,inanutshell: YourdeviceneedstohavethelatestGooglePlaysystemupdate IrrespectiveofwhetheryourappispublishedonthePlayStoreYOUABSOLUTELYNEEDTODOYOURTESTINGVIAINTERNALAPPTESTINGorSHARING(Ionlydid“InternalAppTesting”,butIexpectthesameapplies) TodebugyourcodewithAndroidStudio,youneedtohaveinstalledyourInternalAppTestingversiononyourdeviceANDRUNTHEDEBUGGERSUCCESSFULLYWITHYOURIATVERSIONSTILLINSTALLEDONTHEDEVICEATLEASTONCE Onceyouareupandrunning,whenthereviewdialogpopsup,youhavetonotethat,ifyousubmitareview,thenyouhaveutilisedallyourquota.Whenyoutryandlaunchthereviewflowagainitlookslikethe“problem”hasreturned.Youget“successful”launchbutnothingshows.Ifyouhavesubmittedareview(andthisiswhyitabsolutelyneedstobeinIAT),thenitisonlya“privatereview”(notseenpubliclyonyourapppage),andyouneedtoDELETETHEREVIEWTOGETTHEPOPUPTOSHOWAGAIN. Youcanselect“NotNow”insteadof"Submit"adinfinitum(well,Itriedabouttwo-dozentimes)andthepop-updialogwilllauncheachtimeyou(re)calltheflow. So,step-by-stepfix: Prepareyourdevicebyuninstallingyourapp,thenensureyouhavethelatestGooglePlayStoreupdate.OnmySonyXperiaX1thisisSettings->AboutPhone->Androidversion->GooglePlaysystemupdate. Irrespectiveofwhethertheaboverestartedyourdevice,turnyourdeviceoffandthenbackonagain(don’trestart-offthenoni.e.coldboot). NowgointoSettings->Apps&notifications->GooglePlay->Storage&Cache,thendobothCLEARCACHEandCLEARSTORAGE.(Thisshouldnotaffectanyofyourinstalledapps). CreateasignedreleaseforIATbasedonyourIn-Appreviewcodebase.Youhavetodothisevenifyouhaveareleaseinproduction. NowinstallyourIATRELEASEonyourdevice-thewords,"(InternalBeta)"orwordstothateffect,shouldbeappendedtoyourappnameifyouaredownloadingfromtherightlocation(i.e.IAT),(donotrunit,justinstall) InAndroidstudioClean,RebuildandDebug,yourapponthedevicewiththeIATversioninstalled.Ifyougetamessagesaying"Thedevicealreadyhasanapplicationwiththesamepackagebutadifferentsignature."DON'TCLICKOKTOUNINSTALLYOURIATVERSIONFollowtheinstructionshere:Android:Error-Apphassamepackageddifferentsignature.Theacceptedansweristhecorrectone.Ifyouhavetodothis,pleasenoteyoushoulddoaCleanandRebuild->Debugagain. Hopefully,nowallshouldbeokay.Onceyouhavedonetheabovestepssuccessfully,youcanactually"clean"uninstalltheappfromthedeviceonsubsequentdebuggingsessions,anditwillstillwork. Totest,andtodeleteareviewnotethefollowing.Whenyousubmitareview,youwillbeabletoseeitinGooglePlayConsole(notunder"Reviews",incidentallybut)under"TestingFeedback".Alsoyoucannotdeleteyourreviewunder"TestingFeedback"itseems.YouneedtodeleteitfromyourIATdownloadpageonthedevice.Onthere,undertheheadingYourprivatefeedback,selecttheright-angledellipsisthingytotherightofyourreviewandsimply"Delete". Yourpop-upwillnowshoweverytimeuntilyousubmitanotherreview.Voila! Share Follow editedDec17,2020at10:28 answeredDec17,2020at2:09 KofiKofi 40455silverbadges77bronzebadges 14 2 Wearehavingthesameissue.However,[email protected],itdoesnotworkwithaGmailSuiteemail([email protected]) – ptoinson Jul28,2021at18:24 IthinktheGmailSuiteemailaccountproblem,whichIhaveseenreportedhereisaseparateissue.IcannotreallyhelpwiththatonebecauseIhaven'ttestedthiswithaGmailSuiteaccount. – Kofi Jul29,2021at19:29 Justtofollowup,wedidgetitworkwithourGSuiteaccountsusingInternalAppSharing.Internaltestingwaswherewewereexperiencingissues. – ptoinson Jul30,2021at0:28 Interesting!Again,Ionlydid"InternalAppTesting"althoughIstillthinkoftheGSuiteaccountbusinessbeingaseparateissue-forwhichtheanswermaywellbe"don'tuseInternalAppTestingforGSuiteaccounts,useInternalAppSharinginstead"!Thanksforthefollow-up,couldwellbetheanswerforsomeonewiththesameproblem! – Kofi Jul31,2021at12:16 howlongdoyouhavetousetheappbeforethedialogappears(1day,week,month,year)?Ihavethecode,butneverseethedialog. – LanDenLabs Oct15,2021at17:50  |  Show9morecomments 24 Ihaveraisedaissueongoogleissuetrackerregardingthis.Ialsohavethesameissue. Formoreinfocheckthismyissuetrackingurl:https://issuetracker.google.com/issues/167352813 Share Follow answeredSep2,2020at5:43 PrantikMondalPrantikMondal 46633silverbadges1212bronzebadges 1 Iftheuserhasalreadyratedtheapp(bygoingtotheapppageintheplaystore)andifitrytoshowthatparticularuser"in-app"reviewdialog,willitappearornot? – AmanVerma Jan9at13:27 Addacomment  |  11 Ijustwanttosharethecodethatisworkingreliablytoday(2020-09-03).Itwasessentiallycopiedfromtheofficialdocument ReviewManagermanager=ReviewManagerFactory.create(activity); Taskrequest=manager.requestReviewFlow(); request.addOnCompleteListener(task->{ try{ if(task.isSuccessful()){ //WecangettheReviewInfoobject ReviewInforeviewInfo=task.getResult(); Taskflow=manager.launchReviewFlow(activity,reviewInfo); flow.addOnCompleteListener(task2->{ //Theflowhasfinished.TheAPIdoesnotindicatewhethertheuser //reviewedornot,orevenwhetherthereviewdialogwasshown.Thus,no //mattertheresult,wecontinueourappflow. utility.logMessageAsync(activity,"In-appreviewreturned."); }); }else{ //Therewassomeproblem,continueregardlessoftheresult. goToAppPage(activity); } }catch(Exceptionex){ utility.logExceptionAsync(activity,"ExceptionfromopenReview():",ex); } }); ItwastestedwithinternalappsharingonaAndroid10.Itneverfailedtoshowthereviewdialog. Share Follow answeredSep3,2020at21:49 HongHong 16.5k1515goldbadges7171silverbadges123123bronzebadges 8 haveyoutestonsignedabborapk? – user3077416 Sep18,2020at4:06 Yes,theinternalappsharinginmycaserequiresasingedapk.Iamnotusingabbforthisapp. – Hong Sep19,2020at12:24 1 Worksfine!IuseditonabbininternalappsharingasHongindicated.ItestedusingAndroid7,8,9 – JoeOkatch Sep20,2020at22:57 1 beenusingitinthepastweekandahalfandgotgoodresults(IshowitaftermakingsurethatI'llgetagoodreview)butinthelastcoupleofdaysthenumbersdroppedsharply,Ihavenonewratings,Ihaveindicationsthatusersarewillingtoreviewbutnoratinginthestore,haveanyoneexperiencedsomethingsimilar? – EliLeszczynski Oct22,2020at14:01 howlongdoyouhavetousetheappbeforethedialogappears(1day,week,month,year)?Ihavethecode,butneverseethedialog. – LanDenLabs Oct15,2021at17:50  |  Show3morecomments 12 Ialsosawthesameproblem,myrequestreviewflowworks,thenthelaunchreviewflowworks,butnothingdisplays(Idonoticethesmalllineatthecenterofthebottomofthescreenappearsbriefly,andmyaudiocutsoutbrieflyastheappispausedandthenresumedbutnoreviewflowappeared). IwasabletogetittoworkbyaddingausertomydevicethatwasnotinmylistofLicenseTesters(Googledeveloperconsole)andhadnotreviewedmyapppreviously.Iwasabletodisplaytheratingpopuponce,IcancelledtheoperationsothatIcouldtestitagain,butitwouldnotreappearafterwards.Itappearstobeaoneshotthingandtheyareaggressivelyguardingagainstannoyingtheuserwithreviewpopups. Thisfeaturedoesn'tseemusefulformycase,Ihaveabuttononthesettingsscreentoratemyapp.SinceIhavenowayofknowingwhathappened,Ican'tthanktheuser,Ican'tdisablethebuttonordisplayan"youalreadyratedthisthankyou"message,andthebuttonjustappearstodonothingsoitlookslikeabug.Iguesstheintendeduseistoasktheuserduringgameplay,andiftheycancelthedialogaccidentallythenit'sjusttoobadforyou. IdeallyGoogleshouldallowLicenseTestinguserstodisplaythispopupmorethanoncefortestingpurposes. Share Follow answeredSep1,2020at20:45 AaronLakeAaronLake 13144bronzebadges 3 3 Wowsoit'sbasicallygarbagethen!It'suselessifitcanonlydisplayonceandwegetnoerrorinfobasedoniftherewasalreadyareviewleft,etc.Whynotalwaysshowitandifareviewhasalreadybeenleft,allowthemtoeditit? – Flyview Oct29,2020at19:27 @Flyviewyouknowwhat?exaclty! – NiloofarHakkaki Jul6,2021at5:44 Iftheuserhasalreadyratedtheapp(bygoingtotheapppageintheplaystore)andifitrytoshowthatparticularuser"in-app"reviewdialog,willitappearornot? – AmanVerma Jan9at13:27 Addacomment  |  8 IhadthesameproblemandIsolvedwiththenextsteps: AddingmyAPKfiletointernaltestingchannel Addingatesteruserwithagmailaccountex:[email protected]'twork Withthetestermail,acceptthetesterprivilege Withaphysicaldevicesignedwiththetesteruseremail,gotoPlayStoreanddownloadtheapp Itworks!! Note:IfAppisnotpublishedyet,youcoulduseGoogleConsoleAppSharing Share Follow answeredOct6,2020at13:56 JorgeMartinezJorgeMartinez 16611silverbadge22bronzebadges 2 1 Hadthesameissue.IttooksometimetofigureoutthatGSuiteaccountsdonotwork. – Seagull Oct9,2020at16:46 Doesanyoneknowwhythisis?TheappI'mcurrentlybuilding,oranyappforthatmatter,mighthaveuserswithaGSuiteemailaddress.Thisseemslikesomethingthatshouldbefixed. – LittleChewbacca Jul28,2021at17:58 Addacomment  |  6 ForalltheusersthatneedsaworkingJAVAcode,pleasefindmycodebelow: ReviewInforeviewInfo; ReviewManagermanager; OnCreate manager=ReviewManagerFactory.create(this); privatevoidReview(){ manager.requestReviewFlow().addOnCompleteListener(newOnCompleteListener(){ @Override publicvoidonComplete(@NonNullTasktask){ if(task.isSuccessful()){ reviewInfo=task.getResult(); manager.launchReviewFlow(MainActivity.this,reviewInfo).addOnFailureListener(newOnFailureListener(){ @Override publicvoidonFailure(Exceptione){ Toast.makeText(MainActivity.this,"RatingFailed",Toast.LENGTH_SHORT).show(); } }).addOnCompleteListener(newOnCompleteListener(){ @Override publicvoidonComplete(@NonNullTasktask){ Toast.makeText(MainActivity.this,"ReviewCompleted,ThankYou!",Toast.LENGTH_SHORT).show(); } }); } } }).addOnFailureListener(newOnFailureListener(){ @Override publicvoidonFailure(Exceptione){ Toast.makeText(MainActivity.this,"In-AppRequestFailed",Toast.LENGTH_SHORT).show(); } }); } Makesurethebelowisimplemented: implementation'com.google.android.play:core:1.8.0' Andpleasealsonote,thatthedialogwillonlydisplayifyourappisinproduction,alphaorinternaltestingontheGooglePlayConsoleAccount. Share Follow answeredAug18,2020at6:09 GoRoGoRo 12266bronzebadges 4 Thanksforthecode,butwhenIuseit,itsays"ReviewCompleted,ThankYou!"withoutanythingbeforethat.Canyoutellmehowtodetermineiftheappisinproduction,alphaorinternaltesting?WhenIgototheplaystore,itsays"You'reabetatesterforthisapp".I'mjusttestingtheapplocallyonmyowndevice.DoIneedtogetmyselfoffofthebetainordertotest? – Dale Sep25,2020at21:10 Itworkedonceinproductionbuild,whenIdeletedandtriedagaintoreviewit'snotworking – AllwiN Jan7,2021at10:49 Youshouldn'tusethetoastsaying"Thankyou".Asperdeveloper.android.com/guide/playcore/in-app-review/kotlin-javatheonCompletegetstriggeredwhentheflowhasfinished.TheAPIdoesnotindicatewhethertheuserreviewedornot,orevenwhetherthereviewdialogwasshown.Thus,nomattertheresult,wecontinueourappflow. – nichtwer Feb26,2021at15:18 Iftheuserhasalreadyratedtheapp(bygoingtotheapppageintheplaystore)andifitrytoshowthatparticularuser"in-app"reviewdialog,willitappearornot? – AmanVerma Jan9at13:24 Addacomment  |  6 TryuploadingyourapptoInternalAppSharing IhavefoundthatwiththeexactsameapkuploadedtoInternalTestingversusInternalAppSharing,thelatterismorereliableindisplayingtheIn-AppReviewFloweverytimeItrytestingit. YouwouldneedtoenableInternalappsharinginthePlayStoretobeabletoinstallyourappfromthelinkprovidedbyuploadingyourapk. BasicallygotothePlayStore,gotoSettings,scrolldowntoPlayStoreversionandtapitabunchoftimesto"Becomeadeveloper",thenenableInternalappsharing. Share Follow answeredSep18,2020at11:21 AlanJosephCaceresAlanJosephCaceres 6111bronzebadge 2 Yesyesyes,ItriedeverythingandwasabouttogiveupbuttheInternalAppSharingworked,thanksfortherecommendation! – ScottFree Feb21,2021at23:57 Iftheuserhasalreadyratedtheapp(bygoingtotheapppageintheplaystore)andifitrytoshowthatparticularuser"in-app"reviewdialog,willitappearornot? – AmanVerma Jan9at13:28 Addacomment  |  3 Myworkingcode: privatefunaskForReview(){ valmanager=ReviewManagerFactory.create(this) manager.requestReviewFlow().addOnCompleteListener{request-> if(request.isSuccessful){ valreviewInfo=request.result manager.launchReviewFlow(this,reviewInfo).addOnFailureListener{ logWarning("In-appreviewrequestfailed,reason=$it") }.addOnCompleteListener{_-> logInfo("In-appreviewfinished") } }else{ logWarning("In-appreviewrequestfailed,reason=${request.exception}") } } } TestedonanappfromInternalTesttrack(thereisnoquotathere). Share Follow answeredAug11,2020at11:47 DavidVávraDavidVávra 17.2k77goldbadges4747silverbadges5353bronzebadges 1 ThiscodeworkedinLive.Butitdidn'tworkinTest. – RKRK Aug17,2020at6:24 Addacomment  |  2 Ihadsameissue,I'vefollowedbelowstepsthenworkingfine Ifyoumarkstarsandsubmit,thenneedtoremoveyourreviewfrom playstore. CleardataforPlayStore. Share Follow editedSep28,2021at4:58 answeredSep28,2021at4:48 AskShiwaAskShiwa 13322silverbadges77bronzebadges Addacomment  |  1 InMYcase,yes,thiswillnotworkiftheaccountthat’sbeingusedalreadyleftareview. HOWEVER,deletingthereviewfromthePlayStoredoesn’talwayswork.Somethinglingers. So,unlessyouwanttobesad,CLEARTHEPLAYSTOREAPP’SSTORAGEEVERYTIMEYOUDELETETHEREVIEWTHAT’SLEFT.Youdonotneedtoalsoclearthecacheaswellasothershavesuggested(clearingthestoragewillalsodothis),butclearingthePlayStoreapp’scachewasnotenough.OnceIdidthis,Icouldconsistentlytestthisadnauseum. Goodluck.Whatamessthisis. Share Follow answeredDec22,2021at21:07 BinkBink 1,52311goldbadge1919silverbadges3434bronzebadges 1 1 Solvedmytestingproblem,cleartheGooglePlayStoredatacausetodialogappearagain – Yossi Apr8at13:51 Addacomment  |  1 Ihadexactlythesameproblem,thedialogneverappearedtome... Butevenso,IleftitimplementedintheapplicationandposteditonthePlaystore. ThenIdownloadedandtestedtheversionandeverythingworksperfectly. Share Follow answeredNov18,2020at10:16 CommancheCommanche 21911goldbadge33silverbadges1010bronzebadges 1 howlongdoyouhavetousetheappbeforethedialogappears(1day,week,month,year)?Ihavethecode,butneverseethedialog. – LanDenLabs Oct15,2021at17:50 Addacomment  |  0 Documentationsaysthatitwon'tbeshowneverytimeyourequestitsinceithasquotarestrictions: https://developer.android.com/guide/playcore/in-app-review#quotas Ijustincludeditinmyprojectanditshowedthedialogonlyonetime.Itisalittleinconvenientsincewedon'thaveanycontrolsoverit. Also,Inoticedthatifyoutrytoshowthedialogagainandagain,navigationbarstartsblinking(likeitwantstoshowthedialogbutitgetsdismissed). Share Follow editedAug6,2020at19:23 answeredAug6,2020at18:41 ZhanbolatRaimbekovZhanbolatRaimbekov 29022silverbadges99bronzebadges 2 6 Manythanksforthefeedback.I'mawareofthequotarestrictions.ButformeitdidnotshoweventhefirsttimeandIuseddifferentaccountswhoneverratedtheappordownloadedtheappforfirsttime.Sothismademebelievemaybethereissomeotherissue. – PetrNalevka Aug6,2020at21:21 2 @PetrNalevkaIamevenfacingthesameissue.Iamgettingthecallbackforcompleteandthensuccess.Butnoreviewdialogsareseen.IhavemadesuretouseareleasebuildandalsopointingtoaversionCodethatiscurrentlyactiveintheplayStore. – AnirbanBhattacharjee Aug7,2020at11:29 Addacomment  |  0 Thedocumentationsays Toprovideagreatuserexperience,GooglePlayenforcesaquotaon howoftenausercanbeshownthereviewdialog.Becauseofthis, callingalaunchReviewFlowmethodmightnotalwaysdisplayadialog. Forexample,youshouldnothaveacall-to-actionoption(suchasa button)totriggerareviewasausermighthavealreadyhittheir quotaandtheflowwon’tbeshown,presentingabrokenexperienceto theuser. Soyoudon'texpectittoshowthedialogeverytimeandalsothere'snowaytoknowifthedialogisshownornotnortheuserhasreviewedyourappornoteither Share Follow answeredAug6,2020at18:58 ahmednaderahmednader 52333silverbadges99bronzebadges 2 Thereshouldbeawaytotestitreliably – Seagull Sep15,2020at20:10 Wowsoit'sbasicallygarbagethen!It'suselessifitcanonlydisplayonceandwegetnoerrorinfobasedoniftherewasalreadyareviewleft,etc.Whynotalwaysshowitandifareviewhasalreadybeenleft,allowthemtoeditit? – Flyview Oct29,2020at19:27 Addacomment  |  -4 PleasetestusingFakeReviewManager:) ReviewManagermanager=newFakeReviewManager(context); https://developer.android.com/guide/playcore/in-app-review/test Share Follow answeredOct5,2020at10:30 SamarakandeSamarakande 19322silverbadges33bronzebadges 1 1 TheFakeReviewManageisonlyusedforunittestingorintegrationpurpose,meaningthatitwillfakethebehavioroftheAPIoncethereviewiscompleted. – Badr Oct5,2020at15:32 Addacomment  |  0 Myproblemwassolvedbytypecastingthecontextandactivitytotherequiredformi.eapplicationcontextandactivity.Althoughitseemsillogical,nothingelseworkedforme Share Follow answeredAug21,2020at19:41 AnkurSharmaAnkurSharma 1 Addacomment  |  0 Ijoinedthebetainthestoreanditshowed.Butjustshowoncetime. Share Follow answeredAug28,2020at8:56 TrungHauDinhTrungHauDinh 111bronzebadge 1 Thesameforme.Itshowedjustonetimeafterdownloadingapkfrominternaltesting.Theysayindocsthatafterthat,youcaninstalldirectlyfromAnroidStudioandtest,butitneverappearedagain... – prf Sep29,2020at19:02 Addacomment  |  0 Justtobeclearyouarenotusingcom.mypackageright? 2020-08-0616:01:29.31829618-29618/?I/PlayCore:UID:[10409]PID:[29618]ReviewService:requestInAppReview(com.mypackage) EnsurethattheappIdusedistheonethatit's"owned"(akainstalledby)bytheselectedaccountinthePlayStoreinthedevice. Ibelievethetestguide(https://developer.android.com/guide/playcore/in-app-review/test)isclearintermsofhowtotestitgiventhedifferentrequirements. Mytips: Useonlyoneaccountinthedevice Ensurethataccounthasinstalledtheapp(appearsintheapp&games>LibrarysectioninPlayStore) TheaccountisaGMAILone,notaGSuit Youcanreviewwiththeaccountifyougototheappplaylistingpage. Theaccounthasnotreviewed IfyouintendtousetheInternalTestTrackensuretheaccounthasjoinedthetesttrack. Whenswitchingbetweendifferentaccountsandtestingthingsout,sometimesmightbehelpfulto"ClearData"fromthePlayStoreapp. Tryalltheabovewithdifferentaccount PS:YoucouldtestalsotheInternalAppSharing. Share Follow answeredSep18,2020at6:25 MarcelMarcel 1,60822goldbadges2121silverbadges3636bronzebadges Addacomment  |  0 Justdiscoveredthattheappmustbeapprovedfromgoogle(i.e.nothavingthetemporaryname) Share Follow answeredFeb22,2021at8:41 drom1xdrom1x 1 Addacomment  |  0 Thecodeiscorrectnoissue wecanfollowafewsteps appuploadfollowingURLhttps://play.google.com/console/u/0/internal-app-sharing/ setupgoogleplayconsoleyourprojectsetup->interappsharing->anyonecandownloadselecttheoption->tosave 3checkyourmobileinternalappsharingtoplaystoreapp Share Follow editedMar2,2021at5:52 answeredMar2,2021at5:47 RMVivekRMVivek 3633bronzebadges Addacomment  |  0 Mostofthecasesarecoveredinotheranswers.IwanttohighlightfewmoretroubleshootingSteps. Makesuretheuseraccountisnotprotected(likesomeenterpriseaccounts)usesomepersonnelGmailIDtotest. MakeSuretheversionofbetaappisgreaterthenthecurrentlyLiveapplication ifitsnotthenitwillnotshowupthereviewdialogue. Share Follow editedApr23,2021at7:22 answeredApr20,2021at11:27 ADMADM 18.3k1111goldbadges4646silverbadges7777bronzebadges 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-playgoogle-play-coreoraskyourownquestion. TheOverflowBlog What’stheaveragetenureofanengineeratabigtechcompany?(Ep.434) Newdata:DodevelopersthinkWeb3willbuildabetterinternet? FeaturedonMeta HowmighttheStagingGround&thenewAskWizardworkontheStackExchange... StagingGroundWorkflow:Listings,Filters,QualityControl,andNotifications AnA/Btesthasgonelivefora"Trending"sortoptionforanswers QuestionCloseReasonsproject-IntroductionandFeedback Overhaulingourcommunity'sclosurereasonsandguidance Linked 15 Android:Error-Apphassamepackageddifferentsignature 3 AndroidPlayCoreInAppReviewApiDialognotshowingup 0 In-AppReview:Howtocorrectlyimplementit -2 HowtoshowInAppRatingpopupinanapplicationatleastonceperuseron3minofactivity? 0 GooglePlayIn-AppReviewfreetextmarkedasrequired Related 2799 HowcanIsaveanactivitystateusingthesaveinstancestate? 687 SendingEmailinAndroidusingJavaMailAPIwithoutusingthedefault/built-inapp 926 HowtohidethetitlebarforanActivityinXMLwithexistingcustomtheme 1109 DownloadafilewithAndroid,andshowingtheprogressinaProgressDialog 291 "RateThisApp"-linkinGooglePlaystoreapponthephone 430 GooglePlayappdescriptionformatting 652 HowtoopentheGooglePlayStoredirectlyfrommyAndroidapplication? 8 Attempttoinvokevirtualmethodcom.google.firebase.iid.FirebaseInstanceId.getInstanceId()'onanullobjectreference HotNetworkQuestions Ismostvexingparseaformallydefinedconcept CanIuselethalforcetoprotectmyselfandothersfromanondutyofficerifheorshestartsshootingupthelocation? Whatenvironments/pressureswouldincentivise/selecthuntinginpairs? IsitreasonabletohaveconcernsabouttherecognitionofRussiandegrees? OneoffourMOSFETinparallelheatingtoomuch Civ6Maoriunitsareautomaticallyhealing,why? Lifeunderneathabluestar Thebelievabilityofflesheatingplankton Whatismeantby"latte-shaming"? Aretheresituationswherehigh-damagesingleattacksarebetterthanmultipleattacksthatadduptomoredamageoverall? Aren'tallobjectsluminousinasense? WhydoesNeelixcook,whenthereplicatorcanproduceanymeal? Does"agreetonegotiate"meanithastohappen? Isitillegaltoturnoffsomeone’sradioinpublic? CanIhaveonegatewayforeachsubnetIwanttoreach? WhatisthecorrectexpressionsyntaxtoautofilloutputextentwhilebatchprocessinginQGIS? HowdoIplumbadoorthathasspring-hinges? WhyareConTeXtandLaTeXtwodifferenttypesettingsystemsinsteadofjoiningforces? Movieaboutgoodandbad"angels"withmachinegunsandblackcoatsthatcamedowntoearthtokilleachother? PythonerrorinUpdateCursorforArcGIS:"'int'objecthasnoattribute'type'" HowlongisitinRoman Shimanocassettenumberofteeth AnimatingbattlefielddatamapofwarinUkraine:howcanIimprovegeo-imagealignmentandsmoothanimation? AdvisorrefusestoletmegetmyMaster’saftermythesisdefense morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. default Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?