向 Gear 2 发送通知 [英] Send Notification to Gear 2

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

问题描述

所以在 http://img-developer.samsung.com/contents/cmm/SamsungGearApplication_UID...

我找到了通知面板.我的手机上有一个主机 android 应用程序.有人可以向我指出如何将我的 Android 应用程序生成的通知发送到手表上的指南/教程吗?我的设置是主从链接应用程序.而一旦用户按下手表上的通知,它就会拉出相应的Gear 2 App?

I've found the notifications panel. I have a host android app on my phone. Can someone point me to a guide/tutorial on how to get the notification produced by my Android App onto the Watch? My setup is Master-Slave Linked App. And Once User pressed the notification on the watch, it will pull up the corresponding Gear 2 App?

2.2.通知与手机的通知面板不同,通知应用替代了 Gear 中的功能.齿轮的通知放置在时钟右侧的主屏幕上,用户可以更改其位置.它的通知与连接设备的通知面板同步.未读通知数显示在徽章上.如果用户在任一设备上阅读通知,则两台设备上的阅读通知设备将消失或被标记为已读.用户可以在Gear"中选择要在 Gear 上显示的通知经理'.

2.2. Notifications Unlike the phone’s notification panel, Notifications app substitutes for its function in Gear. Gear’s notifications are placed on the home screen to the right of the clock and users can change its position. Its notifications are synced with the connected device’s notification panel. The numbers of unread notifications are displayed on the badge. If a user reads notifications on either device, the read notifications on both devices will disappear or be marked as read. Users can choose which notification to show on Gear in ‘Gear Manager’.

当用户的移动设备未通过蓝牙连接到 Gear 时,收到来电通知电话/信息不会发送到 Gear.重新连接后,用户没有错过的任何通知在他们的移动设备上阅读的内容将被发送到 Gear.Gear Manager 中的限制通知"选项停止当用户使用他们的移动设备时,通知被发送到 Gear.

When users’ mobile device is not connected to the Gear via Bluetooth, notifications of incoming calls/messages will not be sent to the Gear. After reconnecting, any missed notifications that users have not read on their mobile device will be sent to the Gear. ‘Limit notifications’ option in Gear Manager stops notifications being sent to the Gear when users are using their mobile device.

推荐答案

所以你不能从 watch 访问 Notification API,它是私有的.您可以只从齿轮 2 启用推送通知,然后将定期推送通知发送到您的手机.然后它会被齿轮 2 捡起.这是你能做的最好的事情.

So you can't access the Notification API from watch, it is private. You can just enable push notifications from gear 2, and send regular push notification to your phone. It will then be picked up by the gear 2. This is the best you can do.

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

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