aframevr / aframevr/aframe

On iOS devices only, black assets when programmatically creating assets. Works fine on any other browser

Open
#4,708 4 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

I am creating assets programmatically and would like to continue doing that. I know that the <a-asset> tag is preloading the data but I would like it created at load. For example (see URL below) the first link works fine creating it via javascript. On browsers, android phones, etc. it loads the assets just fine. When you load it up on iPhone the asset is blacked out. I assume only that the asset isn't loading. I tried playing with timeouts on assets but that does not seem to work. When you manually insert the <img> tag in the body, it will load the asset fine. The second URL shows that it works when I enter the data in statically.

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 loading the dynamic and static reproduction URLs on an iPhone and compare how their assets are created and loaded. Trace the asset-loading path used by programmatically created elements; done means those assets render normally on iOS while preserving the existing behavior on other browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.