Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on IOS #6

Open
SrineeshZebpay opened this issue Dec 8, 2021 · 5 comments
Open

Not working on IOS #6

SrineeshZebpay opened this issue Dec 8, 2021 · 5 comments

Comments

@SrineeshZebpay
Copy link

When checking for screen is locked or not the output is not exactly right. It is always showing false.

Device:L iphone 13 simulator
I am currently running the examplt app and as you can see the issue.

We also experienced Exception FormatException: Unexpected character error when running the islock screen function.
.[](ur
Screenshot 2021-12-08 at 5 50 50 PM
l)

@aliakkawi
Copy link

It is working on real iOS device!

@khang-dev
Copy link

@aliakkawi I'm still getting the same issue on real iPhone devices

@sahilgarg156
Copy link

This logic work on brightness value=0.0, So please check once with the black lock screen of the Real device.

@LassazVegaz
Copy link

In the documentation it has mentioned that minimum brightness the user can manually set is 0.1
Unfortunately that is not true for iPhone 10. I debugged and checked, when I manually set the screen brightness to the lowest, UIScreen.main.brightness is 0.0
Have to check a different approach

@LassazVegaz
Copy link

In the documentation it has mentioned that minimum brightness the user can manually set is 0.1
Unfortunately that is not true for iPhone 10. I debugged and checked, when I manually set the screen brightness to the lowest, UIScreen.main.brightness is 0.0
Have to check a different approach

A different approach is to use isProtectedDataAvailable but it will work only if there is a password, pin, etc...
Since this thread is not active, I am not explaining further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants