I have included the appropriate link meta tags in the HTML, so that by clicking on this link on Facebook, the Android and iOS applications will open with the correct content.
This is an example page: https://trenit.info/L2o
<meta property="al:ios:url" content="https://trenit.info/L2o" /> <meta property="al:ios:app_store_id" content="1058908183" /> <meta property="al:ios:app_name" content="Trenit!" /> <meta property="al:android:url" content="https://trenit.info/L2o" /> <meta property="al:android:app_name" content="Trenit!" /> <meta property="al:android:package" content="eu.baroncelli.oraritrenitalia" />
I posted this link on Facebook and I installed Trenìt! application on both Android and iOS devices.
on iOS :
if I use the Facebook application and click on this link, Trenìt! The iOS application opens with this content.
on Android :
If I use the Facebook application and click on this link, an HTML page opens instead of Trenìt! Android app.
Am I doing something wrong?
Please note: in the Android manifest, I already specified this intent filter:
<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="https" android:host="trenit.info" /> </intent-filter>
source share