diff --git a/package.json b/package.json index ebbedf3..e41184f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-background-mode", - "version": "0.7.2", + "version": "0.7.3", "description": "Prevent apps from going to sleep in background.", "cordova": { "id": "cordova-plugin-background-mode", @@ -42,4 +42,4 @@ "url": "https://github.com/katzer/cordova-plugin-background-mode/issues" }, "homepage": "https://github.com/katzer/cordova-plugin-background-mode#readme" -} \ No newline at end of file +} diff --git a/plugin.xml b/plugin.xml index ee45773..f4b8275 100644 --- a/plugin.xml +++ b/plugin.xml @@ -3,13 +3,13 @@ + version="0.7.3"> BackgroundMode Prevent apps from going to sleep in background. - https://github.com/katzer/cordova-plugin-background-mode.git + https://bitbucket.org:TheBosZ/cordova-plugin-run-in-background.git appplant, background diff --git a/src/android/BackgroundModeExt.java b/src/android/BackgroundModeExt.java index 25965e4..d8ed1a1 100644 --- a/src/android/BackgroundModeExt.java +++ b/src/android/BackgroundModeExt.java @@ -173,7 +173,7 @@ public class BackgroundModeExt extends CordovaPlugin { try { Thread.sleep(1000); getApp().runOnUiThread(() -> { - View view = webView.getEngine().getView(); + View view = webView.getView(); try { Class.forName("org.crosswalk.engine.XWalkCordovaView")