Hi Günther,
It does not work for me even in a simple example. Am I doing something wrong?, I checked that it works sometimes with pictures located in the albums I previously mentioned, so perhaps the issue is not related to the albums themselves.
import Felgo 3.0
import QtQuick 2.10
App {
Connections {
target: nativeUtils
onImagePickerFinished: {
if (accepted) image.source = path
}
}
Image{
id: image
anchors.fill: parent
autoTransform: true
fillMode: Image.PreserveAspectFit
MouseArea{
anchors.fill: parent
onClicked: nativeUtils.displayImagePicker(qsTr("Select picture"))
}
AppText{
anchors.centerIn: parent
text: qsTr("Click here")
}
}
}
The Project-Info.plist is the one by default
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>TestImagePicker</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.wizardEVAP.TestImagePicker</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>UIStatusBarHidden</key>
<true/>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSPhotoLibraryUsageDescription</key>
<string>App would like to access the library.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>App would like to save images taken with camera.</string>
<key>NSCameraUsageDescription</key>
<string>App would like to access the camera.</string>
</dict>
</plist>
The log
stale focus object QObject(0x0) , doing manual update
stale focus object QObject(0x0) , doing manual update
file:///private/var/containers/Bundle/Application/CBCB90DE-4387-49F1-BFD3-8851D9FCC0A8/TestImagePicker.app/qml/Main.qml:12:5: QML Image: Cannot open: file:assets-library://asset/asset.JPG%3Fid=1F0E4ECD-5895-4C96-A173-C5B0E23C11F4&ext=JPG
stale focus object QObject(0x0) , doing manual update
file:///private/var/containers/Bundle/Application/CBCB90DE-4387-49F1-BFD3-8851D9FCC0A8/TestImagePicker.app/qml/Main.qml:12:5: QML Image: Cannot open: file:assets-library://asset/asset.HEIC%3Fid=685848AE-7CF4-4C19-BBA7-CFC44DC1E8ED&ext=HEIC
When I select a picture, it takes some time and I can see a spinner over the picture which probably is manipulating the image (compressing or reducing it). I do not know if this can be related to the issue.