Hi everyone! I have the following situation:
My application has a login page (index.html), where user has to point remote service URL and port. After URL and port are provided, user clicks "Connect" button and, if everything is ok, application performs redirection to remote service dynamic page using window.location (or window.open, whatever)
The problem is if I use, say, "navigator.camera" on "index.html" everything is working, API is found and so on. But after redirection, when service dynamic page is loaded, "navigator.camera" says "undefined", and browser console states that "cordoja,js 404" not found.
I use "" and "" in "config.xml" to force PhoneGap application load redirected URL in it own container, I do not use InAppBrowser, since it is explicitly states that "InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs"
My application has a login page (index.html), where user has to point remote service URL and port. After URL and port are provided, user clicks "Connect" button and, if everything is ok, application performs redirection to remote service dynamic page using window.location (or window.open, whatever)
The problem is if I use, say, "navigator.camera" on "index.html" everything is working, API is found and so on. But after redirection, when service dynamic page is loaded, "navigator.camera" says "undefined", and browser console states that "cordoja,js 404" not found.
I use "" and "" in "config.xml" to force PhoneGap application load redirected URL in it own container, I do not use InAppBrowser, since it is explicitly states that "InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs"


HIV
So, where I can get information on that topic or a solution? It seems noone had such a problem on "stackoverflow" and phonegap/cordova docs did not provide that info either.
P.S.
No, I just wanted to put "allow-navigation" line, but didn't format it properly, sorry.
Petra V., Champion
http://community.phonegap.com/nitobi/...
(Yes, I know the OP in that thread talks about inAppBrowser, but later on it turns out that he doesn't use that, really)
HIV