如果有对web网页,特别是H5打包成APP的需求,这篇文章是你需要的,可完美解决你的问题!
便于手机浏览,做成二维码扫码浏览。
JSON自动更新安卓代码:
#check.json
[
{
"version":1,
"name":1.0,
"miniVersion":1,
"description":"asdfas/n",
"forceUpdate":false,
"size":3065,
"uri":"h5app-1.0.apk"
},
{
"version":2,
"name":1.1,
"miniVersion":1,
"description":"bbb/n",
"forceUpdate":"true",
"size":3065,
"uri":"h5app-1.1.apk"
},
{
"version":3,
"name":1.1,
"miniVersion":1,
"description":"bbb/n",
"forceUpdate":"false",
"size":3065,
"uri":"h5app-1.1.apk"
}
]