Skip to content
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

我在分享图片的时候有时候会走三个阶段,前两次都失败,分别显示该文件不存在和该文件为无效文件,然后第三次就成功了,也没有出现报错,请问是问什么,该怎么解决 #25

Closed
54lianxi opened this issue Mar 23, 2020 · 2 comments

Comments

@54lianxi
Copy link

我在分享图片的时候有时候会走三个阶段,前两次都失败,分别显示该文件不存在和该文件为无效文件,然后第三次就成功了,也没有出现报错,请问是问什么,该怎么解决

@54lianxi
Copy link
Author

@zhouteng0217 ,can you give me a answer

@zhouteng0217
Copy link
Owner

@54lianxi 我也尝试了下,在android系统里面,分享多张位于app内置存储的应用沙盒内(flutter代码的getApplicationDocumentsDirectory目录)下的图片到QQ时,容易出现这样的问题,我猜测可能是QQ的某些限制所致。

但是分享图库,或者外置存储里面的图片到qq时,却没有这样的问题,因此在demo里面,分享多图时,我将图片存储到外置存储的沙盒里面(也就是getExternalStorageDirectory目录),再进行分享,发现基本上不会有这样的问题。

而且对于微信来说,不支持多图分享内置存储应用沙盒里面的图片。 所以建议,将图片,存储到外置存储目录下,再进行分享。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants