언어 설정

Menu
Sites
Language
Notifications on Gear S in Gear only mode ?

Hi, I've found instructions very unclear about notification handling with a Samsung Gear S.

On one side, I've eard that notifications can't be handled with the Wearable sdk. in the Gears S specifications, it's written :

OS

Tizen based wearable platform

(Source :  http : //www . samsungmobilepress . com/2014/08/28/Samsung-Gear-S-Enhances-the-Smart-Wearable-Experience-1)

Does that mean that the OS IS Wearable and can't use Notifications, or the "based wearable" means that even tho it's wearable, it include Notifications aswell ? in the support we can see :

Galaxy Gear: What Operating System version does my Samsung Gear S™ have?

THE FOLLOWING ENHANCEMENTS HAVE BEEN ADDED:

[...]

  • RICH Notification
    - Notifications from 3rd party messenger applications have new actions

(Source : http : //www . samsung . com/us/support/faq/FAQ00075854/114726/SM-R750VZWAVZW)

Second question : I followed the guide in the Notification's API, code bellow :

try {
              var appControl = new tizen.ApplicationControl(
                               "http://tizen.org/appcontrol/operation/create_content",
                               null,
                               "image/jpg",
                               null);
              var notificationDict = {
                          content : "This is a simple notification.",
                          iconPath : "images/image1.jpg",
                          soundPath : "music/Over the horizon.mp3", 
                          vibration : true, 
                          appControl : appControl};
               
              var notification = new tizen.StatusNotification("SIMPLE", 
                          "Simple notification", notificationDict);
                               
              tizen.notification.post(notification);
         } catch (err) {
              console.log (err.name + ": " + err.message);
         }

(Source : https : // developer . tizen . org/dev-guide/2.3.0/org . tizen . web . apireference/html/device_api/mobile/tizen/notification . html)

I have the error : TypeError: 'undefined' is not a constructor (evaluating 'new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict)'), wich I think means that StatusNotification doesn't exists in the Wearable library.

 

The thing that bugs me is I can't imagine an "independant" smartwatch that can not handle notifications from apps, that would be completly useless IMO...

So, is there any way to develop notifications for application, wether they are Push notifications, or Local notifications that I can create ?


Thanks,

답변 바로가기

Responses

5 댓글
Mark as answer
daniel kim

Hi,

AFAK Gear S use Tizen 2.2.1. but native api is not supported.

StatusNotification () api is for tizen mobile version and you can find api reference in the help page of wearable SDK 1.0.0.

 

f.y.i  This link has a notification sdk for Gear S.

   http://developer.samsung.com/galaxy#rich-notification

 

Regards

Armand LOT

Thanks for the link,

Ok, so notifications can only been shown on the Grear S through the android app on the smartphone...

AVSukhov

hello,

Yes, you are right. Yoa can send notification from provider app to gear using Rich Notification SDK

Marco Buettner

Rich Notification != Notification

You look at the 2.3.0 documentation but in the mobile section not the wearable section? That logic I will never understand... The wearable has only badge as "user interaction" API. Notification isnt available on wearables... but u can use rich notification :)

Armand LOT

Well in the case of Gear S, I don't really know wether the device is Wearable or Mobile due to the fact this smartwatch is supposed to be "independant". That's why I'm really confused about that..

You made it clearer tho, thank you ! "Gear S is wearable, and can only show natice notifications through the Rich Notification system wich works paired with a mobile phone".