html - Android Deep linking -


i trying add deep linking on android , in web page replace iframe

<iframe  scrolling="no" width="1" height="1" style="display: none;"  src="myscheme://post/5002"></iframe> 

and in manifest.xml (android app)

<application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme">     <activity         android:name=".myactivity"         android:label="@string/app_name">         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>          <intent-filter>             <action android:name="android.intent.action.view"></action>              <category android:name="android.intent.category.default" />             <category android:name="android.intent.category.browsable" />              <data android:scheme="myscheme" />         </intent-filter>     </activity> </application> 

but when open webpage in chrome didn't show "open with" dialog choose app

i tested deeplinking android using , dialog appears

adb shell start -w -a android.intent.action.view  -d "myscheme://whatever"  

the functionality has changed in chrome android, versions 25 , later. no longer possible launch android app setting iframe's src attribute. should use “intent:” syntax instead

intent://host/#intent;scheme=protocol;package=com.domain.apppackage;end

the basic syntax intent-based uri follows:

intent: host/uri-path // optional host
#intent;
package=[string];
action=[string];
category=[string];
component=[string];
scheme=[string];
end;

please check page


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -