objective-c - 京东iOS ,APP 热更新是怎么实现的?
巴扎黑
巴扎黑 2017-04-18 09:06:06
0
5
792

像京东APP 里面内容,底部ICON ,桌面app图标等等,都能热更新。。请问用的是什么技术?

巴扎黑
巴扎黑

reply all(5)
刘奇

All pictures are obtained online and offline locally. If the server is changed, they will be updated naturally. Hot updates are definitely available online for pictures.

洪涛

The packet capture upstairs is already very obvious
These pictures of jd can be obtained every time
No logic is involved anyway
If logic is involved, you can use JSPatch these things

洪涛

It is related to JSPatch, you can check the related documents

阿神

In addition to the method mentioned above: JD.com’s app does not seem to be purely native. Both ionic and react native can achieve hot updates.

阿神

The server has a
version number + file list, my name is m.manifest
When a new visit comes, compare the local and server m.manifest files and find that different version numbers are found, then reload the file according to the file list
&lt Just add manifest to ;html> tag

<html manifest="m.manifest">  

Of course you need to add some access permissions and update logic, you can check the manifest

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template