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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:08:11+00:00 2026-06-17T08:08:11+00:00

I am using Ripple 0.9.9 to test my PhoneGap 2.0 app but am having

  • 0

I am using Ripple 0.9.9 to test my PhoneGap 2.0 app but am having trouble setting it up. I’ve read related questions on this site, but nothing which addresses my issues:

According to phonegap deviceready event – ripple emulator – the ripple emulator injects ripple.js into the page and this contains the phonegap api emulator. So, don’t include your phonegap.js/cordova.js in your page when testing inside Ripple.

Using <body onload="onLoad()"> to call my onload handler I have the following JavaScript:

var mobile=false;

function onLoad() {
console.info("inside onload...");
var uA = navigator.userAgent;
if (uA.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)) {
    console.info("on phone: " + navigator.userAgent);
    document.addEventListener("deviceready", function() { mobile=true; appReady(); }, false);
} else {
    if (uA.match(/Chrome/)) {
        console.info("on browser: " + navigator.userAgent + ", do not initiate mobile app for Chrome since will be init. by Ripple");

    } else {
        /* not running on Chrome so no Ripple */
        appReady();
    }
}

}

When I run my index.html inside of the Ripple emulator (set to Phonegap/Cordova 2.0) running on an iPhone 4 I see the following debug (init.js is my js file) :

inside onload... init.js:19

on browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) 

Chrome/23.0.1271.64 Safari/537.11, do not initiate mobile app for Chrome since will be init. by Ripple init.js:26

Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:475

cordova :: Initialization Finished (Make it so.) ripple.js:475

inside onload... init.js:19

on phone: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/1A542a Safari/419.3 

I can see that the onload event is fired twice: a) for the normal browser and b) it seems that ripple changes the user-agent to that of an iPhone 4 and then reloads the page.

Is this normal behaviour?

The ‘deviceready’ event is never called. Any idea why not?

  • 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-17T08:08:12+00:00Added an answer on June 17, 2026 at 8:08 am

    For the deviceready event, make sure that you have the phonegap platform enabled from the left-hand “Platforms” panel in Ripple. If a non-PhoneGap platform is being used, then I would imagine the deviceready event would not be fired.

    As for the double page reload, yes that was a temporary behavior of Ripple designed to force certain page events to occur in necessary order. However the latest version (0.9.11) has fixed the issue. You should not see Ripple forcing an additional page load after your content has already been loaded.

    Recommend updating to 0.9.11

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

Sidebar

Related Questions

I've been using Ripple to preview a Phonegap application. The preview works fine and
I am working on a mobile app using jquerymobile/phonegap/cordova(2.0). I try to download some
I'm using phonegap to build an enyo app. My program works completely fine in
Using ember 1.0.0-pre3 I have a little app that has this code: window.App =
I have a mobile app that I developed using PhoneGap (and html/css/javascript) and there
Am using this coe o show ripple action for my image CCSprite * ghost
Using Rails 3, but I guess doesn't matter. I put this in the template
Using Ripple in Chrome I'd expect my on and off line events to be
I am trying to create a ripple effect with Jquery. By having an element
I have a blackberry APP using the camera feature. The code base comes from

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.