在module.json5中配置电话服务权限ohos.permission.PLACECALL,启动项目报错Failure[MSGERRINSTALLGRANTREQUESTPERMISSIONSFAILED]
使用人脸识别组件,import{interactiveLiveness}from‘kit.VisionKit’;提示找不到kit.VisionKit是什么原因
判断远程图片地址是否存在,如果不存在使用默认值,目前使用方式的是:letimage"http:xx.xxx.xx:3001imageshomeactive.png"或者是https:xx.xxx.xxx:3000a.pnglethttpRequesthttp.createHttp();letdata:http.HttpResponseawaithttpRequest.request(image);if(data.responseCode!200){ImageiconSuccess;iconSuccesss是默认值}else{Imageimage}问题:当是http域名时,会返回错误码2300006,但是在浏览器中是可以访问成功的,远程图...
需要建设HarmonyOS异常堆栈反解服务,用于在线化异常定位,想看下hstack源码的处理逻辑,转换为可以对外提供接口服务的功能
想绕过证书校验报错:{“code”:1007900004,“data”:“Arequestedfeature,protocoloroptionwasnotfoundbuiltininthislibcurlduetoabuildtimedecision.”}
ohos是否有类似Flutter中StackTrace.current获取当前堆栈信息的接口?
对于网络请求的回调参数,因对后台返回数据的不可控性,要如何设计会更合适?是否对参数类型的设定需要如下所示exportinterfaceProtocolData{protocolList:ProtocolList[]null;versionId:stringnull;}exportinterfaceProtocolList{protocolName:stringnull;protocolType:numbernull;businessType:numbernull;protocol:stringnull;}
编写base64工具类,测试后结果有问题,base64编码结果中出现【%{public}s】,解码也不对base64编码publicstaticbase64Encode(value:string):string{letbase64Helpernewutil.Base64Helper();lettextEncoderutil.TextEncoder.create("utf8");returnbase64Helper.encodeToStringSync(textEncoder.encodeInto(value));}base64解码publicstaticbase64Decode(value:string):string{letbase64Helpernewutil.Base64Helper();lettextDeco...
hdcshellaastartaMainAbilitybcom.ohos.certmanager启动证书安装器Charles证书后,证书在手机的哪个路径下
活体识别sdk,识别后能从中截一张客户图片返回来,后续做人证比对使用吗?人证比对,需要从活体识别过程中截取客户一张图片,然后服务端和人行的证件照片做比对。
使用(left+right)2的方法获取二维码中心点坐标,获取的位置与实际二维码位置差距较大
按照开发文档,创建了本地实况窗,但是实际运行时,无法展示;1、本地实况窗是否需要配置ClientID2、本地实况窗是否需要验证证书指纹?3、实况窗是否可以用模拟器调试?
按照指南https:developer.huawei.comconsumercndocharmonyosguidesV5visioninteractivelivenessV5中的方法调用。校验CAMERA权限privatestartDetection(){letpermissions:Array['ohos.permission.CAMERA'];letcontext:common.UIAbilityContextgetContext()ascommon.UIAbilityContext;abilityAccessCtrl.createAtManager().requestPermissionsFromUser(context,permissions).then((res){for(leti0;i<res.permissions.length;i++){...
https:developer.huawei.comconsumercndocharmonyosfaqsV5faqsnetwork55V5在配置charlse过程中需要命令行(hdcfilesend)安装证书,测试机无法写入文件(开发者模式已经打开)Erroropeningfile:permissiondenied,path:datastoragedownload
证书已经安装成功,但是使用Charles抓不到https的包,显示unknow
使用hdcfilerecvdataloghilog将日志导出到电脑后,日志文件解压后通过编辑器查看是二进制格式
我这边想要封装rcp但是在文档看,rcp这个没有实例化方法呢我这边该如何封装不能所有地方都这么写吧constcachenewResponseCache();constsessionrcp.createSession({interceptors:[newResponseCachingInterceptor(cache)]});returnsession.post("https:",MapUtils.map2Json(requestDic123)).then((response){console.info(Responsesucceeded:${response});}).catch((err:BusinessError){console.error(Err:Codeis${err.code},messageis${err.message});});
在自己创建的Demo应用(模拟器上运行)上。import{pushService}from‘kit.PushKit’已配置应用签名证书指纹和Clientid。然后调用pushService.getToken,代码如下:try{console.info("准备上报应用服务器...准备获取pushtoken")constpushToken:stringawaitpushService.getToken();console.info("准备上报应用服务器...获取pushtoken成功:"+pushToken)}catch(err){console.info(准备上报应用服务器...获取pushtoken失败:${JSON.s...
hm673c38ea9f4b2 的精彩回答获得了0 赞同
hm673c38ea9f4b2 的精彩回答获得了0 赞同
hm673c38d47e470 的精彩回答获得了0 赞同
hm673c38d47e470 的精彩回答获得了0 赞同
hm673c38d47e470 的精彩回答获得了0 赞同