I have learned some knowledge about mixed App before, and then I have learned some node and carried out some practices.
Friends travelIs a hybrid app, the hybrid framework is written by itself, and now plans to separate the hybrid framework and open source
Now we have a question: Do you need single instantiation for browsers embedded in hybrid App?
As far as I know, the situation is:
Advantages of single instantiation:
- It has a certain effect on the memory leak problem disturbing ios webview.
- There is no need to repeatedly load js-bridge files and register js-api events.
The disadvantages of single instantiation:
- When switching from the native page to the web page, if the browser has already loaded other web pages, there will be an instant black screen (about 0.2 seconds)
- The problem of simultaneous call crash is easy to occur.
Startup is set via apple-touch-startup-image