-
I have an Ionic project with capacitor. Now I'm trying out this code: const result = await FilePicker.pickFiles({
types: ["image/png", "image/jpeg", "application/pdf"],
multiple: false,
readData: false,
}); The UI for selecting the file opens without any problems. But when I select the file, nothing happens. The file picker works perfectly fine on iOS and in the web. Just the android implementation has this behaviour. This are the permissions I have set in the app. Maybe I'm missing something? The permissions are also set correctly when I look at the app info. The app should be able to access the files. It seems to be a misconfiguration in my app because it works with the Minimal, Reproducible Example. Does anyone have a hint for me, what the problem could be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay I found the problem: The launch mode on my activity was set to "singleInstance" and with that, it doesn't work. When I set the launch mode to "singleTask" it works like intended. Same thing happens in the Minimal, Reproducible Example. Should we open an issue for that, or is that behaviour intended? |
Beta Was this translation helpful? Give feedback.
Okay I found the problem: The launch mode on my activity was set to "singleInstance" and with that, it doesn't work. When I set the launch mode to "singleTask" it works like intended. Same thing happens in the Minimal, Reproducible Example. Should we open an issue for that, or is that behaviour intended?