-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2 working perfectly, v3 branch not working #110
Comments
The block of custom config you've listed should/does work fine with console output
So try the following:
|
Here is my complete <?xml version='1.0' encoding='utf-8'?>
<widget id="com.myapp" ios-CFBundleIdentifier="${PRODUCT_BUNDLE_IDENTIFIER}" version="2.1.2"
xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>MyApp</name>
<description>
My App description...
</description>
<author email="[email protected]" href="http://example.com.com/">
Name Here
</author>
<content src="index.html"/>
<access launch-external="yes" origin="*"/>
<allow-navigation href="*"/>
<platform name="ios">
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine"/>
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
<preference name="deployment-target" value="8.0"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
<icon height="57" src="resources/ios/icon/icon.png" width="57"/>
<icon height="114" src="resources/ios/icon/[email protected]" width="114"/>
<icon height="40" src="resources/ios/icon/icon-40.png" width="40"/>
<icon height="80" src="resources/ios/icon/[email protected]" width="80"/>
<icon height="50" src="resources/ios/icon/icon-50.png" width="50"/>
<icon height="100" src="resources/ios/icon/[email protected]" width="100"/>
<icon height="60" src="resources/ios/icon/icon-60.png" width="60"/>
<icon height="120" src="resources/ios/icon/[email protected]" width="120"/>
<icon height="180" src="resources/ios/icon/[email protected]" width="180"/>
<icon height="72" src="resources/ios/icon/icon-72.png" width="72"/>
<icon height="144" src="resources/ios/icon/[email protected]" width="144"/>
<icon height="76" src="resources/ios/icon/icon-76.png" width="76"/>
<icon height="152" src="resources/ios/icon/[email protected]" width="152"/>
<icon height="29" src="resources/ios/icon/icon-small.png" width="29"/>
<icon height="58" src="resources/ios/icon/[email protected]" width="58"/>
<icon height="87" src="resources/ios/icon/[email protected]" width="87"/>
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640"/>
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750"/>
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242"/>
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536"/>
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768"/>
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640"/>
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320"/>
<config-file parent="UIStatusBarStyle" platform="ios" target="*-Info.plist" mode="replace">
<string>UIStatusBarStyleLightContent</string>
</config-file>
<config-file parent="UISupportedInterfaceOrientations" platform="ios" target="*-Info.plist" mode="replace">
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</config-file>
<config-file parent="UISupportedInterfaceOrientations~ipad" platform="ios" target="*-Info.plist" mode="replace">
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription" mode="replace">
<string>Allows to get your location to show your position on map.</string>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="NSMicrophoneUsageDescription" mode="replace">
<string>Allows to attach sound from microphone to a log.</string>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="NSCameraUsageDescription" mode="replace">
<string>Allows to attach new images from camera to an asset.</string>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="NSPhotoLibraryUsageDescription" mode="replace">
<string>Allows to attach images from library to an asset.</string>
</config-file>
</platform>
<platform name="android">
<preference name="android-minSdkVersion" value="16"/>
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png"/>
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png"/>
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png"/>
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png"/>
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png"/>
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png"/>
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png"/>
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png"/>
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png"/>
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png"/>
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png"/>
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png"/>
</platform>
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar"/>
</feature>
<preference name="Fullscreen" value="false"/>
<preference name="webviewbounce" value="false"/>
<preference name="StatusBarStyle" value="default"/>
<preference name="AutoHideSplashScreen" value="false"/>
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<preference name="ShowSplashScreenSpinner" value="false"/>
<preference name="loadUrlTimeoutValue" value="60000"/>
<preference name="android-manifest/application/activity/@android:theme" value="@android:style/Theme.DeviceDefault"/>
<preference name="cordova-custom-config-hook" value="before_compile" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
<plugin name="cordova-plugin-statusbar" spec="~2.2.0"/>
<plugin name="cordova-plugin-device" spec="~1.1.1"/>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.0"/>
<plugin name="cordova-plugin-screen-orientation" spec="~2.0.0"/>
<plugin name="cordova-plugin-globalization" spec="~1.0.3"/>
<plugin name="cordova-plugin-whitelist" spec="~1.3.0"/>
<plugin name="cordova-plugin-network-information" spec="~1.3.0"/>
<plugin name="cordova-plugin-file" spec="~4.3.0"/>
<plugin name="cordova-plugin-file-transfer" spec="~1.6.0"/>
<plugin name="cordova-plugin-geolocation" spec="~2.4.0">
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="Needed to display current user position on the map."/>
</plugin>
<plugin name="cordova-plugin-media-capture" spec="~1.4.0">
<variable name="CAMERA_USAGE_DESCRIPTION" value="Allows to attach new images from camera to an asset."/>
<variable name="MICROPHONE_USAGE_DESCRIPTION" value="Allows to attach new images from camera to an asset."/>
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Allows to attach photos from the library to an asset."/>
</plugin>
<plugin name="cordova-plugin-camera" spec="~2.2.0"/>0
<plugin name="cordova-plugin-image-picker" spec="https://github.com/wymsee/cordova-imagePicker.git#v1.1.3">
<variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="Allows to attach photos from the library to an asset."/>
</plugin>
<plugin name="cordova-plugin-datepicker"
spec="https://github.com/VitaliiBlagodir/cordova-plugin-datepicker.git#bd87605936b450dc32de0cddfb2ddb4936803fe0"/>
<plugin name="phonegap-plugin-barcodescanner" spec="./custom-plugins/phonegap-plugin-barcodescanner"/>
<plugin name="cordova-plugin-inappbrowser" spec="~1.5.0"/>
<plugin name="cordova-plugin-media" spec="~2.4.0"/>
<plugin name="cordova-plugin-wkwebview-engine"
spec="https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#ef65cb6041949210b8e1680d9a2ef1feb3ebc9b1"/>
<plugin name="phonegap-plugin-push" spec="~1.9.0">
<variable name="SENDER_ID" value="757839759100"/>
</plugin>
<plugin name="cordova-plugin-camera" spec="~2.3.0"/>
<plugin name="cordova-custom-config" spec="~3.0.14"/>
<plugin name="cordova-plugin-ignore-lint-translation" spec="~0.0.1"/>
<engine name="ios" spec="~4.3.0"/>
<engine name="android" spec="~6.1.0"/>
<plugin name="cordova-plugin-crosswalk-webview" spec="~2.2.0">
<variable name="XWALK_VERSION" value="22+"/>
<variable name="XWALK_LITEVERSION" value="xwalk_core_library_canary:17+"/>
<variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect"/>
<variable name="XWALK_MODE" value="embedded"/>
<variable name="XWALK_MULTIPLEAPK" value="true"/>
</plugin>
<plugin name="uk.co.workingedge.phonegap.plugin.istablet" spec="~1.1.1"/>
</widget> I added the
I start clean without
Relevant logs:
Running
My plist should then be updated correctly, but it is not.
Done, but I can't see anything I haven't done or tried :( |
You have an old version of the plugin pinned in your config.xml. The current version is Please update to the latest version and re-test. |
Just tried with 3.1.3, same thing. |
I've gone through your config.xml in detail and I think you've found a bug. So the reason that the config changes are not getting applied is this preference in your config.xml:
If seems that this git merge inadvertently wiped out the support for using I'll commit a fix and push it out in a patch release as |
Oops, didn't mean for that commit to close it quite yet. |
But If you can confirm this resolves the issue at your end, then this issue can be closed. |
Just tested your new version, it works perfectly 👍 |
In my
config.xml
, I have these settings:When using
cordova-custom-config@2
, it works perfectly.When I try to update to
cordova-custom-config@3
(any version), nothing works, as if the plugin was not present at all. For instance, all the plugin dependencies are installed correctly, and I can see in the log that the plugin should do its job, but in fact doesn't.Did I miss something?
Thanks for your help
EDIT: I'm using
[email protected]
on latest OSX version, withnpm@3
and[email protected]
The text was updated successfully, but these errors were encountered: