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

Success called but screen does not lock #7

Open
kamikazekip opened this issue Nov 30, 2016 · 3 comments
Open

Success called but screen does not lock #7

kamikazekip opened this issue Nov 30, 2016 · 3 comments

Comments

@kamikazekip
Copy link

Hey I am trying to lock the screen of Android devices with the plugin you wrote and it does not seem to work. I have this code:

window.screenLocker.lock(function(){
        console.log("SUCCESS LOCK");
    }, function(error){
        console.log(error);
    }); 

The console says: "SUCCESS LOCK".
The screen however does not lock.
Just so we're clear, with lock you and I mean the same thing? That the screen goes to black and the user has to unlock it again?

The device I tested this on was:
Sony xperia z2 tablet wi-fi ( http://www.gsmarena.com/sony_xperia_z2_tablet_wi_fi-6161.php )
Android Lollipop version 5.1.1
Settings --> Developer options --> Stand-by --> turned off

@yurik94
Copy link

yurik94 commented Nov 17, 2017

Same here, not working...

@zjhiphop
Copy link

zjhiphop commented Jun 7, 2018

Any updates?

@kitolog
Copy link
Owner

kitolog commented Jun 7, 2018

Not yet, you may create a pull request and I'll apply it

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

4 participants