首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子2脱墨no反应

离子2脱墨no反应
EN

Stack Overflow用户
提问于 2017-08-29 10:59:38
回答 1查看 165关注 0票数 0

我运行以下命令:

代码语言:javascript
复制
cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=kargosha --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=kargosha.com

在那之后我把

assetlink.json

在服务器(kargosha.com)中,您可以检查这个文件这里或测试它的这里。总之,最后我用Codepen编写了一个简单的代码来打开应用程序,然后在android手机上点击它(Android6.0.1),但我什么也没看到。

Config.xml

代码语言:javascript
复制
    <?xml version='1.0' encoding='utf-8'?>
    <widget id="com.kargosha" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
        <name>name</name>
        <description>name App</description>
        <author email="test@yahoo.com" href="http://test.com/">test</author>
        <content src="index.html" />
        <access origin="*" />
        <allow-navigation href="http://ionic.local/*" />
        <allow-navigation href="http://192.168.8.103:8100" />
        <allow-navigation href="http://192.168.8.108:8100" />
        <allow-intent href="http://*/*" />
        <allow-intent href="https://*/*" />
        <allow-intent href="tel:*" />
        <allow-intent href="sms:*" />
        <allow-intent href="mailto:*" />
        <allow-intent href="geo:*" />
        <preference name="webviewbounce" value="false" />
        <preference name="UIWebViewBounce" value="false" />
        <preference name="DisallowOverscroll" value="true" />
        <preference name="android-minSdkVersion" value="16" />
        <preference name="BackupWebStorage" value="none" />
        <preference name="SplashMaintainAspectRatio" value="true" />
        <preference name="FadeSplashScreenDuration" value="300" />
        <preference name="SplashShowOnlyFirstTime" value="false" />
        <preference name="SplashScreen" value="screen" />
        <preference name="SplashScreenDelay" value="3000" />
        <preference name="ShowSplashScreenSpinner" value="false" />
        <preference name="AndroidLaunchMode" value="singleTask" />
        <platform name="android">
            <allow-intent href="market:*" />
            //Some icon & splash
        </platform>
        <platform name="ios">
            <allow-intent href="itms:*" />
            <allow-intent href="itms-apps:*" />
            //Some icon & splash
    </platform>
    <engine name="android" spec="^6.2.3" />
    //Some other plugin
    <plugin name="ionic-plugin-deeplinks" spec="^1.0.15">
        <variable name="URL_SCHEME" value="kargosha" />
        <variable name="DEEPLINK_SCHEME" value="https" />
        <variable name="DEEPLINK_HOST" value="kargosha.com" />
        <variable name="ANDROID_PATH_PREFIX" value="/" />
    </plugin>
</widget>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-29 11:52:25

这是一个非常愚蠢的解决方案,只需使用以下命令:

代码语言:javascript
复制
ionic cordova platform rm <platform>
ionic cordova platform add <platform>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45937405

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档