apache / apache/cordova-browser

Cordova "deviceready" not getting fired on browser platform

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
174
Forks
86
Avg merge
8h 15m
Merged PRs (30d)
6

Description

# Bug Report

## Problem
**deviceready** not getting fired on Browser Platform while running

> cordova run browser

Getting below message on console:

> deviceready has not fired after 5 seconds.
> Channel not fired: onCordovaReady

### What is expected to happen?

After executing `cordova run browser` deviceready content should get executed, followed by APP getting loaded in the browser.

### What does actually happen?

**deviceready** content doesn't gets executed, resulting APP not getting loaded in the browser

## Information

**List of Plugins Installed in Project:**

> branch-cordova-sdk 3.2.0 "branch-cordova-sdk"
> cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
> cordova-plugin-android-permissions 1.0.2 "Permissions"
> cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
> cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
> cordova-plugin-appice 1.3.41 "AppICE"
> cordova-plugin-badge 0.8.8 "Badge"
> cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
> cordova-plugin-buildinfo 4.0.0 "BuildInfo"
> cordova-plugin-camera 4.1.0 "Camera"
> cordova-plugin-cocoapod-supportx 1.7.3 "Cordova CocoaPods Dependency Support"
> cordova-plugin-compat 1.2.0 "Compat"
> cordova-plugin-customurlscheme 4.4.0 "Custom URL scheme"
> cordova-plugin-device 2.0.3 "Device"
> cordova-plugin-dialogs 2.0.2 "Notification"
> cordova-plugin-file 6.0.2 "File"
> cordova-plugin-file-transfer 1.7.1 "File Transfer"
> cordova-plugin-fingerprint-aio 2.0.0 "FingerprintAllInOne"
> cordova-plugin-firebasex 3.0.1 "Google Firebase Plugin"
> cordova-plugin-inappbrowser 3.1.0 "InAppBrowser"
> cordova-plugin-media-capture 3.0.3 "Capture"
> cordova-plugin-network-information 2.0.2 "Network Information"
> cordova-plugin-root-detection 0.1.1 "Root Detection"
> cordova-plugin-safariviewcontroller 1.6.0 "SafariViewController"
> cordova-plugin-splashscreen 5.0.3 "Splashscreen"
> cordova-plugin-sslcertificatechecker 6.0.0 "SSL Certificate Checker"
> cordova-plugin-statusbar 2.4.3 "StatusBar"
> cordova-plugin-video-editor 1.1.3 "VideoEditor"
> cordova-plugin-whitelist 1.3.4 "Whitelist"
> cordova-plugin-x-socialsharing 5.6.3 "SocialSharing"
> cordova-universal-links-plugin 1.2.1 "Universal Links Plugin"
> es6-promise-plugin 4.2.2 "Promise"

### Command or Code

`cordova run browser`

### Environment, Platform, Device

```
> Environment:
> OS: darwin
> Node: v10.16.3
> npm: 6.13.6
```

```
> Installed platforms:
> android 8.0.0
> browser 6.0.0
> ios 5.1.1
> Available platforms:
> electron ^1.0.0
> osx ^5.0.0
> windows ^7.0.0
```

### Version information

```
> cordova-lib@9.0.1 with:
> cordova-common@3.2.0
> cordova-create@2.0.0
> cordova-fetch@2.0.1
> cordova-serve@3.0.0
```

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `cordova run browser` in a minimal browser-platform project, then trace the startup path that should fire `deviceready` and compare it with the listed plugin setup. Done means the `deviceready` event fires within startup and the application loads in the browser without the five-second warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.