wakelock causes NSURLErrorDomain in cordova app on iOS 13+
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
- A-Frame Version: 1.0.4
- Platform / Device: iOS 13+, iPhone 7
window.location.href = '/' used by wakelock causes NSURLErrorDomain errors in cordova applications on iOS 13+.
In a clean cordova application it produces the error code -1101 which you only see in xcode logs.
But if you use Ionic webview plugin it ends up in an error code -999 of which the user will be informed by a system message on each wakelock interval. Therefore it's not possible to use a daydream or any other similar vr headset.
In our case removing the iOS wakelock solved the problem and vr mode works fine on iOS 12 & 13, in cordova apps and webbrowsers firefox, chrome and safari.
Maybe it can be removed anyway?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the wakelock code that uses window.location.href = '/' and reproduce it in a Cordova app on iOS 13+. Check that the change prevents the NSURLErrorDomain errors and Ionic system messages while daydream or VR mode continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100