samsung gear app communication

喜夏-厌秋 提交于 2019-12-14 03:24:19

问题


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.

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.

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?


回答1:


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

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.

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



来源:https://stackoverflow.com/questions/27877223/samsung-gear-app-communication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!