Check the caller App ID when App is launch by Alarm Manager

Check the caller App ID when App is launch by Alarm Manager

BY 17 Jul 2015 Native Application Development

Hi All,

I have developed a service app for Samsung Z1.

I want to validate each app control coming to my service app.

I am triggering the service app using Alarm manager at specific interval.

When this service app gets triggered I am calling blow API.

int ret = app_control_get_caller(app_control, &app_id_chars);

But above API is failing. How can I validate that this Application is launched by alarm manager and not by other app.

Written by