fr3sh
fr3sh

Reputation: 363

Tizen get incoming notyfication

How to get incoming notyfications on tizen werable (watch). For example emails, sms.

This dont work:

var notifications = tizen.notification.getAllNotifications();
var index = 0;

for (index = 0; index < notifications.length; index++) {
      console.log(notifications[index].id);
console.log(notifications[index].title);
}

Upvotes: 0

Views: 134

Answers (1)

msalt.net
msalt.net

Reputation: 106

General application can NOT get notification of other applications due to security issue. Special applications ONLY have the privilege for it. e.g. pre-loaded w-home application which is in charge of the wearable home screen.

Application can only get notifications of own application as it is mentioned in official reference guide.

To retrieve a previously posted notification, use the getNotification() method of the NotificationManager interface (in mobile and wearable applications with the notification ID as a parameter:

Notifications - Tizen Developers

Upvotes: 1

Related Questions