alarm icon indicating copy to clipboard operation
alarm copied to clipboard

Package makes the app bypass the phone's lock screen

Open sidali-dev opened this issue 6 months ago • 2 comments

version 3.1.4

First of all i would like to thank you for the package, it is really helpful and easy to use.

Basically whenever i try to lock my screen while in the app and unlock it back again, the app bypasses the phones lock, now i know this is a result of setting these 2 in the android manifest file to true, so the alarm would display normally: android:showWhenLocked="true" android:turnScreenOn="true"* but it has created this side effect where now all the app bypasses the phone lock.

I expected to find other people mentioning this but it appears am the only one here, i have tried to use different devices and the problem is still occurring.

I have tried using a Pixel 7 and an Honor 7x and a OnePlus Nord N20, with the same result, though i haven't really try to test on any emulators or IOS devices.

The Only possible fix i can think of due to my small experience in native android, is to create a new activity that is dedicated to showing the alarm screen, and setting the needed attributes up in it. this way we can definitively separate the unwanted attributes from the main activity, though i have never tried to build a flutter app with 2 activities and what possible effects it could cause.

sidali-dev avatar Jul 26 '24 15:07 sidali-dev