Hello,
I've been struggling to get custom url schemes working again in our PhonegapBuild app since iOS13 was released and we implemented the Alpha WkWebView Engine.
There are so many changes in the mobile world and moving parts with this functionality I could really use some help narrowing down whether it's an issue with iOS 13's security/privacy updates, some plugin issue, or the result of implementing the Alpha WkWebView engine.
Here is some sample code we've successfully used in the past to open an app called Compass Commander from our mobile app:
Now when the above JavaScript is executed, a blank page is loaded or in some cases another of our PhoneGap apps installed on the device is opened.
We are currently using Alpha build 6232_5386.
Please see below snippet for plist entries and plugins specified in our config.xml:
Many Thanks!
Justin Taylor
I've been struggling to get custom url schemes working again in our PhonegapBuild app since iOS13 was released and we implemented the Alpha WkWebView Engine.
There are so many changes in the mobile world and moving parts with this functionality I could really use some help narrowing down whether it's an issue with iOS 13's security/privacy updates, some plugin issue, or the result of implementing the Alpha WkWebView engine.
Here is some sample code we've successfully used in the past to open an app called Compass Commander from our mobile app:
Code:
window.open('spyglass://location?n=My House&lat=41.00000&lon=-81.00000','_system,titlebar=yes');
We are currently using Alpha build 6232_5386.
Please see below snippet for plist entries and plugins specified in our config.xml:
Code:
<!-- plist permission entries start --> <config-file platform="ios" target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> <key>CFBundleURLName</key> <array> <string>com.ourcompany.iarrow</string> <string>com.ourcompany.spyglass</string> <string>com.ourcompany.pdfviewer</string> </array> <key>CFBundleURLSchemes</key> <array> <string>myiarrow</string> <string>spyglass</string> <string>pdfviewer</string> </array> </dict> </array> </config-file> <config-file platform="ios" target="*-Info.plist" parent="LSApplicationQueriesSchemes"> <array> <string>iarrow</string> <string>spyglass</string> <string>pdfviewer</string> </array> </config-file> <!-- plist permission entries end --> <!-- PLUGIN SECTION START --> <plugin name="cordova-plugin-device" source="npm" version="1.1.7" /> <plugin name="cordova-plugin-file" source="npm" version="4.3.3" /> <plugin name="cordova-plugin-file-transfer" source="npm" version="1.5.1" /> <plugin name="cordova-plugin-network-information" source="npm" version="1.3.4" /> <plugin name="cordova-plugin-splashscreen" source="npm" version="5.0.2" /> <plugin name="cordova-plugin-whitelist" source="npm" version="1.3.3" /> <plugin name="cordova-plugin-camera" source="npm" version="2.4.1" /> <plugin name="cordova-plugin-console" source="npm" version="1.1.0" /> <plugin name="cordova-plugin-device-orientation" source="npm" version="2.0.0" /> <plugin name="cordova-plugin-geolocation" source="npm" version="2.4.3" /> <plugin name="cordova-plugin-inappbrowser" source="npm" version="1.7.2" /> <plugin name="cordova-plugin-dialogs" source="npm" version="1.3.4" /> <plugin name="cordova-plugin-appavailability" source="npm" /> <plugin name="cordova-plugin-keyboard" source="npm" /> <plugin name="cordova-plugin-datepicker" source="npm" /> <plugin name="cordova-plugin-powermanagement" source="npm" /> <plugin name="cordova-plugin-statusbar" source="npm" version="2.4.2" /> <plugin name="cordova-plugin-x-toast" source="npm" version="2.6.0" /> <plugin name="cordova.plugins.diagnostic" source="npm" /> <preference name="cordova.plugins.diagnostic.modules" value="LOCATION" /> <plugin spec="https://github.com/remoorejr/cordova-open.git" source="git" /> <plugin name="cordova-plugin-open-app-settings" source="npm" /> <plugin spec="https://github.com/remoorejr/cordova-plugin-alpha-wkwebview-file-xhr.git" source="git" /> <plugin name="cordova-sqlite-ext" spec="0.9.1" /> <plugin name="cordova-plugin-zip" source="npm" version="3.1.0" /> <!-- PLUGIN SECTION END --> <!-- cordova-plugin-wkwebview-engine support --> <platform name = "ios"> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> <!--wkwebview-file-xhr options --> <preference name="InterceptRemoteRequests" value="all" /> <preference name="NoS3Intercepts" value="true" /> <!-- for Instant Update Support --> <allow-navigation href="*" /> </platform> <!-- end cordova-plugin-wkwebview-engine support -->
Justin Taylor