语言

Menu
Sites
Language
App is restarting when it is in background
Hi everyone. Currently I am working with a tizen hybrid app in tizen version 2.3.1. When app is running, i sent it to background and it continues running. But after a few moment, the app restart again. How can i ensure that a hybrid app can run infinite time as a background app??

响应

3 回复
Armaan-Ul- Islam

Recently, Tizen OS enhanced restricting CPU resources for background application processes.

Now, this restriction is based on background categories that are specified in the application manifest. At least from your end what you can do is "To Add specific background-category on your application manifest that may describe to OS why not to kill your background process."

For example: In case of config.xml:

i) 'Tizen' Tab > Settings > Background-support : enable

ii) 'Tizen' Tab > Background-Category > Add Category (which is explanation to why you need background support)

 

This is what I can share from my experience. System may keep killing your app in background for power optimization, unless it is explained clearly why not to do so.

Mahabub Zoraf

How can I enable background support enable in tizen manifest?? can you plz give an example?? 

Armaan-Ul- Islam

Sure.

In Tizen-Manifest.XML, go to 'Advanced' Tab > 'Background Category' > '+' > Chose relevant category.