phonegap/phonegap-plugins — Issue #298: Using BarcodeScanner to open URL in ChildBrowser iOS
Author: ashleyjwheat
Created: 2011-12-24 18:56:50+00:00
State: open

Hi,

I'm new to Phonegap development and I want to develop an app that scans a QR code containing a URL and opens the corresponding webpage automatically as part of a university project.

I have the BarcodeScanner and ChildBrowser plugins working fine. I can scan QR codes and get success messages on both my console and in the span section of my app. I can also open a URL in ChildBrowser, when the 'open link' button is clicked, ChildBrowser launches and opens Google.

I am stuck with finding a way of making ChildBrowser fire when a URL is scanned, I have tried various methods including calling childBrowser.showWebPage(result.text); and childBrowser.showWebPage(JSON.stringify(result.text)); in the scannerSuccess method, and although the console says that a webpage is opening, nothing happens in the app.

As I said, I'm a beginner and I'm quite stuck, any ideas?