Is it possible to open an app using Alarm manager even when the phone is locked ?
I tried this in the callback function of alarm manager, this worked when the screen is not locked.
But doesn't work when the phone is locked.
static Future<void> callback() async {
print('Alarm fired!');
final AndroidIntent intent = AndroidIntent(
action: 'action_view',
data: Uri.encodeFull('https://.....'),
package: 'com.example.app',
);
await intent.launch();
}