离子深层链接中的DEEPLINK_HOST [英] DEEPLINK_HOST in ionic deeplink

查看:66
本文介绍了离子深层链接中的DEEPLINK_HOST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的应用设置为具有深层链接.

I am trying to set up my app to have deeplinks.

根据此处的离子本机文档中的说明,我们需要使用以下命令

As mentioend in the ionic native docs here we need to use the following command

ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/

我应该在DEEPLINK_HOST参数中输入什么.

What should I enter in the DEEPLINK_HOST parameter.

如果我提供它,我的站点域是否必须在该站点上进行任何设置?

If I provide it my site domain will I have to setup anything on that site?

推荐答案

DEEPLINK_HOST是您在移动设备上单击的URL的主机部分,您的应用程序将打开,而不是浏览器.它可以是任何主机名,但是您的网站主机名(如果存在)是最好的,因为您可以为台式机和移动用户使用相同的URL.

DEEPLINK_HOST is the host part of the URL you click on mobile and your app will be opened instead of the browser. It can be any hostname, but your website hostname (if exists) is the best as you can use the same URLs for desktop and mobile users.

对于Android应用,您无需在网站上添加/更改任何内容.如果是iOS,请遵循通用链接的文档.

For Android app you do not need to add/change anything on the website. In case of iOS just follow the documentation of Universal Links.

这篇关于离子深层链接中的DEEPLINK_HOST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆