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

link 模式怎么 在微信跳转到APP? #27

Closed
xushuo opened this issue May 25, 2020 · 8 comments
Closed

link 模式怎么 在微信跳转到APP? #27

xushuo opened this issue May 25, 2020 · 8 comments

Comments

@xushuo
Copy link

xushuo commented May 25, 2020

你好,想问下 link模式配置好之后,总是在微信内部跳转了一个页面地址,但是无法唤起APP。

image

这是我的配置参数

@jawidx
Copy link
Owner

jawidx commented May 26, 2020

微信scheme需要申请或有合作,一般app不用考虑这条路,目前常用方案是微信android走应用宝、ios内走ulink,参见文档中的demo代码中的hotLaunch方法

@jawidx
Copy link
Owner

jawidx commented May 26, 2020

微信ios是支持link的,如果有问题,先确认正常ios link能唤起app,再用chrome ua模拟ios微信看是否正常请求来验证代码中配置,还不行重装两个app再试

@xushuo
Copy link
Author

xushuo commented May 27, 2020

微信ios是支持link的,如果有问题,先确认正常ios link能唤起app,再用chrome ua模拟ios微信看是否正常请求来验证代码中配置,还不行重装两个app再试

好的,我再试试。目前的效果是点击打开APP之后就会走一个跳转URL的动作,但是走的是自己内部的路由,没办法拉起APP

@jawidx
Copy link
Owner

jawidx commented May 27, 2020

内部路由....非微信内也不能唤起吧。。。

@xushuo
Copy link
Author

xushuo commented May 28, 2020

内部路由....非微信内也不能唤起吧。。。

在微信内部打开,但是走的是内部路由,如果把地址粘贴到浏览器,就会出现打开APP的提示。头疼

@xushuo
Copy link
Author

xushuo commented May 28, 2020

我这边查看资料可能是跨域的问题。 我的项目地址是 WWW.AAA.COM。通用链接也是这个域名下的,所以一直在内部走的路由,是不是应该是配成WWW.BBB.COM这种地址、、、

@jawidx
Copy link
Owner

jawidx commented Jun 2, 2020

可以参考我们的,在好看视频app里分享视频到微信,微信中打开点击里边的内容会走ulink跳转的

@xushuo
Copy link
Author

xushuo commented Jun 5, 2020

换了个域名就通了,多谢老哥的指点。

@xushuo xushuo closed this as completed Jun 5, 2020
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

2 participants