KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
334 stars 396 forks source link

PathNotFoundException only Android only when app is closed #284

Closed rbarzel closed 8 months ago

rbarzel commented 8 months ago

On Android, if the flutter app is closed then image path provided by the share intent seems not to exist. I see the following error,

PathNotFoundException: Cannot retrieve length of file, path = '/data/user/0/net.pictorium.fomoto/cache/IMG_9432.JPG' (OS Error: No such file or directory, errno = 2)

Everything works perfectly on iOS, and on Android if my flutter app is open when the share intent is sent. Any thoughts on the cause or how to fix this? Thanks!

rbarzel commented 8 months ago

Found the issue. Bug in my code.