- wx.chooseMessageFile 使用问题? 打开微信后不能看到用户的文件
能够打开微信,但是微信用户中看不到文件,如果type是图片类型,可以选择到图片文件,请解释; chooseLocalFile() { wx.chooseMessageFile({ count: 1, type: 'file', extension: ['bin', 'hex', 's19'], success: (res) => { const tempFilePath = res.tempFiles[0].path; console.error('选择文件=:', JSON.stringify(res)); }, fail: (err) => { console.error('选择文件失败:', err); } }); },
02-27 - 小程序不弹出授权使用低功耗蓝牙窗口?
小程序的体验版本,小程序第一次使用时,会弹出请求授权使用蓝牙的请求;但是在发布版本上,第一次使用时,就不能弹出请求授权使用蓝牙的窗口;同时在代码中用 wx.authorize({scope: 'scope.bluetooth' )) 和 wx.openSetting()打开授权窗口,没有看到有蓝牙授权选项,只有位置授权选项; "requiredPermissions": [ "bluetooth", "location" ],"permission": { "scope.bluetooth": {"desc": "小程序需要打开蓝牙"}, "scope.userLocationBackground": {"desc": "你的位置信息将用于蓝牙设备的连接"},"scope.userLocation": { "desc": "你的位置信息将用于蓝牙设备的连接" } },
2024-11-27