Skip to content

Commit

Permalink
fix: Remove background mode
Browse files Browse the repository at this point in the history
fixes #1210

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Dec 8, 2023
1 parent 8d69ded commit 9ef21a6
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 44 deletions.
11 changes: 0 additions & 11 deletions android/app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,10 @@
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<access origin="*" />

<feature name="BackgroundMode">
<param name="android-package" value="de.appplant.cordova.plugin.background.BackgroundMode"/>
</feature>
<feature name="BackgroundModeExt">
<param name="android-package" value="de.appplant.cordova.plugin.background.BackgroundModeExt"/>
</feature>

<feature name="Device">
<param name="android-package" value="org.apache.cordova.device.Device"/>
</feature>

<feature name="ForegroundPlugin">
<param name="android-package" value="com.davidbriglio.foreground.ForegroundPlugin"/>
</feature>

<feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/>
</feature>
Expand Down
5 changes: 0 additions & 5 deletions ios/App/App/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<access origin="*" />

<feature name="BackgroundMode">
<param name="ios-package" value="APPBackgroundMode" onload="true"/>
<param name="onload" value="true"/>
</feature>

<feature name="Device">
<param name="ios-package" value="CDVDevice"/>
</feature>
Expand Down
1 change: 0 additions & 1 deletion ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def capacitor_pods
pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
pod 'SendIntent', :path => '../../node_modules/send-intent'
pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
pod 'CordovaPluginsResources', :path => '../capacitor-cordova-ios-plugins'
end

target 'Floccus' do
Expand Down
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@
"async-lock": "^1.2.8",
"async-parallel": "^1.2.3",
"batching-toposort": "^1.2.0",
"cordova-plugin-background-mode": "https://github.com/brunochikuji/cordova-plugin-background-mode#master",
"cordova-plugin-device": "^2.1.0",
"cordova-plugin-foreground-service": "^1.1.3",
"cordova-plugin-inappbrowser": "^5.0.0",
"core-js": "3.x",
"fast-xml-parser": "^4.2.7",
Expand Down Expand Up @@ -124,4 +122,4 @@
"not KaiOS >= 0",
"not Samsung >= 0"
]
}
}
2 changes: 0 additions & 2 deletions src/ui/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Vue.mixin(i18nPlugin)
Vue.mixin(capacitor)

document.addEventListener('deviceready', function() {
// eslint-disable-next-line no-undef
cordova.plugins.backgroundMode.enable()
// eslint-disable-next-line no-undef
window.open = cordova.InAppBrowser.open
}, false)
Expand Down

0 comments on commit 9ef21a6

Please sign in to comment.