Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 从网站中的链接打开Cordova移动应用程序_Android_Ios_Cordova_Mobile_Youtube - Fatal编程技术网

Android 从网站中的链接打开Cordova移动应用程序

Android 从网站中的链接打开Cordova移动应用程序,android,ios,cordova,mobile,youtube,Android,Ios,Cordova,Mobile,Youtube,我已经创建了一个应用程序,这是类似的网站。当用户在iOS或Android设备上访问网站时,我想输出一个链接,让他们打开或下载应用程序 例如,当您在移动设备上访问Youtube时,弹出窗口显示“在Youtube中打开此页面”: 如果单击此弹出窗口,它将打开我手机上的YouTube应用程序 我想用我的网站和应用程序做到这一点。该应用程序是使用Cordova创建的。有人知道怎么做吗?我发现这是相似的,但它是为本机的iOS。我需要一个跨平台的Cordova解决方案。试试这个: <activity

我已经创建了一个应用程序,这是类似的网站。当用户在iOS或Android设备上访问网站时,我想输出一个链接,让他们打开或下载应用程序

例如,当您在移动设备上访问Youtube时,弹出窗口显示“在Youtube中打开此页面”:

如果单击此弹出窗口,它将打开我手机上的YouTube应用程序

我想用我的网站和应用程序做到这一点。该应用程序是使用Cordova创建的。有人知道怎么做吗?我发现这是相似的,但它是为本机的iOS。我需要一个跨平台的Cordova解决方案。

试试这个:

<activity android:name=".MyActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:host="www.myapp.com" android:scheme="MyApp" />
    </intent-filter>
</activity>

试试这个:

<activity android:name=".MyActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:host="www.myapp.com" android:scheme="MyApp" />
    </intent-filter>
</activity>

试试这个:

<activity android:name=".MyActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:host="www.myapp.com" android:scheme="MyApp" />
    </intent-filter>
</activity>

试试这个:

<activity android:name=".MyActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:host="www.myapp.com" android:scheme="MyApp" />
    </intent-filter>
</activity>

以防将来有人在寻找类似的解决方案

正如@sanat shukla在评论中提到的,有一个由EddyVebruggen创建的插件,允许您执行以下操作:


以防将来有人在寻找类似的解决方案

正如@sanat shukla在评论中提到的,有一个由EddyVebruggen创建的插件,允许您执行以下操作:


以防将来有人在寻找类似的解决方案

正如@sanat shukla在评论中提到的,有一个由EddyVebruggen创建的插件,允许您执行以下操作:


以防将来有人在寻找类似的解决方案

正如@sanat shukla在评论中提到的,有一个由EddyVebruggen创建的插件,允许您执行以下操作:


干杯@sanatshukla我会看一看干杯@sanatshukla我会看一看干杯@sanatshukla我会看一看干杯@sanatshukla我会看一看是的,我找到了一些本地解决方案,正在努力寻找一种科尔多瓦特有的解决方案。谢谢你@smj2393使用这个:是的,我找到了一些本地解决方案,很难找到一个特定于Cordova的解决方案。谢谢你@smj2393使用这个:是的,我找到了一些本地解决方案,很难找到一个特定于Cordova的解决方案。谢谢你@smj2393使用这个:是的,我找到了一些本地解决方案,很难找到一个特定于Cordova的解决方案。谢谢你@smj2393使用:这个插件非常有用,我以前在生产项目中使用过。这个插件非常有用,我以前在生产项目中使用过。这个插件非常有用,我以前在生产项目中使用过。这个插件非常有用,我以前在生产项目中使用过。