Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use PhoneGap/Cordova to make a screen lock?

Tags:

cordova

Very, very new to PhoneGap/ordova. As in the subject, is it possible to use PhoneGap/Cordova to make a screen lock? So someone have to use my app to be able to unlock the screen, so my app will be the default way of unlocking the screen...

like image 833
EricC Avatar asked Oct 21 '22 15:10

EricC


1 Answers

Cordova uses a WebView inside a native app frame to make it look like a native app. This means it's going to be impossible to achieve this without writing some native code outside the realm of HTML / JS / CSS that you'd normally use within a Cordova App.

So in short this won't be possible unless you write your app natively or a plugin that uses native code for Cordova.

like image 89
Kevin S Avatar answered Oct 23 '22 23:10

Kevin S