MOBILE-3320 camera: Fix for Android 11
parent
f75ca609b9
commit
c75f3774ad
12
config.xml
12
config.xml
|
@ -224,6 +224,16 @@
|
||||||
<config-file parent="/*" target="AndroidManifest.xml">
|
<config-file parent="/*" target="AndroidManifest.xml">
|
||||||
<uses-feature android:name="android.hardware.bluetooth" android:required="false" />
|
<uses-feature android:name="android.hardware.bluetooth" android:required="false" />
|
||||||
</config-file>
|
</config-file>
|
||||||
|
<config-file parent="/*" target="AndroidManifest.xml">
|
||||||
|
<queries>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.media.action.IMAGE_CAPTURE" />
|
||||||
|
</intent>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.GET_CONTENT" />
|
||||||
|
</intent>
|
||||||
|
</queries>
|
||||||
|
</config-file>
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="ios">
|
<platform name="ios">
|
||||||
<resource-file src="GoogleService-Info.plist" />
|
<resource-file src="GoogleService-Info.plist" />
|
||||||
|
@ -248,7 +258,7 @@
|
||||||
<edit-config file="*-Info.plist" mode="merge" target="CFBundleShortVersionString">
|
<edit-config file="*-Info.plist" mode="merge" target="CFBundleShortVersionString">
|
||||||
<string>3.9.5</string>
|
<string>3.9.5</string>
|
||||||
</edit-config>
|
</edit-config>
|
||||||
<edit-config target="CFBundleLocalizations" file="*-Info.plist" mode="overwrite">
|
<edit-config file="*-Info.plist" mode="overwrite" target="CFBundleLocalizations">
|
||||||
<array>
|
<array>
|
||||||
<string>en</string>
|
<string>en</string>
|
||||||
</array>
|
</array>
|
||||||
|
|
|
@ -17,6 +17,10 @@ import { Camera, CameraOptions } from '@ionic-native/camera/ngx';
|
||||||
|
|
||||||
import { CoreEmulatorCaptureHelper } from './capture-helper';
|
import { CoreEmulatorCaptureHelper } from './capture-helper';
|
||||||
|
|
||||||
|
// @todo remove android.media.action.IMAGE_CAPTURE and android.intent.action.GET_CONTENT entries
|
||||||
|
// from config.xml once https://github.com/apache/cordova-plugin-camera/issues/673 is resolved.
|
||||||
|
// (this is written here because comments get stripped out from config.xml)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emulates the Cordova Camera plugin in browser.
|
* Emulates the Cordova Camera plugin in browser.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue