Languages

Menu
Sites
Language
Get incoming notyfication
Hi How to get incoming notyfication on Samsung Wearable (WATCH). For example email,sms notyfication

Responses

6 Replies
André Reus

If you pair your Wearable device with your android/iphone device through Galaxy Wearable app, you can manage these. 

1.

2. 

3. 

Mateusz Pre
OK this Im aware. I didnt write it that I would like to do it by my aplication code. I wanted to do it like this but it's not working :( 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); } config.xml
André Reus

Are you getting any error ? or simply not working ? 

Mateusz Pre

Simply do not work. So it should work properly. For clarity when the notyfication come to watch for example mail from gmail an displayed on the watch because of the default behavior of apps installed on my watch I should still get the all notyfication what comes from that piece of code when i run my aplication?

var notifications = tizen.notification.getAllNotifications();

MyContinar.innerHTML = stringify(notifications);

------

config.xml has privilage notyfication

André Reus

I tried too!! But i was able to get the notifications that i have posted through notification api!! 

Mateusz Pre

If I send message from sample code caller and callee I have the notyfication too but this is not that case. 

What I want is to get notyfications from example incoming message or email. 

Try This scenario:

Send the email to your email account. If your phone get it then send notyfication to your watch that you 

have new mail. I want that notyfication to read by my (another not default)  aplication. 

I assume that above code is getting all notifications what is stored on the watch right now.

Thank you for your help and patience André