Phonegap Windows Phone 8.1 Disable Lock Screen

To prevent your Windows Phone 8.1 from locking out the screen while running your code, you have to do the following:

#1 Open your WP 8.1 phonegap project

#2 Click with your right mous button on MainPage.xaml and choose View Code

#3 In the public function named: MainPage() you add the following line:

#4 Save the code

The mainpage function will look like this after you added the line of code:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.