Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the problem that webview cannot upload pictures #17657

Closed
wants to merge 3 commits into from

Conversation

qiuguohua
Copy link
Contributor

@qiuguohua qiuguohua commented Sep 20, 2024

Re: #

Changelog

#17569


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

Copy link

Interface Check Report

This pull request does not change any public interfaces !

@@ -90,7 +95,42 @@ public CocosWebView(Context context, int viewTag) {
}

this.setWebViewClient(new Cocos2dxWebViewClient());
this.setWebChromeClient(new WebChromeClient());
this.setWebChromeClient(new WebChromeClient() {
// For Android < 3.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don`t need to support API level lower than anroid5.0.

Android 6.0 (API 23), which brought another significant change: dynamic permission management. This update impacted how apps handle permission-related callbacks, such as onPermissionRequest and onGeolocationPermissionsShowPrompt, allowing users to grant or deny permissions in a more granular way, rather than at install time. This shift gave users more control over their data and privacy.

@minggo
Copy link
Contributor

minggo commented Sep 23, 2024

As discussed, the webview in cocos just supports showing a web page. If need more features, developers should do it by themselves.

@minggo minggo closed this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants