📄
Android In-app Updates
  • Introduction
  • Installation
  • Hierarchy
  • Customization
  • Testing
Powered by GitBook
On this page

Was this helpful?

Testing

PreviousCustomization

Last updated 4 years ago

Was this helpful?

Based on your setup in Google Play Console there are a few ways to test if the integration is correct.

If Play App Signing is not enabled for your app which means that you are using your own keystore to upload and distribute your app or game to users via Google Play Store, the easiest way to test the update functionality is to build an apk / app bundle directly from Unity and install on your test device, but keep in mind that you should check those items first:

  • In-app updates are available only to user accounts that own the app. So, make sure the account you’re using has downloaded your app from Google Play at least once before using the account to test in-app updates.

  • Make sure that the app that you are testing in-app updates with has the same application ID / package name.

  • Because Google Play can only update an app to a higher version code, make sure the app you are testing as a lower version code than the update version code.

  • Make sure the account is eligible and the Google Play cache is up to date. To do so, while logged into the Google Play Store account on the test device, proceed as follows:

    1. Make sure you completely .

    2. Open the Google Play Store app and go to the My Apps & Games tab.

    3. If the app you are testing doesn’t appear with an available update, check that you’ve properly .

If Play App Signing is enabled for your app you can test the integration in two ways.

First by uploading apk / app bundle files directly to Play Store Console in Alpha channel and use this channel to download the update and test the app. The downside of this method is that you will have to update your versionCode every time when you want to test changes in the integration. If it's not a big deal for you I would prefer to go with this way.

Second way is by using Internal App-Sharing option from Play Store Console. You can read more about it here:

Here are the steps you should follow with this method:

On your test device, make sure you've already installed a version of your app that meets the following requirements:

  • The app was installed using an internal app sharing URL

  • Supports in-app updates

  • Uses a version code that's lower than the updated version of your app

On the test device, only click the internal app-sharing link for the updated version of your app. Do not install the app from the Google Play Store page you see after clicking the link.

Open the app from the device's app drawer or home screen. The update should now be available to your app, and you can test your implementation of in-app updates.

If there is an issue with your implementation or you are facing an issue you can always reach me via my support email: support@hardartcore.com.

Follow the Play Console instructions on how to . Make sure you upload a version of your app that uses a version code that's higher than the one you have already installed on the test device.

You can read more about this topic in Google's documentation:

close the Google Play Store App
set up your testing tracks
https://support.google.com/googleplay/android-developer/answer/9844679
share your app internally
https://developer.android.com/guide/playcore/in-app-updates#internal-app-sharing