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

本地图片上传的优化,借鉴之手机端QQ #49

Open
mishe opened this issue Dec 9, 2015 · 0 comments
Open

本地图片上传的优化,借鉴之手机端QQ #49

mishe opened this issue Dec 9, 2015 · 0 comments

Comments

@mishe
Copy link
Owner

mishe commented Dec 9, 2015

今天测试同事发现的一个比较有意思的玩意,手机QQ的聊天输入框,那边有个图片上传的功能,发现刚点击,图片还没有上传呢,就出现了,可以这个体验非常不错,初步怀疑是近期上传过的历史记录;

为了证实自己的想法,我马上拿起我自己的手机QQ,一看我的手机没有这个功能,发现提示,原来是要开启手机QQ访问手机相册的权限;

好吧,马上设置,给手Q权限访问相册,发现聊天上传图片按钮下,出现了手机中的所有相册的图片缩略图列表;看上去不错,滑动体验也很好。

结合WEBAPP可以使用本地缓存来存储用户的交互数据和行为,虽然做不到直接访问用户手机相册的功能,但完全有能力可以保存用户上传过的图片。

鉴于此,是否可以采用简单的方法来存储用户数据,本实现类似的效果呢,我看完全是没有问题的,这样的体验也可以有效提升,特别是结合用户的图片使用频率以及时间间隔做一个简单排序。

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

1 participant