问题排查
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Web 接收器在 Android TV 上打开
如果 Web 接收器在 Android TV 上而不是您的原生应用上意外打开,请回答几个问题来排查问题:
该应用是通过 Play 商店安装的吗?
如果没有,请检查 Android TV 设备的软件序列号(而不是设备上的硬件序列号),查看列出接收器 ID 的同一 Cast Developer Console 中是否已正确列出该序列号。如果设备未列出,请参阅注册页面,了解如何注册您的设备。
此序列号可能会发生变化。它是软件序列号,而不是写入到设备上的序列号。
您在日志中看到 APP_NOT_INSTALLED_BY_WHITELISTED_INSTALLER
或 INSTALLER_NOT_WHITELISTED
错误吗?
这些错误表明,应用是从不受信任的来源(而非 Play 商店)安装的,并且您没有在同一 Cast 开发者控制台中正确注册软件序列号和接收器 ID。
您的设备软件序列号是否正确?
用于 Cast 的 Android TV 设备的软件序列号与设备上列出的硬件序列号不同,可能会发生变化。
如需了解如何查找设备的软件序列号,请参阅
注册页面。
您的发送设备应用 Cast Connect 是否已启用?
确保已安装的发送器应用已启用 Cast Connect 支持,如发送器应用设置部分中所述。
您的 Android TV 应用有 LaunchRequestChecker
吗?
如果是,请尝试移除 LaunchRequestChecker
,看看您的应用能否正确启动原生 Android TV 接收器。如果这能解决您的问题,您可能需要修正启动检查工具逻辑或登录发送方应用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[[["易于理解","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"]],["最后更新时间 (UTC):2023-12-02。"],[[["If the Web Receiver opens instead of your native app, ensure your Android TV's software serial number is registered in the same Cast Developer Console as your receiver ID."],["Apps installed from untrusted sources may cause issues; ensure installation is from the Play Store and the device is registered in the Cast Developer Console."],["Verify your sender app is Cast Connect enabled and that the package name listed in the Cast Developer Console matches the installed app."],["Consider removing your `LaunchRequestChecker` temporarily to test if it's hindering the native app launch, and adjust its logic or sender app login if necessary."]]],["When the Web Receiver launches on Android TV instead of the native app, troubleshoot by verifying several points. First, if the app wasn't from the Play Store, ensure the device's software serial number and receiver ID are in the same Cast Developer Console. Check for `APP_NOT_INSTALLED_BY_WHITELISTED_INSTALLER` or `INSTALLER_NOT_WHITELISTED` errors. Confirm the software serial number is correct, and differs from the hardware one. Ensure Cast Connect is enabled in the sender app. Verify the package name in the Cast Developer Console matches the app. Lastly, try removing the `LaunchRequestChecker`.\n"]]