개발/javascript
javaScript 웹에서 앱설치 유무 확인 [안드로이드]
Yunikism
2023. 4. 25. 13:39
728x90
안드로이드 웹에서 해당 펑션 실행 시
앱이 설치되어있으면 앱을 실행하고 앱이 설치되어있지 않다면 플레이스토어 설치 링크로간다간다쑝간다
function moveAppDownloadSell() {
var appIntent = ""; //앱intent
var appSchme = ""; //앱scheme
var app ="com.어쩌구.저쩌구" ;//앱패키지
//앱설치 확인 후 앱실행 및 구매로 보내기 url
var url= "Intent://"+appIntent+"#Intent;scheme="+appSchme+";package="+app+";end";
location.href = url;
}