search

Home  >  Q&A  >  body text

html5 - 在iOS10中,做原生跳H5时候白屏

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

天蓬老师天蓬老师2863 days ago934

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 13:58:22

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 13:58:22

    Sit back and study~~

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 13:58:22

    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...

    reply
    0
  • Cancelreply