当前位置: 主页 > 程序 >

什么是URL Scheme

时间:2016-02-15  作者:haden   点击:
【摘要】什么是URL Scheme,如何利用URL Scheme

URL Scheme是为方便app之间互相调用而设计的。你可以通过一个类似URL的链接,通过系统的OpenURl来打开该app,并可以传递一些参数。每个URL必须能唯一标识一个APP,如果你设置的URL与别的APP的URL冲突,此时,你的APP不一定会被调用起来,原因是当APP在安装的时候就已经在系统里面注册了此APP的URL Scheme,如果你的一致但是是后安装的,那么系统不会调用你的APP,因为你的APP设置的URL scheme被覆盖了。

当然系统的APP的URL Scheme是优先级高的,不用想着能覆盖系统APP的URL Scheme的注册调用。


对微信安卓版进行反编译后可以得到微信的部分接口:

"weixin://dl/stickers"
"weixin://dl/games"
"weixin://dl/moments"
"weixin://dl/add"
"weixin://dl/shopping"
"weixin://dl/groupchat"
"weixin://dl/scan"
"weixin://dl/profile"
"weixin://dl/settings"
"weixin://dl/general"
"weixin://dl/help"
"weixin://dl/notifications"
"weixin://dl/terms"
"weixin://dl/chat"
"weixin://dl/features"
"weixin://dl/clear"
"weixin://dl/feedback"
"weixin://dl/faq"
"weixin://dl/recommendation"
"weixin://dl/groups"
"weixin://dl/tags"
"weixin://dl/officialaccounts"
"weixin://dl/posts"
"weixin://dl/favorites"
"weixin://dl/privacy"
"weixin://dl/security"
"weixin://dl/wallet"
"weixin://dl/businessPay"
"weixin://dl/businessPay/"
"weixin://dl/wechatout"
"weixin://dl/protection"
"weixin://dl/card"
"weixin://dl/about"
"weixin://dl/blacklist"
"weixin://dl/textsize"
"weixin://dl/sight"
"weixin://dl/languages"
"weixin://dl/chathistory"
"weixin://dl/bindqq"
"weixin://dl/bindmobile"
"weixin://dl/bindemail"
"weixin://dl/securityassistant"
"weixin://dl/broadcastmessage"
"weixin://dl/setname"
"weixin://dl/myQRcode"
"weixin://dl/myaddress"
"weixin://dl/hidemoments"
"weixin://dl/blockmoments"
"weixin://dl/stickersetting"
"weixin://dl/log"
"weixin://dl/wechatoutcoupon"
"weixin://dl/login/phone_view"
"weixin://dl/login/common_view"
"weixin://dl/businessPay"
"weixin://dl/businessTempSession/"
"weixin://dl/businessGame/detail/"
"weixin://dl/businessGame/detail"
"weixin://dl/businessGame/library/"
"weixin://dl/businessGame/library"
"weixin://dl/businessWebview/link/"
"weixin://dl/businessWebview/link"
"weixin://dl/business/tempsession/"
"weixin://dl/businessTempSession/"
"weixin://dl/business"
"weixin://dl/wechatout"
"weixin://dl/update_newest_version"
"weixin://dl/moments"
"weixin://dl/recommendation"


更多内容可以查看https://link.zhihu.com/?target=https%3A//gist.github.com/andforce/36300fa0b7daa938b25e

 

顶一下
(0)
0%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片

推荐内容