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

真机微信8.0.51版本中,地图方法调用无响应,不成功也不报错。包括moveToLocation,openMapApp,addMarkers等 #16610

Closed
airbreak opened this issue Sep 27, 2024 · 2 comments

Comments

@airbreak
Copy link

相关平台

微信小程序

复现仓库

git@github.com:airbreak/test-demo-taro-map.git
小程序基础库: 3.5.8
使用框架: React

复现步骤

1、yarn
2、yarn dev
3、在微信开发者工具把项目导入
4、在模拟器中点击页面的按钮“导航去武汉大学”、或者“地图定位到黄鹤楼”可以正常响应。
5、真机上,微信8.0.50 (包括安卓和iOS)可以正常响应,但是安卓8.0.51 没有响应,不成功也不提示错误。

期望结果

正常相应

实际结果

方法调用无响应,不成功也不报错。包括moveToLocation,openMapApp,addMarkers等。而且是在真机微信8.0.51版本才会这样,微信8.0.50是可以调用成功。

环境信息

👽 Taro v3.6.0


  Taro CLI 3.6.0 environment info:
    System:
      OS: macOS 12.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
      Yarn: 1.22.17 - /opt/homebrew/bin/yarn
      npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.0 => 3.6.0 
      @tarojs/components: 3.6.0 => 3.6.0 
      @tarojs/helper: 3.6.0 => 3.6.0 
      @tarojs/plugin-framework-react: 3.6.0 => 3.6.0 
      @tarojs/plugin-html: ^3.6.0 => 3.6.0 
      @tarojs/plugin-platform-alipay: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-h5: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-jd: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-qq: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-swan: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-tt: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-weapp: 3.6.0 => 3.6.0 
      @tarojs/react: 3.6.0 => 3.6.0 
      @tarojs/runtime: 3.6.0 => 3.6.0 
      @tarojs/shared: 3.6.0 => 3.6.0 
      @tarojs/taro: 3.6.0 => 3.6.0 
      @tarojs/webpack5-runner: 3.6.0 => 3.6.0 
      babel-preset-taro: 3.6.0 => 3.6.0 
      eslint-config-taro: 3.6.0 => 3.6.0 
      react: ^18.0.0 => 18.2.0 

补充信息

Taro 项目如果是引用小程序原生的页面,即wxml、index.wxss的写法,微信8.0.51也是可以调用成功。所以是否有可能是Taro脚手架打包后map相关的方法,或实例有限制,在微信8.0.51上有区别,导致了这些问题。

@pEco0L
Copy link

pEco0L commented Sep 27, 2024

我遇到了同样的问题,taro版本4.0.6 使用框架为vue3

This was referenced Sep 28, 2024
@koppthe
Copy link
Contributor

koppthe commented Sep 29, 2024

#16603

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

No branches or pull requests

3 participants