Muhammed Zeeshan Muhammed Zeeshan - 10 months ago 53
Android Question

PhoneGap URL scheme on other pages not working

Hi i have this simple app and and i use

to open app my ANDROID APP this works file but when i use
to open a page it does not work i searched the internet but i could not find the solution can any body tell me i want to open a specific page in my APP because TWITTER does not support
it supports only if if has any extension like

or if this is not possible is there any why i could redirect user to a url
after login from my TWITTER application

Muhammad Zeeshan


You can listen also http scheme as your site with a listener activity. Something like this code.

<activity android:label="@string/app_name" android:name="com.foursquare.robin.BrowsableActivity">
        <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="" android:pathPrefix="/" />
        <data android:scheme="https" android:host="" android:pathPrefix="/" />

When any platform re-route your app to your scheme will be revoked shortly.