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.
Trong lần đầu tiên bạn phân phối ứng dụng bằng bảng điều khiển Firebase hoặc công cụ CLI (Firebase CLI, fastlane), App Distribution sẽ gửi email 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ử. Để biết 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 cách hồ sơ Firebase và đăng ký thiết bị của mình 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ó quyền cài đặt ứng dụng thử nghiệm.
Bạn cũng sẽ nhận được email thông báo bản dựng từ
Firebase khi nhà phát triển của ứng dụng phân phối một bản dựng mới và đưa
bạn vào vai trò là người kiểm thử.
Bước 2: Cài đặt hồ sơ Firebase
Phân phối Ad Hoc
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ơ này 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 cho tất cả Chủ sở hữu và Người chỉnh sửa của dự án Firebase một email chứa 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ơ cấp phé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 web Firebase App Distribution 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ả ứng dụng thử nghiệm của mình.
Bản phân phối dành 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 do Enterprise ký. Quá trình cài đặt hồ sơ sẽ thêm đoạn trích web Firebase App Distribution vào màn hình chính của thiết bị để bạn có thể cài đặt và truy cập vào tất cả ứng dụng kiểm thử. Cách cài đặt hồ sơ theo cách thủ công:
Trong phần Test apps (Kiểm thử ứng dụng), 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 mobile_screen_share.
Làm theo hướng dẫn xuất hiện để cài đặt hồ sơ Firebase.
Bước 3: Cài đặt và kiểm thử bản dựng
Phân phối Ad Hoc
Sau khi bạn đăng ký thiết bị, nhà phát triển phải cập nhật hồ sơ cấp phé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 thông báo qua email khi có bản dựng để bạn cài đặt.
Trong phần Kiểm thử ứng dụng 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 lập tức.
Bản phân phối dành cho doanh nghiệp
Trong phần Kiểm thử ứng dụng 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 lập tức.
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 và tin tưởng ứng dụng đó.
Nếu không có đoạn trích web Firebase App Distribution, 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 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ị và mở ứng dụng kiểm thử.
Bước 4: (Không bắt buộc) Bật cảnh báo 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ác 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 này, bao gồm cả cách thêm SDK vào ứng dụng kiểm thử, hãy tham khảo hướng dẫn Bắt đầu.
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 đã sử 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ừ 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ị.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-08 UTC."],[],[],null,["# Get set up as a tester with App Distribution\n\n\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--------------------------------------------------------\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----------------------------------------\n\n### Ad 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\n### Enterprise 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--------------------------------------\n\n### Ad 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\n### Enterprise 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----------------------------------------------\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\n### Delete 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)."]]