DEEPLINK_HOST in ionic deeplink

久未见 提交于 2019-12-13 05:05:35

问题


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=/

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/48990495/deeplink-host-in-ionic-deeplink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!