언어 설정

Menu
Sites
Language
background service

Please tell me how to do so if the application is hidden (but not stopped) started to work a certain js file
but if the application is opened, the file should not work

 

it is service or web worker or what?

 

Responses

6 댓글
Marco Buettner

Its WebWorker.

Fedor Efimenko

if I close the app, do a web worker is going to work?

Fedor Efimenko

I think that the web worker is wrong solution

I need to make a connection to the server (long poll) and generate notifications, when necessary
web worker is exactly can solve this problem?

Marco Buettner

No WebWorker doesn't work if the app closed. In your case I think is a native Service-App the best solution.

Fedor Efimenko

possible to do it on a hybrid application?

Raghavendra Reddy Shiva

Yeah you can have the native application as service in a hybrid apps. Below article for reference,

https://developer.tizen.org/documentation/articles/accessing-native-audio-playback-and-recorder-controls-web-applications