|
[多端开发]
安卓手机下载app,packageinfo is null
[复制链接]
packageinfo is null
有些手机正常,有些手机不正常,会出现packageinfo is null
api.download({
url: item.android_url,
savePath: 'fs://download1/' + android_url,
report: true,
cache: true,
allowResume: true
}, function (ret, err) {
console.log(JSON.stringify(ret))
if (ret.state == 1) {
that.list[index].finish_percent = ret.progress + '%'
api.toast({
msg: '下载完毕!'
})
setTimeout(function () {
console.log('111---')
that.list[index].is_downloading = false
api.installApp({
appUri: 'fs://download1/' + android_url
});
}, 500)
} else {
that.list[index].finish_percent = ret.progress + '%'
}
});
|
|