三星Gear App通讯 [英] samsung gear app communication

查看:103
本文介绍了三星Gear App通讯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算为齿轮和三星银河手机开发一个应用程序(注释3)。
我希望用户能够从所有已安装应用程序的列表中进行选择(就像在三星的齿轮应用程序中一样)。自从我以来,所选应用程序的通知将发送到齿轮,列表中未选择的应用程序的通知将发送到另一个蓝牙设备。

I am planning to develop an app for the gear (s) and a samsung galaxy mobile (note 3). I want the user to be able to choose from a list (same like in the gear app of samsung) of all installed apps. The notifications of the selected apps shall get sent to the gear and the notifications of the apps that are not selected in the list shall get sent to another bluetooth device.

知道三星齿轮的通信非常奇怪,我想问一下我的应用是否可以与齿轮S进行通信以将通知依赖于齿轮。

Since I know that the communication of the samsung gear is very weird, I wanted to ask if it is possible for my app to communicate with the gear S to rely the notifications to the gear.

此外,由于音符3运行android,而齿轮S运行tizen,因此通信外观如何?我是否将通知以JSON格式发送到设备,或者设备如何知道它将显示通知?

Also, since the note 3 runs android and the gear S runs tizen, how does the communication have to look? Do I send my notifications as JSONs to the gear, or how can the gear know that it shall display the notifications?

推荐答案

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

Standard Android notifications are passed to the Gear using the method you describe.

您可以使用一种更深层次的机制,称为丰富的通知。该解决方案的一部分在Android上运行,您可以编写JavaScript Web应用程序以响应Tizen上的消息。丰富通知不需要JSON。如果要在手表和手机之间建立双向通信链接,请使用附件SDK

There is a deeper mechanism that you can use called 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中有一些示例应用程序,显示了双方如何进行通信。

There are sample apps in the SDKs showing how the communication occurs on both sides.

这篇关于三星Gear App通讯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆