언어 설정

Menu
Sites
Language
Control Player from Notification Bar

Hello.

I see that the default player can be controlled from notification bar, when it is playing something.

Does someone can explain how can i create buttons on notification bar that call some function (in javascript) from my application?

 

 

Tks for the help.

Responses

9 댓글
Vikram

Hi,

I think it is hard to create buttons on notification bar, because I have never found the way to do it. The notification bar contain the contents for example "Wi-Fi", "Location", "Flight mode" were preset in system.

In addition, if you want learn more for notification, you can refer to the https://developer.tizen.org/development/articles/notifications

More detail info and good code example can be found.

Seungkeun Lee
Palitsyna

Hello,

I've never heard about such possibility. I agree with Vikram, even if it is possible, I think it will be hard to implement such approach. 

Anyway, if you want to try to do something with notifications, here is an article with sample code: https://developer.tizen.org/development/articles/how-use-tizen-notification-api?langredirect=1 . 

AVSukhov

Hello,

I think this isn`t possible using Web API. Web notification API supports only Status notification.

I advise you to look at the Native API.

Vikram

Hi,

Using Native API may be more flexible to control notification, you can refer to https://developer.tizen.org/development/tutorials/native-application/application-framework/notification

can get more info about it.

Palitsyna

Hello,

Just FYI, Notification Guide for Native applications could be found here: https://developer.tizen.org/development/guides/native-application/application-framework/notification

 

AVSukhov

According documenation using Tizen SDK 2.4b may be used Active notification type:

https://developer.tizen.org/dev-guide/2.4b/org.tizen.guides/html/native/app/notification_n.htm

Vikram

Hi,

I also found the Action Notification is new feature for Tizen 2.4, I think it new api for implement the function which you want in native application.

Please refer to https://developer.tizen.org/dev-guide/2.4b/, Tutorials->Native Application->Application Framework->Notification and learn chapter of "Adding a Button on the Active Notification". It include api illustrate and code example.

Palitsyna

Hello,

just FYI, here you can find API for Notification: https://developer.tizen.org/dev-guide/2.4b/org.tizen.native.mobile.apireference/group__NOTIFICATION__MODULE.html

And do not forget that Tizen Notification API requires the http://tizen.org/privilege/notification privilege.