アプリ内アップデートをテストする
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドでは、アプリでアプリ内アップデートをテストする方法について説明します。
内部アプリ共有を使用してテストする
内部アプリ共有を使用してアプリ内アップデートをテストするには、次の手順を行います。
テストデバイスに、アプリ内アップデートをサポートするバージョンが、内部アプリ共有 URL を使用してインストールされていることを確認します。
Google Play Console の手順に沿ってアプリを内部で共有します。すでにテストデバイスにインストールされているバージョンよりも高いバージョン コードを使用するアプリのバージョンをアップロードします。
テストデバイスで、アプリの更新バージョンの内部アプリ共有リンクをクリックします。ただし、リンクをクリックした後に表示される Play ストアのページからは、アプリをインストールしないでください。
デバイスのアプリドロワーまたはホーム画面でアプリを開きます。これで、アップデートをアプリで利用でき、アプリ内アップデートの実装をテストできるようになります。
トラブルシューティング
このセクションでは、テスト中にアプリ内アップデートが期待どおりに動作しない場合に、考えられる解決策について説明します。
アプリ内アップデートは、アプリを所有するユーザー アカウントでのみ利用できます。アプリ内アップデートをテストする前に、使用するアカウントが少なくとも一度は Google Play からアプリをダウンロードしていることを確認してください。
アプリ内アップデートのテストに使用するアプリに、Google Play から入手できるバージョンと同じアプリケーション ID と署名キーがあることを確認してください。
Google Play によるアプリのアップデートは、より高いバージョン コードにのみ可能です。テストしているアプリがアップデートのバージョン コードよりも低いバージョン コードであることを確認してください。
アプリを内部アプリ共有にアップロードする場合、inAppUpdatePriority
フィールドはサポートされません。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Test in-app updates\n\nThis guide describes how to test [in-app\nupdates](/guide/playcore/in-app-updates) in your app.\n\nTest with internal app sharing\n------------------------------\n\nUse [internal app\nsharing](https://support.google.com/googleplay/android-developer/answer/9844679)\nto test in-app updates by performing the following steps:\n\n1. Make sure your test device has a version of your app installed that supports\n in-app updates and was installed using an internal app sharing URL.\n\n2. Follow the Play Console instructions to\n [share your app internally](https://support.google.com/googleplay/android-developer/answer/9844679).\n Upload a version of your app that uses a version code that is higher than the\n one you already have installed on the test device.\n\n3. On the test device, click the internal app sharing link for the updated\n version of your app but *do not* install the app from the Play Store page\n that appears after you click the link.\n\n4. Open the app from the device's app drawer or home screen. The update should\n now be available to your app, and you can test your implementation of in-app\n updates.\n\nTroubleshoot\n------------\n\nThis section describes some possible solutions to situations where in-app\nupdates might not work as expected during testing:\n\n- In-app updates are only available to user accounts that own the app. Make\n sure the account that you're using has downloaded your app from Google Play at\n least once before using the account to test in-app updates.\n\n- Make sure that the app that you are using to test in-app updates has the same\n [application ID](/studio/build/configure-app-module#set_the_application_id) and [signing\n key](/studio/publish/app-signing) as the version available from Google Play.\n\n- Google Play can only update an app to a higher version code. Make sure that\n the app that you are testing has a lower version code than the update version\n code.\n\n- The `inAppUpdatePriority` field is not supported when uploading your app to internal app sharing."]]