2016-06-22 2 views
-1

모바일에서 내 사이트를 열려고 할 때 내 앱을 홍보하기 위해 Jquery.smartbanner 플러그인을 사용 중입니다.앱이 이미 설치된 경우에만 스마트 앱 배너가 표시됩니다.

내 앱이 이미 설치되어 있으면 잘 작동합니다.

내 모바일에 앱이 설치되어 있지 않은 경우 앱이 이미 설치되어있는 경우 설치 대신 열려있는 버튼을 표시하는 것보다 앱 배너를 표시하고 싶습니다.

감사의 말을 전합니다.

+0

나는 [네이티브 응용 프로그램의 배너 (HTTPS를 사용하는 것이 좋습니다 것입니다. google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android) 대신 – Endless

답변

0

당신은 스마트 배너 사용할 수 있습니다

https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

을 또는 당신이 timout을 설정하려고 할 수는 : // 개발자 :

<script type="text/javascript"> 
function startMyApp() 
{ 
    document.location = 'MyAppScheme://'; 
    setTimeout(function() 
    { 
     if(confirm('You don't have Your App installed, do you want to go download it?')) 
     { 
     document.location = 'http://itunes.apple.com/MyApp'; 
     } 
    }, 200); 
} 
</script> 
+0

아이러니하게도 그는 Android로 질문에 태그를 추가했습니다 ... – Endless