enable WKURLScheme
diff --git a/lib/ParamedicApp.js b/lib/ParamedicApp.js
index af90962..c14a518 100644
--- a/lib/ParamedicApp.js
+++ b/lib/ParamedicApp.js
@@ -128,6 +128,11 @@
this.runner.browserPatched = false;
}
}
+ } else if (this.isIos) {
+ logger.info('cordova-paramedic: I like patching stuff, so...');
+ logger.info('cordova-paramedic: We now need WKURLScheme to make CORS work');
+ appPatcher.setPreference(this.tempFolder.name, 'scheme', 'app');
+ appPatcher.setPreference(this.tempFolder.name, 'hostname', 'localhost');
}
});
}