html5 - 在iOS10中,做原生跳H5时候白屏
天蓬老师
天蓬老师 2017-04-17 13:56:22
0
3
915

在iOS10,做原生页面跳转h5(ionic)写的页面的时候,加载失败(白屏),按home键再回来后,则能完成渲染。其他系统则不会这样。
会不会是因为cordova版本不是最新

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
小葫芦

Has the author found the reason? I encountered it too, please share

小葫芦

Sit back and study~~

大家讲道理

You need to add gap://ready and file: permissions to your header whitelist. The entire whitelist can be written as follows
<meta http-equiv="Content-Security-Policy" content=" default-src gap://ready file:; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'unsafe-inline' 'unsafe-eval '">

Reference: http://stackoverflow.com/ques...

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