測試應用程式內更新
本導覽說明如何在應用程式中測試應用程式內更新。
使用內部應用程式分享功能進行測試
執行下列步驟以使用內部應用程式分享功能來進行應用程式內更新測試:
請確認測試裝置安裝的應用程式版本可支援應用程式內更新,並且該版本是透過內部應用程式分享網址安裝而成。
按照「Play 管理中心」的操作說明在內部分享應用程式。
上傳一個版本的應用程式,其版本代碼高於測試裝置上安裝的應用程式。
在測試裝置上按一下內部應用程式分享連結以取得更新版的應用程式,但請勿在點擊連結後,安裝 Play 商店頁面顯示的應用程式。
從裝置的應用程式導覽匣或主畫面開啟應用程式。您的應用程式現在應該可以進行更新了,您可以測試應用程式內更新的實作情形。
疑難排解
本節針對在測試時,應用程式內更新可能無法如預期運作的情形,提供一些可能的解決方案:
應用程式內更新僅供安裝該應用程式的使用者帳戶使用。在使用該帳戶測試應用程式更新之前,請先確認您使用的帳戶在 Google Play 下載了至少一次這個應用程式。
請確認您用於測試應用程式內更新的應用程式所使用的應用程式 ID 和簽署金鑰與 Google Play 提供的版本相同。
Google Play 只能更新版本代碼更高的應用程式。請確認您要測試的應用程式版本代碼低於要更新的版本代碼。
上傳應用程式至內部應用程式分享時,不支援 inAppUpdatePriority
欄位。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]