You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/22 16:48:53 UTC

[GitHub] superainovacoes commented on issue #328: Can not open camera when I click input type="file" on Android devices

superainovacoes commented on issue #328: Can not open camera when I click input type="file" on Android devices
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/328#issuecomment-456472870
 
 
   Hi, we have the same problem. Use this url to test: https://mobilehtml5.org/ts/?id=23
   
   android using browser : open camera (ok)
   android using inappbrowser.open : open file explorer (error)
   
   ios using browser: open camera (ok)
   ios using inappbrowser.open: open camera (ok)
   
   config.xml
   ```
         <preference name="phonegap-version" value="cli-8.1.1" />
          
          <feature name="http://api.phonegap.com/1.0/camera" />
   	<plugin name="cordova-plugin-camera" source="npm">
   		<variable name="CAMERA_USAGE_DESCRIPTION" value="camera string." />
   	</plugin>
   
   	<plugin name="cordova-plugin-inappbrowser" source="npm" />
   	<plugin name="cordova-plugin-wkwebview-engine" source="npm" />
   	<feature name="CDVWKWebViewEngine">
   		<param name="ios-package" value="CDVWKWebViewEngine" />
   	</feature>
   	<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
   
           <platform name="android">
                   <preference name="android-minSdkVersion" value="26" />
   		<preference name="android-targetSdkVersion" value="26" />
   
   		<config-file parent="/*" target="app/src/main/AndroidManifest.xml">
   			<uses-permission android:name="android.permission.CAMERA" />
   		</config-file>
   		<config-file parent="/*" target="AndroidManifest.xml">
   			<uses-permission android:name="android.permission.CAMERA" />
   		</config-file>
          </platform>
   
          <platform name="ios">
            <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
   			<string>camera string.</string>
   		</edit-config>
   		<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
   			<string>camera string.</string>
   		</edit-config>
   		<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
   			<string>camera string.</string>
   		</edit-config>
          </platform>
   ```
   
   @janpio update on this since it was open?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org