2016-10-20 1 views

답변

0

App-Launcher-Cordova-Plugin을 사용하면 Google 슬라이드가 설치되어 있는지 확인할 수 있습니다. 그렇다면 Google 슬라이드가 설치되어 있는지 확인하십시오.

하면 프로젝트에 설치합니다

var googleSlidesPackageName; 
if(device.platform === "Android"){ 
    googleSlidesPackageName = "com.google.android.apps.docs.editors.slides"; 
}else if(device.platform === "iOS"){ 
    googleSlidesPackageName = "com.google.Slides"; 
}else{ 
    throw new Error("Don't know the package name for "+device.platform+" platform"); 
} 

window.plugins.launcher.canLaunch({packageName:googleSlidesPackageName}, function(){ 
    window.plugins.launcher.launch({packageName:googleSlidesPackageName}, successCallback, errorCallback); 
}, errorCallback)  
:

$ cordova plugin add https://github.com/nchutchind/App-Launcher-Cordova-Plugin.git 

는 그런 일이처럼 사용

관련 문제