I am totally new to Javascript and Tizen webapp in general. I have developed an application which is supposed to call an api to fetch data from internet. (the fetching part is working fine). The problem is how do I call that api periodically (say once every day) when the app is closed and if the fetched data contain some particular pattern, I have to notify user. I know there is ALARM api for that but it launches the complete application with UI after the period which I do not want. I just want to call that api in background to fetch data and then notify user about it.
I have seen docs related to services, but that has some concepts of “module.exports” and all which are out of my understanding. Could somebody please tell how to start/launch the service and in which part of the code I need modification ?
and this is the tutorial I am following https://developer.tizen.org/documentation/wearable-web-app-programming/tutorials/web-service-application-tutorial which explains the creation, packaging, launching of the service ?
Also tell me if I need Service at all for the required purpose ?
Note: When I tried to launch service using
tizen.application.launchAppControl(new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/service"),
"CrcN9FCNmp.service",
function() {alert("Launch Service succeeded"); },
function(e) {alert("Launch Service failed : " + e.message);});
it says, “Launch Service Failed: given package is not found” !
Tizen web app service
Hi,
I am totally new to Javascript and Tizen webapp in general. I have developed an application which is supposed to call an api to fetch data from internet. (the fetching part is working fine). The problem is how do I call that api periodically (say once every day) when the app is closed and if the fetched data contain some particular pattern, I have to notify user. I know there is ALARM api for that but it launches the complete application with UI after the period which I do not want. I just want to call that api in background to fetch data and then notify user about it.
I have seen docs related to services, but that has some concepts of “module.exports” and all which are out of my understanding. Could somebody please tell how to start/launch the service and in which part of the code I need modification ?
My config.xml looks like this:
and this is the tutorial I am following https://developer.tizen.org/documentation/wearable-web-app-programming/tutorials/web-service-application-tutorial which explains the creation, packaging, launching of the service ?
Also tell me if I need Service at all for the required purpose ?
Note: When I tried to launch service using
it says, “Launch Service Failed: given package is not found” !
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio