gree / gree/unity-webview

If the image among the elements included in the https link is http, it does not load properly.

Open
#1,084 1 comment 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

Hi, I am developing an Android app with Unity.

Unity for Android / SDK 34

I am accessing various links using webview, but I cannot fully load the http image element belonging to https.

UNITYWEBVIEW_ANDROID_USES_CLEARTEXT_TRAFFIC
android:usesCleartextTraffic="true" in that config and Manifest file I set it up, but it still didn't work.

I see this option in Android web settings.
Is it possible to enable it?

MIXED_CONTENT_ALWAYS_ALLOW
In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.
MIXED_CONTENT_COMPATIBILITY_MODE
In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.
MIXED_CONTENT_NEVER_ALLOW
In this mode, the WebView will not allow a secure origin to load content from an insecure origin.

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 reviewing the Android WebView configuration and manifest settings mentioned in the issue, especially UNITYWEBVIEW_ANDROID_USES_CLEARTEXT_TRAFFIC and the mixed-content modes. Reproduce the HTTPS page with an HTTP image, then determine whether the requested behavior can be enabled and verify that the image loads correctly in the Unity Android WebView.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.