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 3963774
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:15:19+00:00 2026-05-20T03:15:19+00:00

I am developing an application for Android using phonegap. When I include phonegap.js file

  • 0

I am developing an application for Android using phonegap. When I include phonegap.js file in my html, it does not work on desktop browser like Firefox or chrome. I know that phonegap.js provides the bridge between Android’s native functionalities and HTML/javascript.

I need to know is there any way so that my html files work fine on desktop browser also even if using phonegap.js because it is very difficult to debug js application on Android so I am searching some way so that it can work on Firefox, if phone related functionalities don’t work then it is fine, I just need to debug the application.

NOTE: If I remove “phonegap.js” from html, it works fine on desktop browsers, but not able to communicate to server and so only screens appear but dada doesn’t.

Thanks

  • 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-05-20T03:15:20+00:00Added an answer on May 20, 2026 at 3:15 am

    Just like Erik’s comment above says, you are probably triggering your application initialization on the deviceready event. This is fired by native device code, so won’t be available in a desktop browser.

    On Android, you can manually trigger the deviceready event like so:

    window.addEventListener('load', function() {
        PhoneGap.onDeviceReady.fire();
    }, false);
    

    On the other platforms, you can instantiate your own custom deviceready event and dispatch it on the document.

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

Sidebar

Related Questions

i am developing android application using Geocoder services, I have an application where I
I am developing an Android application using SQLite as backend. I want to make
I am developing an Android application using Eclipse and APT. Now I need to
I am in a desperate situation. I am developing an Android application using the
Presently I am developing Android application for Samsung galaxy tab. I am using default
I am new in developing android applications. I want to create an android application(using
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose
I'm developing an application targeting .NET Framework 2.0 using C# for which I need
I am developing an application using MVC Preview 5. I have used typed views.

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.