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
331 stars 384 forks source link

PathNotFoundException only Android only when app is closed #284

Closed rbarzel closed 6 months ago

rbarzel commented 6 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 6 months ago

Found the issue. Bug in my code.