Thiết lập hoạt động kiểm thử với tính năng Phân phối ứng dụng
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Khi bạn phân phối ứng dụng lần đầu bằng bảng điều khiển Firebase hoặc một công cụ CLI (Firebase CLI, fastlane), App Distribution sẽ gửi cho người kiểm thử một lời mời kèm theo hướng dẫn về cách cài đặt và kiểm thử bản dựng.
Hướng dẫn này mô tả cách cài đặt và kiểm thử một ứng dụng mới được phân phối thông qua App Distribution theo quan điểm của người kiểm thử. Để xem câu trả lời cho các câu hỏi thường gặp hoặc được trợ giúp khắc phục sự cố, hãy đọc hướng dẫn khắc phục sự cố.
Bước 1: Đăng nhập bằng Google để chấp nhận lời mời
Trên thiết bị iOS, hãy mở lời mời qua email trong Safari.
Bạn phải mở lời mời qua email để cài đặt đúng hồ sơ Firebase và đăng ký thiết bị của bạn trong Bước 2.
Khi được nhắc, hãy đăng nhập bằng Google và chấp nhận lời mời kiểm thử ứng dụng.
Sau khi chấp nhận lời mời, bạn sẽ được cấp quyền cài đặt ứng dụng thử nghiệm. Bạn cũng sẽ nhận được email thông báo về bản dựng từ Firebase khi nhà phát triển ứng dụng phân phối một bản dựng mới và đưa bạn vào danh sách người kiểm thử.
Bước 2: Cài đặt hồ sơ Firebase
Phân phối đặc biệt
Trên trang của ứng dụng kiểm thử, hãy nhấn vào Đăng ký thiết bị.
Khi được nhắc, hãy tải hồ sơ Firebase xuống, sau đó cài đặt hồ sơ trong ứng dụng Cài đặt.
Việc cài đặt hồ sơ sẽ cấp cho Firebase quyền:
Đăng ký thiết bị thử nghiệm bằng cách thu thập mã thiết bị duy nhất (UDID) của thiết bị. Nếu bạn đang kiểm thử một bản phân phối Ad Hoc, Firebase sẽ gửi email cho tất cả Chủ sở hữu và Người chỉnh sửa của dự án Firebase. Email này bao gồm UDID của thiết bị kiểm thử, cùng với hướng dẫn về cách đưa thiết bị vào hồ sơ cung cấp của ứng dụng để có thể kiểm thử bản dựng trên thiết bị của bạn.
Cài đặt một đoạn trích Firebase App Distribution trên web vào màn hình chính của thiết bị thử nghiệm. Đoạn trích trên web cho phép bạn cài đặt và truy cập vào tất cả các ứng dụng thử nghiệm của mình.
Phân phối cho doanh nghiệp
Bước này không bắt buộc nhưng bạn nên thực hiện để kiểm thử các bản phân phối được ký bằng chứng chỉ doanh nghiệp. Việc cài đặt hồ sơ sẽ thêm đoạn mã Firebase App Distributionvào màn hình chính của thiết bị, nhờ đó bạn có thể cài đặt và truy cập vào tất cả các ứng dụng thử nghiệm. Cách cài đặt hồ sơ theo cách thủ công:
Trong phần Ứng dụng thử nghiệm, hãy chọn ứng dụng bạn muốn kiểm thử.
Ở trên cùng bên phải trang của ứng dụng, hãy nhấn vào biểu tượng mobile_screen_share.
Làm theo hướng dẫn xuất hiện trên màn hình để cài đặt hồ sơ Firebase.
Bước 3: Cài đặt và kiểm thử bản dựng
Phân phối đặc biệt
Sau khi bạn đăng ký thiết bị, nhà phát triển phải cập nhật hồ sơ cung cấp bằng UDID của thiết bị và phân phối lại bản dựng được định cấu hình để chạy trên thiết bị của bạn. Firebase sẽ gửi cho bạn một thông báo qua email khi bạn có thể cài đặt bản dựng.
Trong phần Ứng dụng kiểm thử của đoạn trích web Firebase App Distribution, hãy chọn ứng dụng mà bạn muốn cài đặt bản dựng mới, sau đó nhấn vào Tải xuống. Bản dựng sẽ được tải xuống màn hình chính của thiết bị để bạn có thể bắt đầu kiểm thử ngay.
Phân phối cho doanh nghiệp
Trong phần Ứng dụng kiểm thử của đoạn trích web Firebase App Distribution, hãy chọn ứng dụng mà bạn muốn cài đặt bản dựng mới, sau đó nhấn vào Tải xuống. Bản dựng sẽ được tải xuống màn hình chính của thiết bị để bạn có thể bắt đầu kiểm thử ngay.
Trong ứng dụng Cài đặt > màn hình Quản lý hồ sơ và thiết bị, hãy chọn tên nhà phát triển của ứng dụng rồi tin tưởng ứng dụng đó.
Nếu không có đoạn trích Firebase App Distribution trên web, bạn có thể cài đặt bản dựng mới cho ứng dụng kiểm thử bằng cách nhấn vào Tải bản dựng mới nhất xuống trong email thông báo về bản dựng mới của Firebase.
Cuối cùng, hãy quay lại màn hình chính của thiết bị rồi mở ứng dụng kiểm thử.
Bước 4: (Không bắt buộc) Bật cảnh báo về bản dựng mới
Nếu đã thêm SDK Firebase App Distribution vào ứng dụng kiểm thử, bạn có thể tuỳ ý bật cảnh báo trong ứng dụng xuất hiện khi có bản dựng mới để kiểm thử. Để biết thêm thông tin về SDK, bao gồm cả cách thêm SDK vào một ứng dụng kiểm thử, hãy tham khảo hướng dẫn Bắt đầu sử dụng.
Trên màn hình chính của thiết bị, hãy mở ứng dụng kiểm thử.
Khi hộp thoại Bật thông báo xuất hiện, hãy nhấn vào Có.
Đăng nhập bằng Tài khoản Google mà bạn đã dùng trước đó trong Bước 1 (tài khoản bạn dùng để chấp nhận lời mời của ứng dụng).
Cảnh báo trong ứng dụng được bật tự động.
Quay lại ứng dụng kiểm thử. Giờ đây, bạn sẽ nhận được thông báo trong ứng dụng khi có phiên bản ứng dụng mới để kiểm thử.
Để tải phiên bản ứng dụng mới xuống ngay từ một cảnh báo, hãy nhấn vào Cập nhật trong hộp thoại cảnh báo. Phiên bản ứng dụng mới sẽ được tải xuống và thêm vào màn hình chính của thiết bị.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-05 UTC."],[],[],null,["\u003cbr /\u003e\n\niOS+ Android \n\n\u003cbr /\u003e\n\nWhen you first distribute an app using\nthe [Firebase console](/docs/app-distribution/android/distribute-console) or\na CLI tool ([Firebase CLI](/docs/app-distribution/android/distribute-cli),\n[fastlane](/docs/app-distribution/android/distribute-fastlane)),\nApp Distribution emails the tester an invitation with instructions on how to\ninstall and test the build.\n\nThis guide describes how to install and test a new app\ndistributed through App Distribution from a tester's point of view. For answers to\nfrequently asked questions or help with troubleshooting, read the\n[troubleshooting guide](/docs/app-distribution/troubleshooting).\n\n**Step 1**: Sign in with Google to accept the invitation\n\n1. On an iOS device, open the email invitation in Safari.\n You must open the email invitation to properly install the Firebase\n profile and register your device in [Step 2](#install-profile).\n\n2. When prompted, sign in with Google and accept the invitation to\n test the app.\n\n| **Keep the following in mind:**\n|\n| - After opening an invitation to test an app, you can sign in with any Google account to accept the invitation, not just the account to which the invitation was originally sent.\n| - Invitations can only be accepted once before becoming invalid.\n| - A Google account can be associated with any email address, not only addresses with Gmail or G Suite domains. Find out how to [sign in](https://support.google.com/accounts/answer/176347?co=GENIE.Platform%3DDesktop&hl=en&oco=1) with another email address.\nOnce you accept an invitation, you're given access to install the test app. You also receive build notification emails from Firebase when the app's developer distributes a new build and includes you as a tester. **Tip:** If you don't want to go through your email to accept new app invitations, you can also access your pending app invitations directly in the Firebase App Distribution web clip: [appdistribution.firebase.google.com](http://appdistribution.firebase.google.com).\n\n**Step 2**: Install the Firebase profile \n\nAd Hoc distributions\n\n1. In the test app's page, tap **Register device**.\n2. When prompted, download the Firebase profile, then install the profile in the **Settings** app.\n\nInstalling the profile gives Firebase permission to:\n\n- Register the test device by collecting the device's unique device ID (UDID). If you're testing an Ad Hoc distribution, Firebase sends all Owners and Editors of the Firebase project an email that includes the test device's UDID , along with instructions on how to include the device in the app's provisioning profile so that the build can be tested on your device.\n- Install a Firebase App Distribution web clip to the test device's home screen. The web clip allows you to install and access all of your test apps.\n\nEnterprise distributions\n\nThis step is optional but recommended for testing Enterprise-signed\ndistributions. The profile installation adds the Firebase App Distribution\nweb clip to your device's home screen, so you can install and access all\nyour test apps. To manually install the profile:\n\n1. Under **Test apps**, select the app you want to test.\n\n2. In the top right of the app's page, tap *mobile_screen_share*.\n\n3. Follow the instructions displayed to install the Firebase profile.\n\n**Step 3**: Install and test the build \n\nAd Hoc distributions\n\nAfter you register your device, the developer must update their\nprovisioning profile with your device's UDID and redistribute a build\nthat's configured to run on your device. Firebase emails you a notification\nwhen the build is available for you to install.\nIn the **Test apps** section of the Firebase App Distribution web clip, select the app for which you want to install a new build, then tap **Download** . The build is downloaded to your device's home screen so you can start testing right away. \n\nEnterprise distributions\n\n1. In the **Test apps** section of the Firebase App Distribution web clip, select the app for which you want to install a new build, then tap **Download** . The build is downloaded to your device's home screen so you can start testing right away. \n2. In the **Settings** app \\\u003e **Profiles \\& Device Management** screen, select\n the app's developer name and trust it.\n\nIf you do not have the Firebase App Distribution web clip, you can install\na new build for your test app by tapping **Download the latest build** in\nthe new build notification email from Firebase.\n\nFinally, return to your device's home screen and open the test app.\n\n**Step 4**: (Optional) Enable new build alerts\n\nIf the Firebase App Distribution SDK has been added to your test app, you\ncan optionally enable in-app alerts that appear when new builds are available\nto test. For more information about the SDK, including how to add it to a test\napp, refer to the Get Started guide.\n\n1. From your device's home screen, open the test app.\n\n2. When the **Enable alerts** dialogue appears, tap **Yes**.\n\n | **If you don't see the dialogue,** note the following:\n | - The dialogue may appear at a different point in your app, depending on where the developer implemented the feature.\n | - If the developer customized the dialogue, it may appear with different text, buttons, or other elements.\n | - Check that you have accepted terms on your test device when you accepted the invitation to test the app.\n3. Sign in with the Google account you previously used in [Step 1](#sign-in)\n (the account you used to accept the app's invitation).\n In-app alerts are turned on automatically.\n\n If you have trouble signing in to your Google account, visit the\n [troubleshooting guide](/docs/app-distribution/troubleshooting#google-signin-ios).\n4. Return to the test app. Now, you receive in-app alerts when new app versions\n are available for testing.\n\nTo download a new app version directly from an alert, tap **Update** in the\nalert dialogue. The new app version is downloaded and added to your device's\nhome screen.\n\nDelete your tester account\n\nTo delete your App Distribution tester account and its\ndata, see the [App Distribution troubleshooting \\& FAQ](/docs/app-distribution/troubleshooting#delete-tester-account)."]]