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

  • Home
  • SEARCH
  • 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 6818949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:14:25+00:00 2026-05-26T21:14:25+00:00

I have a perfectly functioning phonegap application running on droid devices. However, when I

  • 0

I have a perfectly functioning phonegap application running on droid devices. However, when I move things over to iOS, the deviceReady method never fires.

HTML HEADER

<head>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi' name='viewport' />
<meta charset='utf-8' />
<link href='stylesheets/application.css' rel='stylesheet' />
<link href='http://code.jquery.com/mobile/1.0rc2/jquery.mobile.structure-1.0rc2.min.css' rel='stylesheet' />
<link href='stylesheets/application.css' rel='stylesheet' />
<script src='http://code.jquery.com/jquery-1.6.4.min.js'></script>
<script src='http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js'></script>
<script src='javascripts/application.js'></script>
<script src='javascripts/phonegap-1.2.0.js'></script>
</head>

application.js

$(function() {
  document.addEventListener("deviceready", function(){alert(2)}, false);
});

If I stick an alert function in $(function(){}) it fires, so I know jquery and application.js have loaded. An alert() in phonegap.js also fires, confirming that that has also loaded.

  • 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-26T21:14:25+00:00Added an answer on May 26, 2026 at 9:14 pm

    Are you using the phonegap-1.2.0.js from your Android app in the iOS one? In other words, did you copy it across as well?

    PhoneGap has per platform phonegap-1.x.js files. Make sure you are using the one for iOS?

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

Sidebar

Related Questions

I have an application that perfectly works on iPhone os 2.2.1 but when I
All, The application I have created works perfectly the first time around, but if
I have a perfectly functioning perl script (written in bash terminal on debian linux)
I'm getting this warning all over the place in some perfectly well functioning objective-c
I have a perfectly fine running FragmentActivity with a smooth horizontal sliding between the
I have a perfectly working rails application including devise authentication. I created a second
I followed this guide here perfectly and have gone through it again but when
I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04)
I have a set of changes which work perfectly against a certain linux version,
I have a Java EE webapp that works perfectly when I run it on

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.