Service in a Combined Package not starting

Service in a Combined Package not starting

BY 15 Feb 2017 Native Application Development

Hi, 

I created Combined Package with Native Service and Native UI app, following these steps: https://developer.tizen.org/development/training/native-application/application-development-process#develop

Service:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4" package="org.miney.appsaver" version="1.0.0">
<profile name="mobile"/>
<service-application appid="org.miney.appsaver" auto-restart="true" exec="appsaver" multiple="false" nodisplay="true" on-boot="true" taskmanage="false" type="capp">
    <background-category value="sensor"/>
</service-application>
<privileges>
	<privilege>http://tizen.org/privilege/display</privilege>
</privileges>
<feature name="http://tizen.org/feature/screen.size.all">true</feature>

UI App

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4" package="org.miney.appsaverui" version="1.0.0">
    <profile name="mobile"/>
    <ui-application appid="org.miney.appsaverui" exec="appsaverui" launch_mode="single" multiple="false" nodisplay="false" taskmanage="true" type="capp">
        <label>appsaverui</label>
        <icon>appsaverui.png</icon>
    </ui-application>
    <feature name="http://tizen.org/feature/screen.size.all">true</feature>
</manifest>

Combined Manifest:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4" package="org.miney.appsaverui" version="1.0.0">
    <profile name="mobile"/>
    <ui-application appid="org.miney.appsaverui" exec="appsaverui" launch_mode="single" multiple="false" nodisplay="false" taskmanage="true" type="capp">
        <label>appsaverui</label>
        <icon>appsaverui.png</icon>
    </ui-application>
    <service-application appid="org.miney.appsaver" auto-restart="true" exec="appsaver" multiple="false" nodisplay="true" on-boot="true" taskmanage="false" type="capp">
        <background-category value="sensor"/>
    </service-application>
    <privileges>
        <privilege>http://tizen.org/privilege/display</privilege>
    </privileges>
    <feature name="http://tizen.org/feature/screen.size.all">true</feature>
    <feature name="http://tizen.org/feature/sensor.accelerometer">true</feature>
    <feature name="http://tizen.org/feature/sensor.proximity">true</feature>
</manifest>

 

but only UI app is starting and service not. Separately service was working fine so this is not a service code related bug. Documentation says:

The service or widget application is built and run automatically while the UI application is built and run.

Thanks for your help.

Written by