Auto-restart and on-boot for service applications on Wearable

Auto-restart and on-boot for service applications on Wearable

BY 21 Feb 2018 Native Application Development

I want to have a service (without UI) that starts after boot and restarts if it was killed. The service has background-category specified.

 

According to https://developer.tizen.org/development/guides/native-application/application-management/applications/service-application the ‘on-boot’ and ‘auto-restart’ properties are not available for Wearable. 

 

In the forum it was suggested  to use a workaround with the Alarm API. See https://developer.tizen.org/forums/native-application-development/wearable-start-service-application-restart and https://developer.tizen.org/forums/native-application-development/on-boottrue-not-work-tizen-2.3.2 However, the Alarm API does not allow to trigger service applications, just UI applications. This is documented here: https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/3.0/org.tizen.native.mobile.apireference/group__CAPI__ALARM__MODULE.html (search for ALARM_ERROR_NOT_PERMITTED_APP

 

So far as I can see, this makes an always-on pure service application impossible. It always requires a companion UI application. Does anybody have an idea to workaround the missing ‘on-boot’ and ‘auto-restart’ behaviour for pure service applications?

Written by