callback/callback-android — Issue #54: Prompts generated on remote webpages.
Author: AlexMax
Created: 2011-12-08 22:09:07+00:00
State: open

The majority of an application that I am developing is located on a remote website (and is loaded from the first page with a window.location.href). For the most part, it works fine, however I have discovered that the hardware "Back" button on Android does not function as expected (it backs out of the entire application) and thus have tried to override it with a back button callback.

However, I have found that my attempt to include phonegap.js on the remote website is having some unexpected consequences. As soon as I get to the remote page, I am getting spammed with prompt after prompt that contains things such as the following:

gap:["Device","getDeviceInfo","Device0",true]

Looking at phonegap.js, it appears that this is coming from line 628, which is in the function that handles communication with the native side of phonegap.

Any ideas? This is using Phonegap 1.2.0 for Android, by the way.