question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This plugin makes Cordova app device ready not firing

See original GitHub issue

Bug Report

Problem

cordova-plugin-dialogs breaks Cordova. Never fires deviceready. Tested with an empty repo. Added a few plugins.

<plugin name="cordova-plugin-device" spec="^2.1.0" />
<plugin name="cordova-plugin-network-information" spec="^3.0.0" />
<plugin name="cordova-plugin-statusbar" spec="^3.0.0" />

Everything works fine, deviceready is fired. Then adding

<plugin name="cordova-plugin-dialogs" spec="^2.0.2" />

Breaks the app, deviceready never fired

Environment, Platform, Device

Reproduced on device Android 6.0.1

Version information

Cordova 11.0.0 cordova-android 10.1.2

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
globules-iocommented, Jun 27, 2022

I can reproduce here 100% of the time, tested on real device. Will debug from AS.

0reactions
globules-iocommented, Jun 27, 2022

Not sure what’s going on … Added/Removed the plugin a few times while doing test, now deviceready fires… Will close for now but this is just weird.

Read more comments on GitHub >

github_iconTop Results From Across the Web

deviceready not firing in cordova - Stack Overflow
deviceready event is essential to any application. It signals that Cordova's device APIs have loaded and are ready to access.
Read more >
deviceready - Apache Cordova
The Cordova deviceready event fires once Cordova has fully loaded. After the device has fired, you can safely make calls to Cordova function....
Read more >
[Android] deviceready has not fired after 5 seconds. · Issue #600
I'm using phonegap, When I start the app with "cordova-pluign-ionic-webview", i got this error: deviceready has not fired after 5 seconds. Step ...
Read more >
Cordova function onDeviceReady not Working in F7 - Questions
The way you are calling/using functions inside onDeviceReady is looks fine. document.addEventListener('deviceready', onDeviceReady, false);. Are ...
Read more >
cordova deviceready not firing ios
Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found