[英]Do standalone Android Wear 1.x apps require a companion app?
I have an Android Wear app (a watchface) that was originally created before Wear 2.0, so it is embedded in a phone APK.我有一个最初在 Wear 2.0 之前创建的 Android Wear 应用程序(表盘),因此它嵌入在手机 APK 中。 I am working on porting it to 2.0, and keeping it backwards compatible.我正在努力将其移植到 2.0,并保持向后兼容。 It is standalone and requires zero connection to a phone.它是独立的,需要与手机零连接。
I understand that for Wear 2.0, the only thing needing to be published for a standalone app is the Wear APK.我知道对于 Wear 2.0,独立应用程序唯一需要发布的是 Wear APK。 I have been reading through Google's documents and recommendations for moving 1.x apps to Multi-APK instead of embedded.我一直在阅读 Google 的文档和关于将 1.x 应用程序移动到多 APK 而不是嵌入式的建议。 They are a bit vague, however, on if a standalone Wear 1.x app even needs a companion app.然而,对于独立的 Wear 1.x 应用程序是否需要配套应用程序,它们有点含糊。 I'm asking about this because it seems strange that we would need a dummy app on the phone that does literally nothing, if the Wear app is now its own APK.我之所以问这个,是因为如果 Wear 应用程序现在是它自己的 APK,我们在手机上需要一个实际上什么都不做的虚拟应用程序似乎很奇怪。
From my understanding, that is the case, unfortunately.根据我的理解,不幸的是,情况确实如此。 Since there is no Play Store app on Wear 1.0 watches, it's not possible to install the standalone app directly.由于 Wear 1.0 手表上没有 Play Store 应用程序,因此无法直接安装独立应用程序。 So a user needs to install the companion app on the phone, and Play Services should install the Wear app if there is a Wear 1.0 watch connected.因此,用户需要在手机上安装配套应用,如果连接了 Wear 1.0 手表,则 Play 服务应安装 Wear 应用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.