Hello,
i use Phonegap and Childbrowser with the newest version.
Childbrowser have a Bug! When i use "navigator.notification.alert([...])", the childbrowser will open with an about:blank!
The next Problem (i have it comment out): When i use "console.log([...])" the Childbrowser have the same problem - it opens a "about:blank".
How i can fixx this?
Thanks for Support.
Greetz,
Adrian
-
I'm confused - are you running the navigator.notification.alert and console.log from within the ChildBrowser window?
-
-
No i use this on the index.html as Javascript.
When i use this (all the same whether I now navigator.notification.alert, navigator.geolocation(?) or console.log uses), the childbrowser will open with an "about:blank".
This Problem is taken on the first run. When the Childbrowser have open an "about:blank" and i close the Childbrowser, the problem does not emerge again.
This however always steps, as soon as the App is started. As soon as Childbrowser once "about:blank", does not emerge this problem was initalized not again within the entire App. -
-
i have teste it:
The Problem comes if you use the "navigator" variable. no matter if u use navigator.notification.alert(...), navigator.geolocation[...], or navigator.splashscreen.hide();
ALL this have the problem with the childbrowser! -
-
i have solved the problem!!!
For other DEV's (if you have the Problem):
On the AppDelegate you have include the Childbrowser. You must CHECK the requested URL:
if([[url scheme] hasPrefix:@"http"]) {
ChildBrowserViewController* childBrowser = [[ChildBrowserViewController alloc ] initWithScale:FALSE ];
[super.viewController presentModalViewController:childBrowser animated:YES ];
[childBrowser loadURL:[url description]];
[childBrowser release];
return NO;
} else {
return NO;
}
When the requested URL have an "http://" or "https://", then the childbrowser will open. -
-
-
Loading Profile...


Twitter,
Facebook, or email.




