gree / gree/unity-webview

Webview is not rendered on iOS

Open
#677 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

Webview is not rendered on iOS if its visibility is initially set to false (reproduced on iPhone 6S 13.6, iPhone XR 14.1, iPad 7gen 14.3 and iPhone SE 14.4).

Steps to reproduce:

  1. Init webview
  2. Set its visibility to false
  3. Load HTML
  4. After loaded, set webview visibility to true.

Actual result:
Changing visibility has no effect, but webview plays sound and catches user input. Triggering UI update (eg. pressing volume buttons, using gestures, unlocking, etc.) makes webview visibile. Not reproduced if visibility set before page loaded - probably, it forces UI update in some way.

Not sure how iOS UI works, but, I guess, visibility change is applied outside of UI thread and it's not visible until another UI update is triggered.

Contributor guide

No contributing guide indexed for this repository

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 reproducing the four steps on the listed iPhone and iPad versions, focusing on the iOS webview visibility transition after HTML loading. Trace the webview initialization, visibility change, and UI-update path. Done means the webview renders immediately when visibility changes to true, without requiring an external UI event.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, unity
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.