Ionic 2 device ready did not fire within 2000ms

前端 未结 2 1126
囚心锁ツ
囚心锁ツ 2021-01-08 00:21

I\'m working within ionic 2 beta 11 on IOS platforms after run the app using ionic run ios a white screen

相关标签:
2条回答
  • 2021-01-08 00:39

    This could be happening due to several issues, so you'd have to try a few things:

    1. Reinstall the platform by running ionic state reset --platform
    2. Reinstall your plugins by running ionic state reset --plugins before doing this please check that all your plugins are included in your package.json file.
    3. Just like @joshmorony says here, try by changing the Content-Security-Policy from your index.html for this one:

      <meta http-equiv="Content-Security-Policy" content="default-src gap://ready file://* *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *”>
      
    0 讨论(0)
  • 2021-01-08 00:53

    As mentioned in a comment of the other answer, in new version of the CLI you should delete the plugins and platforms folders manually. Then run :

    ionic cordova prepare
    
    0 讨论(0)
提交回复
热议问题