언어 설정

Menu
Sites
Language
How to open app from background?

Hello.

I have an app that measure your BPM (and other stuff like inactivity…) and I have my own notification page. Simply if your BPM is over the range or you are few minutes inactivity or you take off your watch = notification page shows up → make sound → make vibrate and start timer from 30 second to 0. There is button and you can cancel this notification. This work perfect when you have opened this app and you are looking at it (or if you leave it and screen goes to clock´s screen and you turn your wrisp - this app is shows up).

There is one problem. If you click home button on your watch and you are on “home” screen when you see other apps or you go to other app, other settings (whatever) - my app is still on background and still measure your BPM. When you are over the limit - I can hear sound and vibrate (so my notification page is opened and started counting down…) BUT my app is still on background. I, as user, need click on icon app to open it and see the notification page.

I need somehow force open my app when my notifications shows up. Simply something like this:

if this app is not visible (not on screen) - open this app.

It is possible to do it…?

답변 바로가기

Responses

2 댓글
Mark as answer
Tizen .NET

Hi,
You can use AppControl.SendLaunchRequest() to make your app visible on Galaxy Watch's screen.
http://tizen.org/privilege/appmanager.launch
This privilege should be declared in tizen-manifest.xml file.

 

mommek
       public void OpenMyApp()
        {
            AppControl appControl = new AppControl();
            appControl.ApplicationId = "org.tizen.example.yyy";
            AppControl.SendLaunchRequest(appControl);
        }

thank you!! working!