Comments (7)
我这是在模拟器上测试的 真机没试
from gswebview.
刚刚修复了,试试看。
from gswebview.
好,这个已经可以了,我有个问题想请教下:就是如果WebView和JS交互拿数据,这个数据很大,app在获取这个数据的时候有时会造成app闪退,你有没有什么方案或者思路可以参考的。
from gswebview.
其实你有看到Demo中,JS传来的数据只是一个字典,数据的交互极其微弱。想知道的是,JS需要传给你的数据是什么,能大到怎样的程度?至今还未碰到这种情况下的崩溃问题,能否查看一下crash日志?再次谢谢你找出的问题,在自己未集成的情况下,你帮我踩了这些坑,过意不去。
from gswebview.
那个数据是通过网页生成的图片的base64编码(原图所以可能比较大),图片过多时就会造成闪退(100张),但是这个并不是你这个框架的问题,因为我用原生的UIWebView和WKWebView图片过多也是会崩溃的,我只是想想请教下有没有什么思路可以解决这个问题,iOS这边我得到的这个数据很大,我应该怎么来处理?
from gswebview.
闪退的原因,是内存过大
from gswebview.
即使是我司的社交聊天功能,发送图片时,也最多只是上传9张,微信做到了十张,因为一次性将这么多图片加入内存,很容易受到警告
from gswebview.
Related Issues (5)
- 有两个问题 HOT 3
- wkwebView如何添加cookie HOT 2
- 这里当webView是WKWebView的时候应该会执行两次吧 HOT 1
- Cookie 怎么设置? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gswebview.