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

Taro打包出的H5文件,无法兼容到Android8.0及以下的webview浏览器 #16360

Open
xiaostar518 opened this issue Aug 20, 2024 · 2 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@xiaostar518
Copy link

相关平台

H5

浏览器版本: Android8.0及以下的webview浏览器
使用框架: React

复现步骤

您好,我们计划使用一套代码,生成多平台的产品。
尝试使用打包成H5,之后在不同平台上,通过浏览器进行交互。
我发现在测试机XiaoMi Play Android8.0上,打包出来的H5,webview无法加载出来。
在Redmi Note4 Android6.0,也是这种情况。
请问如何设置,可以是打包出来的H5项目,可以兼容这些低版本的Android机器呢。

期望结果

打包出的H5,可以兼容低版本的Android浏览器

实际结果

打包出的H5,不兼容低版本得Android浏览器

环境信息

👽 Taro v4.0.4


  Taro CLI 4.0.4 environment info:
    System:
      OS: macOS 14.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.1 - /usr/local/bin/node
      Yarn: 3.6.4 - /opt/homebrew/bin/yarn
      npm: 10.8.2 - /opt/homebrew/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.4 => 4.0.4 
      @tarojs/components: 4.0.4 => 4.0.4 
      @tarojs/helper: 4.0.4 => 4.0.4 
      @tarojs/plugin-framework-react: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-h5: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-jd: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-qq: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-swan: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-tt: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4 
      @tarojs/react: 4.0.4 => 4.0.4 
      @tarojs/runtime: 4.0.4 => 4.0.4 
      @tarojs/shared: 4.0.4 => 4.0.4 
      @tarojs/taro: 4.0.4 => 4.0.4 
      @tarojs/taro-loader: 4.0.4 => 4.0.4 
      @tarojs/webpack5-runner: 4.0.4 => 4.0.4 
      babel-preset-taro: 4.0.4 => 4.0.4 
      eslint-config-taro: 4.0.4 => 4.0.4 
      react: ^18.0.0 => 18.3.1 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Aug 20, 2024
This was referenced Aug 24, 2024
@ZEJIA-LIU
Copy link
Contributor

该问题已经定位到,会在下一个版本4.0.6进行修复,感谢反馈~

@ZEJIA-LIU ZEJIA-LIU reopened this Sep 6, 2024
@Rambos
Copy link

Rambos commented Oct 31, 2024

@ZEJIA-LIU 请问修复了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: Padding
Development

No branches or pull requests

3 participants