ทดสอบการอัปเดตในแอป
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คู่มือนี้จะอธิบายวิธีทดสอบการอัปเดตในแอป
Test with internal app sharing
ใช้การแชร์แอปภายในเพื่อทดสอบการอัปเดตในแอปโดยทำตามขั้นตอนต่อไปนี้
ตรวจสอบว่าอุปกรณ์ทดสอบของคุณติดตั้งแอปเวอร์ชันที่รองรับการอัปเดตในแอปและติดตั้งโดยใช้ URL การแชร์แอปภายใน
ทำตามวิธีการใน Play Console เพื่อแชร์แอปภายในองค์กร
อัปโหลดแอปเวอร์ชันที่ใช้รหัสเวอร์ชันสูงกว่าเวอร์ชันที่คุณติดตั้งไว้ในอุปกรณ์ทดสอบแล้ว
ในอุปกรณ์ทดสอบ ให้คลิกลิงก์การแชร์แอปภายในสำหรับแอปเวอร์ชันที่อัปเดต แต่อย่าติดตั้งแอปจากหน้า Play Store ที่ปรากฏขึ้นหลังจากคลิกลิงก์
เปิดแอปจากลิ้นชักแอปหรือหน้าจอหลักของอุปกรณ์ ตอนนี้การอัปเดตควรพร้อมใช้งานในแอปของคุณแล้ว และคุณสามารถทดสอบการติดตั้งใช้งานการอัปเดตในแอปได้
แก้ปัญหา
ส่วนนี้จะอธิบายวิธีแก้ปัญหาที่เป็นไปได้สำหรับกรณีที่การอัปเดตในแอปอาจไม่ทำงานตามที่คาดไว้ระหว่างการทดสอบ
การอัปเดตในแอปใช้ได้กับบัญชีผู้ใช้ที่เป็นเจ้าของแอปเท่านั้น โปรดตรวจสอบว่าบัญชีที่คุณใช้ดาวน์โหลดแอปจาก Google Play อย่างน้อย 1 ครั้งก่อนใช้บัญชีเพื่อทดสอบการอัปเดตในแอป
ตรวจสอบว่าแอปที่คุณใช้ทดสอบการอัปเดตในแอปมีรหัสแอปพลิเคชันและคีย์การลงชื่อเดียวกันกับเวอร์ชันที่พร้อมให้บริการจาก Google Play
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."]]