언어 설정

Menu
Sites
Language
Voice Recorder app to work in the background

How can I make the Tizen sample VoiceRecorder app to work in the background? I want to record the voice even when this app is in the background and some other app is in the foreground. How can I modify the existing VoiceRecorder app to work accordingly on Samsung Gear S? Is there any API to do that?

Responses

5 댓글
Seoghyun Kang

Hello,

 

If you want to develop the application that run in the background, you need to create the service application.

You can find the information at the following url.

https://developer.tizen.org/documentation/tutorials/web-application/tizen-features/service-application

 

 

But the support of the service web application  is optional on the commercial device. And I know that it is very limited use.

So I think you can not use the service web application on the wearable profile now.

 

 Best regards,

Seoghyun Kang

 

 

daniel kim

Hi,

Please add this one into config.xml. then your application will work in background as well.

    <tizen:setting background-support="enable" />

Regards

 

Seoghyun Kang

Because this is the web service on the wearable profile,  the use of the app service is very limited now.

I expect that it will be more limited in future.

 

So I recommend that you develop the native application if you want to create the app service.

AVSukhov

Hello,

You can use background-support="enable" in case if your app is launched.

In case if your app is terminated or not launched you cannot use it in background.

For use web service you need partner privilege.

Palitsyna

Hello,

You can make your web app to run in background by setting background-support property in config.xml file. 

<tizen:setting background-support="enable" />

When you set it, your app will be run even the screen is turned off. Web application execution is not suspended when the application is sent to the background. To set screen on you can use method from tizen power API. But you should remember that when your app is in background, your document is not visible (other app is focused and covers yours).

Or you can create a service application. A service application is a type of Tizen Web application that provides an environment for running JavaScript in the background without a graphical user interface. The service application is used to perform tasks which need to run periodically or continuously but do not require user interaction. More information about this you can find here:
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.guides/html/web/tizen/service/service_w.html
The wearable service application requires partner-level certification in Tizen 2.3.