모바일 웹에서 링크를 통해 하이브리드 앱을 실행 하려고 합니다.
검색을 해보니
안드로이드 mainfest의 intent-filter에
<data android:host="호스트명"
android:scheme="스키마명"/>
를 추가 한 후 모바일 웹에서
document.location.href="스키마영://호스트명";
으로 링크를 태우면 된다고 하는데요.
위와 똑같이 했는데도 해당 앱이 띄워 지지가 않습니다.
제가 테스트로 만든 하이브리드 앱의 androidmainfest.xml의 내용은 다음과 같습니다.
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<data
android:host="thost"
android:scheme="tscheme" />
</intent-filter>
</activity>
html에서는
document.location.href="tscheme://thost"; 으로 보냈습니다.
충고 말씀 부탁 드립니다.