Widget

Is there a way to check if the app is running in background using the widget?

You can check out the Application API for this purpose.

Try the below code and match your appid…

function onRunningAppsContext(contexts)
{
  for (var i = 0; i < contexts.length; i++)
  {
    console.log("ID: " + contexts[i].id);
  }
}

tizen.application.getAppsContext(onRunningAppsContext);