From d2aa71333b4a15ed16d748fc000e216da198dfdd Mon Sep 17 00:00:00 2001 From: Viras- Date: Fri, 20 Sep 2013 18:53:58 +0200 Subject: [PATCH] [WP] run under lock screen as well --- src/wp/PowerManagement.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp/PowerManagement.cs b/src/wp/PowerManagement.cs index 50f736f..2ca0cd0 100644 --- a/src/wp/PowerManagement.cs +++ b/src/wp/PowerManagement.cs @@ -32,6 +32,7 @@ namespace Cordova.Extension.Commands { public void acquire(string options) { PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; + PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; DispatchCommandResult(); }