Renamce enableGeoLocation -> disableWebViewOptimizations

This commit is contained in:
Sebastián Katzer
2017-01-02 16:32:51 +01:00
parent 4b2db271c1
commit 626776f60b
2 changed files with 5 additions and 5 deletions

View File

@@ -93,9 +93,9 @@ exports.configure = function (options) {
/**
* Enable GPS-tracking in background (Android).
*/
exports.enableGeoLocation = function () {
exports.disableWebViewOptimizations = function () {
if (device.platform == 'Android') {
cordova.exec(null, null, 'BackgroundMode', 'enableGeoLocation', []);
cordova.exec(null, null, 'BackgroundMode', 'disableWebViewOptimizations', []);
}
};