@capacitor/background-runner 1.0.1-dev-20230731T150028.0 → 1.0.1-dev-20230731T175405.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/plugin.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -186,6 +186,11 @@ In addition to the standard Web APIs, Background Runner also supports a number o
|
|
|
186
186
|
|
|
187
187
|
Currently, the runners are designed for performing periodic bursts of work while your app is in the background, or for executing asynchronous work in a separate thread from your UI while your app is in the foreground. As a result, runners are not long lived. State is not maintained between calls to events in the runner. Each call to `dispatchEvent()` creates a new context in with your runner code is loaded and executed, and once `completed()` is called, the context is destroyed.
|
|
188
188
|
|
|
189
|
+
## Android Battery Optimizations
|
|
190
|
+
Some Android vendors offer built-in battery optimization settings that go beyond what stock Android provides. Some of these optimizations must be disabled by your end users in order for your background tasks to work properly.
|
|
191
|
+
|
|
192
|
+
Visit [Don't kill my app!](https://dontkillmyapp.com) for more information on the affected manufacturers and steps required by your users to adjust the settings.
|
|
193
|
+
|
|
189
194
|
## Limitations of Background Tasks
|
|
190
195
|
|
|
191
196
|
It’s not possible to run persistent, always running background services on mobile operating systems. Due to the limitations imposed by iOS and Android designed to reduce battery and data consumption, background tasks are constrained with various limitations that you must keep in mind while designing and implementing your background task.
|
package/dist/plugin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/background-runner",
|
|
3
|
-
"version": "1.0.1-dev-
|
|
3
|
+
"version": "1.0.1-dev-20230731T175405.0",
|
|
4
4
|
"description": "Capacitor Background Runner",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"postinstall": "node ./scripts/install_libs.js"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@capacitor/android": "^5.2.
|
|
51
|
-
"@capacitor/cli": "^5.2.
|
|
52
|
-
"@capacitor/core": "^5.2.
|
|
50
|
+
"@capacitor/android": "^5.2.2",
|
|
51
|
+
"@capacitor/cli": "^5.2.2",
|
|
52
|
+
"@capacitor/core": "^5.2.2",
|
|
53
53
|
"@capacitor/docgen": "^0.0.18",
|
|
54
|
-
"@capacitor/ios": "^5.2.
|
|
54
|
+
"@capacitor/ios": "^5.2.2",
|
|
55
55
|
"@ionic/eslint-config": "^0.3.0",
|
|
56
56
|
"@ionic/prettier-config": "^1.0.1",
|
|
57
57
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
58
|
-
"eslint": "^7.
|
|
59
|
-
"prettier": "~2.3.
|
|
58
|
+
"eslint": "^7.32.0",
|
|
59
|
+
"prettier": "~2.3.2",
|
|
60
60
|
"prettier-plugin-java": "~2.1.0",
|
|
61
61
|
"rimraf": "^3.0.2",
|
|
62
|
-
"rollup": "^2.
|
|
62
|
+
"rollup": "^2.79.1",
|
|
63
63
|
"swiftlint": "^1.0.2",
|
|
64
64
|
"typescript": "^5.1.6"
|
|
65
65
|
},
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"src": "android"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e954d30817185152c5ff0c63cd9bc7a6e3b5cfa0"
|
|
83
83
|
}
|