navigator.wakeLock.request("system").then(
                function successFunction() {
                    $log.info('Preventing system to sleep is enabled');
                },
                function errorFunction() {