JF-Mechs is on the lookout for a solution from a good supply.
I’m at the moment creating an internet site and wish so as to add a button that hyperlinks to my cellular app. I’ve applied a deep hyperlink (or common hyperlink) to redirect customers on to the app’s dashboard. If the app isn’t put in, the fallback ought to redirect to the suitable app retailer.
Right here’s the at the moment applied code:
window.location.href = “com.jfmech.myapp1://myapp1_main_module/dashboard”.
setTimeout(operate(){
window.location.href = GetStoreLinkByOS();
}, 2000);
This works completely on Android however not on iOS.
I’ve learn that I must register the URL scheme or common hyperlink within the Data.plist file, and right here’s what I’ve added to date:
<platform title=”ios”>
<config-file goal=”*-Data.plist” father or mother=”CFBundleURLTypes”>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.jfmech.myapp1</string> <!– Change along with your app’s identifier –>
<key>CFBundleURLSchemes</key>
<array>
<string>com.jfmech.myapp1</string>
</array>
</dict>
</array>
</config-file>
</platform>
Regardless of this, the fallback logic all the time kicks in on iOS, redirecting customers to the shop as a substitute of opening the app even when its already put in.
What am I lacking? Any steerage can be appreciated.