-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tauri dialog box not opening in Android 15 #2423
Comments
i tested it less than a week ago for #2410 and didn't see any issues 🤔 Can you share your code and the output of |
I'll see if I can get a minimal version of the code. The codebase has gotten semi big but can trim it to be MVP to reproduce the bug.
|
@FabianLars Here's a "minimal" example where I can successfully open a file on linux or mac but not on Android and experiences the bug above. The minimal example reproduces the error for me. I still haven't tried on a debugger. I don't recall how to test that with tauri atm. https://github.com/xksteven/tauri_android_bug/tree/main I stripped down the app so it doesn't really do anything other than try to open a file. Relevant file location where I open a dialog box Let me know if there's anything else I need to provide to help out. |
This appears to be due to the following code
We need to use Intent.ACTION_OPEN_DOCUMENT, which opens the system's file picker app, instead of Intent.ACTION_PICK.
|
Same here in Android 8 (real device) and Android 12 (emulator).
tauri info:
|
I was trying to test this out on a phyisical Android 15 device. Logs read by running
adb logcat
. I can test on other virtual devices if desired.Main error is here:
No Activity found to handle Intent { act=android.intent.action.PICK typ=application/*...
Which seems to indicate that the plugin needs to optionally use a different intent such as
new Intent(Intent.ACTION_OPEN_DOCUMENT);
I'm not that familiar with the tauri plugin codebase otherwise I'd make the change myself.
Longer logs to give more context.
The text was updated successfully, but these errors were encountered: