其他页面上的PhoneGap URL方案不起作用

Muh*_*han 1 javascript jquery android cordova intel-xdk

嗨,我有这个简单的应用程序,我myapp://用来打开应用程序我的ANDROID APP这个工程文件,但当我myapp://index.html用来打开一个页面它不起作用我搜索互联网但我找不到解决方案可以任何身体告诉我我想在我的APP中打开一个特定的页面,因为myapp://只有在有任何扩展名的情况下,TWITTER才支持它 myapp://index.html

或者,如果这是不可能的,那么为什么我可以myapp://在从我的TWITTER应用程序登录后将用户重定向到URL

感谢Muhammad Zeeshan

eng*_*can 5

您还可以将http方案作为具有侦听器活动的站点进行监听.像这个代码的东西.

<activity android:label="@string/app_name" android:name="com.foursquare.robin.BrowsableActivity">
    <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:scheme="http" android:host="example.com" android:pathPrefix="/" />
        <data android:scheme="https" android:host="example.com" android:pathPrefix="/" />
    </intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)

当任何平台将您的应用程序重新路由到您的计划时,很快就会被撤销.