언어 설정

Menu
Sites
Language
Wondering Ways to Run in the background

Hi everyone.

Recently I want to make an online media player with Tizen Web App supported by html5 and js on gear s.

Till now All Codes act well when screen is on. However, the whole software would be hung up if the screen automatically turned off or just when you push it into background by pressing the home button. As a result, the music can't be played fluently.

This makes me mad. Could anyone give me some advice to keep the software running just like the samsung music player? (PS. Don't give me the suggestion sounds like 'keep press the screen to make sure it is on'... Ahhh)

Thx.

Responses

2 댓글
AVSukhov

Hello,

Add background-support="enable" property to tizen:settings tag in your config.xml 

Nafisul Islam Kiron

Hello, as far as I know music application with online activity is usually done in foreground applications. This type of app goes to standby if no activity is detected in foreground. Service apps are used for constant background activity.

If you want to make a background supported app, from your app "connfig.xml" go to

Tizen (tab) >> setting >> background-support >> enable

Alternatively you can add

<tizen:setting background-support="enable" encryption="disable" hwkey-event="enable"/>

in "config.xml" source code within <widget> tag.