aframevr / aframevr/aframe

wakelock causes NSURLErrorDomain in cordova app on iOS 13+

Open
#4,459 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.