Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stewones/capacitor-background-webview-issue
[ios] background plugin cant go over 181 seconds on inactive state
https://github.com/stewones/capacitor-background-webview-issue
background capacitor ionic ios plugin
Last synced: 19 days ago
JSON representation
[ios] background plugin cant go over 181 seconds on inactive state
- Host: GitHub
- URL: https://github.com/stewones/capacitor-background-webview-issue
- Owner: stewones
- Created: 2019-01-30T14:24:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T21:19:58.000Z (almost 6 years ago)
- Last Synced: 2024-11-10T01:42:17.392Z (3 months ago)
- Topics: background, capacitor, ionic, ios, plugin
- Language: TypeScript
- Homepage: https://github.com/ionic-team/capacitor/issues/1184
- Size: 318 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# capacitor background bug
currently capacitor's background plugin cant go over 181 seconds, this is a simple example reproduction.
## error
```
[ProcessSuspension] Background task expired while holding WebKit ProcessAssertion (isMainThread? 1).
```## video
[https://youtu.be/gayExMdm7uY](https://youtu.be/gayExMdm7uY)
## steps
- git clone this repo
- npm install
- cd ios/App
- in Podfile change the capacitor's path to your own. I couldnt run the currently capacitor beta17 version due to swift 4.2 incompatibilities (would require a lot of changes) so I'm running from [my own capacitor stable repo](https://github.com/stewwan/capacitor-stable). Feel free to fork and test.
- pod install
- ionic cap run ios
- check in xcode the capabilities `Background fetch`, `Audio, Air, and Picture in Picture`relevant code is located at `src/app/background.service.ts`