I have a custom-built Player app (started from scratch using sample Player app in AppStudio) which is meant to download and load other AppStudio apps (referred to as child apps here) I've built. I built the app for iOS devices and I'm testing it on an iPad Mini 5th Gen.
I run into issues when implementing an "Upload Photo" feature into one of my child apps. Around 50% of the time, the app crashes and becomes unresponsive when opening the FileDialog. I've narrowed the issue down to the folder property of FileDialog which is pointing to
Qt.platform.os == "ios" ? "file:assets-library://" : shortcuts.pictures
I'm running on iOS, so it gets file:assets-library as its value. If I change this value to
StandardPaths.standardLocations(StandardPaths.PicturesLocation)[2]
this works without crashing perfectly. But I want to point the user to the Pictures directory, so this isn't useful.
Also worth mentioning is that all this works perfectly as expected, in Esri's original AppStudio player app. I can upload my child app that contains "Upload Photo" functionality to AppStudio Player and it works. It's only when I upload to my custom-built app and run my child app in there that it crashes.
This is similar to the issue @Anonymous User was having in this thread:
https://community.esri.com/t5/arcgis-appstudio-questions/file-dialog-shortcuts-pictures-crashes-a-built-app-although-not/m-p/768939
Any idea why this is crashing and what I can do to fix it? Thanks!