Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Segui i passaggi di questa guida per testare l'integrazione delle recensioni in-app in
la tua app o il tuo gioco.
Esegui test con il Google Play Store
Per le recensioni in-app è necessario pubblicare l'app nel Play Store. Tuttavia, puoi
testa l'integrazione senza pubblicare l'app in produzione utilizzando
canali di test interni o
condivisione interna delle app. In questa sezione vengono descritti entrambi i metodi
.
Esegui un test utilizzando un canale di test interno
Carica la tua app nel canale di test interno e installala su un dispositivo con una
account utente che ha accesso al canale di test interno. Quando si utilizza un server
canale di test, devono essere soddisfatte le seguenti condizioni:
L'account utente fa parte del canale di test interno.
L'account utente è l'account principale ed è selezionato nel Play Store.
L'account utente ha scaricato l'app dal Play Store (l'app è
elencati nella raccolta di Google Play dell'utente).
Al momento non esiste una recensione per l'account utente dell'app.
Dopo che l'account sul dispositivo ha scaricato l'app almeno una volta dal
canale di test interno e fa parte dell'elenco di tester, puoi eseguire il deployment
dell'app in locale sul dispositivo (ad esempio, tramite Android Studio).
Esegui test con la condivisione interna delle app
In alternativa, per l'iterazione rapida puoi utilizzare la condivisione interna delle app
per testare l'integrazione. Questo metodo ti consente di testare rapidamente le modifiche saltando
parte delle verifiche che avvengono con altri canali di test.
Esegui test con FakeReviewManager
L'elemento della revisione in-app contiene un'implementazione FakeReviewManager che
ti permette di falsificare il comportamento dell'API.
Deve essere utilizzato solo per i test delle unità o di integrazione al fine di verificare il comportamento
dell'app al termine della revisione. Per utilizzare FakeReviewManager, sostituisci
l'istanza ReviewManager con un'istanza di FakeReviewManager, come mostrato
nel seguente esempio:
Durante l'integrazione e il test delle revisioni in-app, potresti riscontrare alcuni problemi. La
la seguente tabella illustra i problemi più comuni che possono impedire la pubblicazione
la finestra di dialogo per la revisione.
Problema
Soluzione
La tua app non è stata ancora pubblicata nel Play Store.
Non è necessario pubblicare l'app per testarla, ma
applicationID deve essere disponibile almeno nella
canale di test.
L'account utente non può recensire l'app.
L'app deve trovarsi nella raccolta Google Play dell'utente. Per aggiungere la tua app a
raccolta dell'utente, scarica la tua app dal Play Store utilizzandola
dell'account utente.
L'account principale non è selezionato nel Play Store.
Quando sul dispositivo sono disponibili più account, assicurati che:
l'account principale sia quello selezionato nel Play Store.
L'account utente è protetto (ad esempio, con
).
Utilizza invece un account Gmail.
L'utente ha già recensito l'app.
Eliminare la recensione direttamente dal Play Store.
Si è verificato un problema con il Google Play Store o con Google Play Services su
del dispositivo.
Questo accade di solito quando il Play Store è stato trasferito sul dispositivo tramite sideload.
Utilizza un altro dispositivo con una versione valida del Play Store e
Google Play Services.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# Test in-app reviews\n\nFollow the steps in this guide to test your integration of in-app reviews in\nyour app or game.\n\nTest using the Google Play Store\n--------------------------------\n\nIn-app reviews require your app to be published in Play Store. However, you can\ntest your integration without publishing your app to production using either\ninternal test tracks or internal app sharing. Both methods are described in this\nsection.\n\n### Test using an internal test track\n\nUpload your app to the internal test track and install it on a device with a\nuser account that has access to the internal test track. When using an internal\ntest track, the following conditions must be met:\n\n1. The user account is part of the Internal Test Track.\n2. The user account is the primary account and it's selected in the Play Store.\n3. The user account has downloaded the app from the Play Store (the app is listed in the user's Google Play library).\n4. The user account does not currently have a review for the app.\n\nAfter the account on the device has downloaded the app at least once from the\ninternal test track and is part of the testers list, you can deploy new\nversions of the app locally to that device (for example, using Android Studio).\n| **Note:** The quota limits are **not** enforced if the app is downloaded from the internal test track.\n\n### Test using internal app sharing\n\nAlternatively, for rapid iteration you can use [internal app sharing](https://play.google.com/console/internal-app-sharing/)\nto test your integration. This method lets you quickly test changes by skipping\nsome of the verification that happens with other test tracks.\n| **Important:** When using an app installed with internal app sharing, reviews **can't be submitted**. To emphasize this difference, the button is disabled in the UI.\n\nTest using FakeReviewManager\n----------------------------\n\nThe in-app review artifact contains a `FakeReviewManager` implementation that\nallows you to fake the behavior of the API.\n\nThis should only be used for unit or integration tests to verify the behaviour\nof the app once the review is completed. To use the `FakeReviewManager`, replace\nthe `ReviewManager` instance with an instance of `FakeReviewManager`, as shown\nin the following example: \n\n### Kotlin\n\n```kotlin\nval manager = FakeReviewManager(context)\n```\n\n### Java\n\n```java\nReviewManager manager = new FakeReviewManager(context);\n```\n| **Note:** `FakeReviewManager` does not simulate the UI. It only fakes the API method result by always providing a fake `ReviewInfo` object and returning a success status when the in-app review flow is launched.\n\nTroubleshooting\n---------------\n\nAs you integrate and test in-app reviews, you might run into some issues. The\nfollowing table outlines the most common issues that can prevent the in-app\nreview dialog from displaying in your app:\n\n| Issue | Solution |\n|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Your app is not published yet in the Play Store. | Your app doesn't have to be published to test, but your app's `applicationID` must be available at least in the internal testing track. |\n| The user account can't review the app. | Your app must be in the user's Google Play library. To add your app to the user's library, download your app from the Play Store using that user's account. |\n| The primary account is not selected in the Play Store. | When multiple accounts are available in the device, ensure that the primary account is the one selected in the Play Store. |\n| The user account is protected (for example, with enterprise accounts). | Use a Gmail account instead. |\n| The user has already reviewed the app. | Delete the review directly from Play Store. |\n| The quota has been reached. | Use an [internal test track](#internal-test-track) or [internal app sharing](#internal-app-sharing). |\n| There is an issue with the Google Play Store or Google Play Services on the device. | This commonly occurs when the Play Store was sideloaded onto the device. Use a different device that has a valid version of the Play Store and Google Play Services. |"]]