语言

Menu
Sites
Language
native notification api Samsung Gear 2 Watch

I want to integrate with the native Samsung Gear 2 Notifications such that when my consumer app in the Samsgung Gear 2 Watch receives a certain data from my host provider, the User will get a Notification in the Native notifications app. How can I accomplish this?

I've spent 50+ hours googling, looking up docs, etc but there doesn't seem to be an answer. The best resource I could find are the links below, but even these seem outdated and don't work at all.

So I've been following these Guides but neither of them work for me :

https://developer.tizen.org/fr/documentation/articles/how-use-tizen-notification-api?langswitch=fr

also

https://developer.tizen.org/fr/documentation/articles/notifications?langredirect=1

The error I receive when running the sample code they provided:

TypeError:'undefined' is not a constructor (evaluating 'new tizen.StatusNotification("SIMPLE", "Simplenotification",notificationDict)')

响应

7 回复
AVSukhov

Hello,

As i known Tizen wearable SDK has no Notification API

Charles Charles

But I know it is possible. Take the CNN Third Party App for example. After you download it and install it, you will start receiving notification in your NATIVE Gear Notification App.

Chris Schoenfeld

The NewsRepublic app does this as well, so its absolutely doable.

I think it involves proxying the incoming Android notification through Samsung Mobile API.

This and HTTP proxying through Bluetooth should be well-covered topics in the Samsung Gear 2 developer documentation, but neither are.

Charles Charles

There we go. Finally someone who's on the same page as me. Glad to know I'm not alone. Hopefully we can find some answers soon!

Gal Levinsky

Please ping if you manage to find out how to trigger the Notification API in wearable.

For some reason it is included in the Tizen SDK, however not in the wearable version..

Chris Schoenfeld

So, it turns out the native Gear notifications are a private API only documented for some Samsung partners.

 

Chris Schoenfeld

Just to clarify - the Notifications app on the watch is a Samsung application, not Tizen, and access requires nonpublic Samsung code.