[Common] Extending deviceready timeout to 10 sec 64/178864/1 accepted/tizen/unified/20180514.144930 submit/tizen/20180514.095841
authorRafal Walczyna <r.walczyna@partner.samsung.com>
Mon, 14 May 2018 09:47:47 +0000 (11:47 +0200)
committerRafal Walczyna <r.walczyna@partner.samsung.com>
Mon, 14 May 2018 09:47:47 +0000 (11:47 +0200)
Timeout has been extended to 10 seconds, because when device is
busy on other tasks then deviceready is not always fired

Change-Id: Ibbeef1cfa89fe34834c73b259edea13d10304457
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
src/lib/cordova-5.1.1.js

index cb58c1d..ec7e2d2 100644 (file)
@@ -900,11 +900,11 @@ function logUnfiredChannels(arr) {
 
 window.setTimeout(function() {
  if (channel.onDeviceReady.state != 2) {
-     console.log('deviceready has not fired after 5 seconds.');
+     console.log('deviceready has not fired after 10 seconds.');
      logUnfiredChannels(platformInitChannelsArray);
      logUnfiredChannels(channel.deviceReadyChannelsArray);
  }
-}, 5000);
+}, 10000);
 
 //Replace navigator before any modules are required(), to ensure it happens as soon as possible.
 //We replace it so that properties that can't be clobbered can instead be overridden.