introduce 'go' method for iOS to launch app without calling canOpenURL for unwhitelisted custom schemes

This commit is contained in:
Raymond Elferink
2016-05-20 14:44:53 +02:00
parent cecbb1e821
commit d78ae595a6
3 changed files with 26 additions and 11 deletions
+14 -11
View File
@@ -43,17 +43,20 @@ public class startApp extends CordovaPlugin {
if (action.equals("start")) {
this.start(args, callbackContext);
}
else if(action.equals("check")) {
this.check(args, callbackContext);
}
else if(action.equals("getExtras")) {
this.getExtras(callbackContext);
}
else if(action.equals("getExtra")) {
this.getExtra(args, callbackContext);
}
return true;
else if (action.equals("go")) {
this.start(args, callbackContext);
}
else if(action.equals("check")) {
this.check(args, callbackContext);
}
else if(action.equals("getExtras")) {
this.getExtras(callbackContext);
}
else if(action.equals("getExtra")) {
this.getExtra(args, callbackContext);
}
return true;
}
//--------------------------------------------------------------------------