iOS

  1. Create URL Types in project-info.plist
  2. Add new URL Identifier
  3. Create custom URL scheme

Tutorial step by step with pictures SO answer

Android

Add custom scheme

-1. In manifest add intent filer as below

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
	<data android:scheme="myApp"/>  
</intent-filter>

-2. In your broswer, input myApp://
My test failed in local, I guess it might be the broswer in your mobile device appends some thing on your request URL. It can work when you put a html page which contains <a href=”myApp://”> Start your application<\a>