三星齿轮应用程序通信

samsung gear app communication

我正计划为 gear (s) 和 samsung galaxy mobile(注 3)开发一个应用程序。 我希望用户能够从所有已安装应用程序的列表中进行选择(与三星的齿轮应用程序相同)。所选应用程序的通知将发送到设备,列表中未选择的应用程序的通知将发送到另一个蓝牙设备。

因为我知道三星gear的通信很奇怪,所以想问问我的a​​pp和gear S通信是否可以依赖gear的通知。

另外,既然note 3跑的是android,gear S跑的是tizen,那么通讯要怎么看呢?我是否将我的通知作为 JSON 发送到设备,或者设备如何知道它应该显示通知?

标准 Android 通知使用您描述的方法传递到 Gear。

您可以使用更深层的机制,称为 Rich Notifications. Part of the solution runs on Android and you can write JavaScript web apps to respond to the messages on Tizen. JSON is not necessary for Rich Notification. If you want to set up a two-way communication link between watch and phone, use the Accessory SDK

SDK 中的示例应用程序展示了双方的通信方式。