离子2设备准备好在2000ms内没有开火 [英] Ionic 2 device ready did not fire within 2000ms

查看:161
本文介绍了离子2设备准备好在2000ms内没有开火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用离子运行ios <运行应用程序后,我在 IOS 平台上的 ionic 2 beta 11 内工作/ code> 白色屏幕 出现并收到以下消息:

I'm working within ionic 2 beta 11 on IOS platforms after run the app using ionic run ios a white screen appear and got the below message:

Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.

有关于此的任何建议吗?究竟是什么问题?

推荐答案

由于几个问题,这可能会发生,所以你必须尝试一些事情:

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


  1. 通过运行离子状态重置 - 平台重新安装平台

  2. 在执行此操作之前运行离子状态重置 - 插件重新安装插件请检查所有插件是否包含在 package.json file。

  3. 就像@joshmorony所说这里,尝试通过更改 Content-Security-Policy 来自您的 index.html 这个:

  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' *">


这篇关于离子2设备准备好在2000ms内没有开火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆