Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8063171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:56:04+00:00 2026-06-05T10:56:04+00:00

The first time I load up my cordova app, the breakpoint at line 130

  • 0

The first time I load up my cordova app, the breakpoint at line 130 (please refer to attached image) gets hit. It calls the deviceready delegate function and everything is fine.

Debugger screenshot

I navigate to another page and then when I do a window.history.back() (back to original page), the deviceready event is fired in a different way (see breakpoint on 135). There is no DeviceInfo which makes the Cordova “not available”. Note the following excerpt from cordova.js:

Cordova.available = DeviceInfo.uuid != undefined;

Which also means, even though I’m waiting for the deviceready event to call Cordova.exec, it will always fail. Here is another excerpt from cordova.js which illustrates why.

Cordova.exec = function() { 
    if (!Cordova.available) {
        alert("ERROR: Attempting to call Cordova.exec()"
              +" before 'deviceready'. Ignoring.");
        return;
    }

So my question is; why are there 2 ways cordova will call the deviceready and why does it use the ‘dud’ way when I arrive at the page by going back on my browser?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:56:06+00:00Added an answer on June 5, 2026 at 10:56 am

    This looks to be version 1.5 or earlier. The loading and firing of deviceReady has significantly changed in more recent versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application should load some data when it start at first time, but it
I am trying to load data asyncronously but on the first time, no progressbar
first time poster and TDD adopter. :-) I'll be a bit verbose so please
the first time the code is executed it correctly produces: load complete but the
The first time I load the website in the production web server, it start
I'm checking with NSUserDefault if it is the first time app is loaded. If
I have a this asp.net page which upon first time load: 1: Make a
I am using some webrefernces for reporting services. The first time they load they
The first time you load and visit some of the slides on this page
I have a problem with a slider. When I load the first time my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.