gree / gree/unity-webview

Can't access the .html file in Android. I'm opening a local webpage that I intend to modify and update at regular intervals.

Open
#312 2 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

I used filePath = Application.streamingAssetsPath + "/" + fileName; as the location to access the Streaming Assets from Unity. This doesn't work though. Is there anything I'm missing?

"If you have a "StreamingAssets" folder in the "Assets" folder of your project, it will be copied to your player builds and be present in the path given by "Application.streamingAssetsPath"." - documentation

So, when your "SampleWebview.cs" finishes its "Start" coroutine, the file that is shown in the webview is the one from "Application.streamingAssetsPath"? Correct?

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 with SampleWebview.cs and its Start coroutine, then check how the file path from Application.streamingAssetsPath is used for the Android webview. Reproduce the local StreamingAssets case and determine whether the expected HTML file is displayed and can be updated as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, unity
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.