hello
i have a app was working fine with phonegap build
and i try to build it by volt build…
the camera and GPS not working
this is my old config.xml
i try a lot of changes but no good results…
hello
i have a app was working fine with phonegap build
and i try to build it by volt build…
the camera and GPS not working
this is my old config.xml
i try a lot of changes but no good results…
Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
Hi,
Your config.xml file did not come through.
More importantly, can you give details about what isn’t working? Are there any error messages?
There have been many changes to Android and iOS in the past year. PhoneGap was badly behind. You will probably need to make some adjustments to your app to keep up with changed requirements for iOS and Android. (VoltBuilder is fully up to date).
Did you see this in my last reply?
GPS AND CAMIRA NOT OPENING
and nothing return
So the app is working normally otherwise?
Is this on Android or iOS?
android app
the app work
and printing work
but camera and gps not working
are there an example wich opening camira and getting GPS???
Have you looked to see if there are any errors on the Chrome Remote Console?
I find the right way:
<plugin name="cordova-plugin-device" spec="2.0.3" />
<plugin name="cordova-plugin-splashscreen" spec="6.0.0" />
<plugin name="cordova-plugin-headercolor" spec="1.0.0" />
<plugin name="cordova-plugin-whitelist" spec="1.3.4" />
<plugin name="cordova-plugin-file" spec="6.0.2" />
<plugin name="cordova-plugin-geolocation" spec="4.1.0" />
<plugin name="cordova-plugin-globalization" spec="1.11.0" />
<plugin name="cordova-plugin-print-pdf" spec="4.0.2" />
<plugin name="cordova-plugin-camera" spec="5.0.1">
<variable name="CAMERA_USAGE_DESCRIPTION" value="Use Camera" />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Select Photo" />
</plugin>
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>need camera access to take pictures</string>
</edit-config>
<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
<string>need photo library access to get pictures from there</string>
</edit-config>
<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
<string>need location access to find things nearby</string>
</edit-config>
<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
<string>need photo library access to save pictures there</string>
</edit-config>
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="SplashScreen" value="screen" />
<platform name="android">
<preference name="HeaderColor" value="#2980b9" />
<preference name="SplashMaintainAspectRatio" value="false" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashScreenDelay" value="3300" />
<preference name="FadeSplashScreen" value="true"/>
<preference name="FadeSplashScreenDuration" value="1100"/>
<preference name="SplashScreenBackgroundColor" value="#fff" />
<preference name="ShowSplashScreen" value="true" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="android-build-tool" value="gradle" />
<preference name="android-targetSdkVersion" value="29" />
<preference name="android-maxSdkVersion" value="29" />
<preference name="android-minSdkVersion" value="23" />
</platform>
<edit-config file="AndroidManifest.xml" target="/*/uses-permission" mode="merge">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.BIND_PRINT_SERVICE" />
<uses-permission android:name="android.permission.BIND_PRINT_SPOOLER_SERVICE" />
<uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE" />
<uses-permission android:name="android.permission.BIND_TRUST_AGENT" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.NETWORK_ACCESS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
</edit-config>
<edit-config file="AndroidManifest.xml" target="/*" mode="merge">
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" />
</edit-config>
<allow-navigation href="*"/>
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />
<allow-navigation href="http://docs.google.com/*" />
<allow-navigation href="https://docs.google.com/*" />
<allow-navigation href="http://*.google.com/*" />
<allow-navigation href="https://*.google.com/*" />
<allow-intent href="market:*"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="http://docs.google.com/*" launch-external="yes" />
<allow-intent href="http://*.google.com/*" launch-external="yes" />
<allow-intent href="https://docs.google.com/*" launch-external="yes" />
<allow-intent href="https://*.google.com/*" launch-external="yes" />
<allow-intent href="https://wa.me/*" launch-external="yes" />
<allow-intent href="https://whatsapp.com/*" launch-external="yes" />
<allow-intent href="whatsapp:*" launch-external="yes" />
<access origin="*" />
<access origin="http://*" />
<access origin="https://*" />
<access launch-external="yes" origin="http://docs.google.com/*" />
<access launch-external="yes" origin="http://*.google.com/*" />
<access launch-external="yes" origin="https://docs.google.com/*" />
<access launch-external="yes" origin="https://*.google.com/*" />
<access launch-external="yes" origin="tel:*" />
<access launch-external="yes" origin="geo:*" />
<access launch-external="yes" origin="sms:*" />
<platform name="android">
<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" />
</platform>
<platform name="android">
<splash src="resources/android/splash/splash-land-hdpi.png" density="land-hdpi"/>
<splash src="resources/android/splash/splash-land-ldpi.png" density="land-ldpi"/>
<splash src="resources/android/splash/splash-land-mdpi.png" density="land-mdpi"/>
<splash src="resources/android/splash/splash-land-xhdpi.png" density="land-xhdpi"/>
<splash src="resources/android/splash/splash-land-xxhdpi.png" density="land-xxhdpi"/>
<splash src="resources/android/splash/splash-port-hdpi.png" density="port-hdpi"/>
<splash src="resources/android/splash/splash-port-ldpi.png" density="port-ldpi"/>
<splash src="resources/android/splash/splash-port-mdpi.png" density="port-mdpi"/>
<splash src="resources/android/splash/splash-port-xhdpi.png" density="port-xhdpi"/>
<splash src="resources/android/splash/splash-port-xxhdpi.png" density="port-xxhdpi"/>
</platform>
Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.