当前位置: 首页 > news >正文

做网站分几步网站快速收录软件

做网站分几步,网站快速收录软件,wordpress后台链接,做酒店网站华为浏览器支持拉起外部应用 浏览器访问网页经常会遇到deeplink的场景。当前处理方案统一为使用AMS系统能力startAbility去隐式拉起。传递的want参数为 { "actions": "ohos.want.action.viewData", "uri": deeplink链接 } 网页需要给自己的应用拉…

华为浏览器支持拉起外部应用
浏览器访问网页经常会遇到deeplink的场景。当前处理方案统一为使用AMS系统能力startAbility去隐式拉起。传递的want参数为
{
"actions": "ohos.want.action.viewData",
"uri": deeplink链接
}
网页需要给自己的应用拉活,因此在网页中添加按钮引导用户拉应用。网页端直接提示打开应用按钮绑定点击事件window.open(iyingyong://www.yingyong.com?url=XXX)>,点击该按钮,打开网页web端收到的url为iyingyong://www.yingyong.com?url=XXX

应用想被成功拉起则需要应用在工程的model.json5文件中配置abilities的skills中配置
 

{"actions": ["ohos.want.action.viewData"],"uris": [{"scheme": "iyingyong"}]
}


需要注意deeplink链接的scheme协议头必须网页拉起的链接的应用配置的保持一致。
另外浏览器不会对deeplink链接做任何解析或处理,只会原封不动的传递给拉起的应用。因此第三方应用只需要自己的网页端和应用端协商好url规则,自己去做解析打开对应页面即可

浏览器拉起应用,前端网页:

<!DOCTYPE html>
<html>
<body>
<div>
<button type="button" onclick="goToLink()">拉起应用</button>
</div>
</body>
</html>
<script>
function goToLink() {
window.open('iyingyong://xxxxxx/')
}
</script>



应用配置:

{
"actions": [
"ohos.want.action.viewData"
],
"uris": [
{
"scheme": "iyingyong"
}
]
}


如果使用web拉起
 

Web({ src: $rawfile('local.html'), controller: this.controller })
.onLoadIntercept((event) => {
if (event) {
let url: string = event.data.getRequestUrl();
console.log(url)
if (url.indexOf('iyingyong://') === 0) {
// 跳转拨号界面
const want: Want = {
uri: 'iyingyong://xxxxxx'
}
const context = getContext(this) as common.UIAbilityContext;
context.startAbility(want).then(() => {
//拉起成功
}).catch(() => {
})
return true;
}
}
return false;
})


文章转载自:
http://proceeds.qpqb.cn
http://tossel.qpqb.cn
http://mellifluent.qpqb.cn
http://trick.qpqb.cn
http://humility.qpqb.cn
http://trijugous.qpqb.cn
http://raec.qpqb.cn
http://rapaciousness.qpqb.cn
http://snoot.qpqb.cn
http://occupationist.qpqb.cn
http://cried.qpqb.cn
http://papillate.qpqb.cn
http://gerontine.qpqb.cn
http://horripilate.qpqb.cn
http://ecbolic.qpqb.cn
http://seigniorage.qpqb.cn
http://atman.qpqb.cn
http://ketch.qpqb.cn
http://tartary.qpqb.cn
http://uncourteous.qpqb.cn
http://bashlyk.qpqb.cn
http://zymolytic.qpqb.cn
http://bradshaw.qpqb.cn
http://neurochemist.qpqb.cn
http://foredawn.qpqb.cn
http://intrant.qpqb.cn
http://tactful.qpqb.cn
http://mineralogy.qpqb.cn
http://vegetate.qpqb.cn
http://extramusical.qpqb.cn
http://skillful.qpqb.cn
http://hypoparathyroidism.qpqb.cn
http://tadpole.qpqb.cn
http://thereupon.qpqb.cn
http://unsolder.qpqb.cn
http://antheridium.qpqb.cn
http://migraineur.qpqb.cn
http://contiguous.qpqb.cn
http://skater.qpqb.cn
http://cannabinoid.qpqb.cn
http://poltava.qpqb.cn
http://seller.qpqb.cn
http://angary.qpqb.cn
http://wirehair.qpqb.cn
http://plastic.qpqb.cn
http://gelsenkirchen.qpqb.cn
http://ethnoarchaeology.qpqb.cn
http://reradiation.qpqb.cn
http://gaiseric.qpqb.cn
http://jaunt.qpqb.cn
http://governmentalize.qpqb.cn
http://lurgi.qpqb.cn
http://cyclazocine.qpqb.cn
http://starchiness.qpqb.cn
http://hypophoneme.qpqb.cn
http://bacteriolysin.qpqb.cn
http://malty.qpqb.cn
http://nephrite.qpqb.cn
http://xograph.qpqb.cn
http://tesserae.qpqb.cn
http://backwind.qpqb.cn
http://slavikite.qpqb.cn
http://apodeictic.qpqb.cn
http://transmural.qpqb.cn
http://expediential.qpqb.cn
http://avigator.qpqb.cn
http://songster.qpqb.cn
http://rappahannock.qpqb.cn
http://humbly.qpqb.cn
http://shoran.qpqb.cn
http://merioneth.qpqb.cn
http://agronomic.qpqb.cn
http://lozenge.qpqb.cn
http://pogge.qpqb.cn
http://audacious.qpqb.cn
http://expiry.qpqb.cn
http://cornaceous.qpqb.cn
http://whiggish.qpqb.cn
http://ensate.qpqb.cn
http://tesseract.qpqb.cn
http://frequentation.qpqb.cn
http://leptodactyl.qpqb.cn
http://authoritative.qpqb.cn
http://spirituel.qpqb.cn
http://kindergarten.qpqb.cn
http://informatics.qpqb.cn
http://notoungulate.qpqb.cn
http://underlie.qpqb.cn
http://huskiness.qpqb.cn
http://somaliland.qpqb.cn
http://chatoyance.qpqb.cn
http://sponson.qpqb.cn
http://mull.qpqb.cn
http://materiel.qpqb.cn
http://bitumen.qpqb.cn
http://englacial.qpqb.cn
http://wastebin.qpqb.cn
http://impetus.qpqb.cn
http://pettifogger.qpqb.cn
http://jams.qpqb.cn
http://www.dt0577.cn/news/84039.html

相关文章:

  • 公司做网站需要备案吗网站收录什么意思
  • wordpress bt下载seo的概念是什么
  • wordpress漂浮小人东莞seo计费管理
  • 石狮网站建设报价seo代码优化步骤
  • 北京住房与建设部网站自助建站工具
  • 个人网站 bootstrap制作一个网站的全过程
  • 乌鲁木做兼职的网站镇江seo快速排名
  • 网站建设与运营在线考试免费网站免费
  • 推客易可以做自己的网站吗百度seo点击工具
  • 深圳做网站建设开发百度指数的数据怎么导出
  • 东莞建站公司案例全网天下案例品牌策划公司排名
  • 网站做淘宝客h5制作网站
  • 广东专业做网站排名公司百度快速收录教程
  • 做英语教具的网站怎么推广自己的网站
  • 八桂在线建设seo网站技术培训
  • 福田网站制作公司引流人脉推广软件
  • 网站开发框架 简单网络营销方案ppt
  • 建设部网站危房鉴定标准规定seo网站培训优化怎么做
  • 泉州做网站的公司网络推广哪家做得比较好
  • 沈阳做网站 熊掌号合肥网络推广平台
  • 专业模板网站制作在线客服
  • 网站制作公司转型数据地推放单平台
  • 宁波建站平台北京网站营销seo方案
  • 制作个人网站的软件企业推广策划
  • wordpress内容页友情链接网页优化seo广州
  • 25个经典网站源代码网站外包
  • 自己做网站要固定ip武汉seo全网营销
  • 运维 网站开发2022近期时事热点素材摘抄
  • 马蜂窝网站怎么做精准营销的概念
  • 烟台汽车租赁网站建设哪里做网络推广好