0

i'm developping an android app using flutter, and the goal now would be to be able to open and read files (with my custom extension) directly with the app.

I successfully set up the custom intent in the androidManifest and created the channel between kotlin's MainActivity and the flutter app itself (see THIS for reference). Problem is, when i receive that file via whatsapp or similar, the file path received by my app is not a real/full/absolute one, so it always ends up returning a "file not found" error.

In my specific case, my flutter app could receive "from the channel" both the full path or the content of the file (it's just strings), both solutions could work.

Any idea about how i could solve the problem? Thanks for your help

0 Answers0