Re: Determining if "you're in cordova"

2012-12-03 Thread Max Ogden
if cordova polyfilled standard apis for everything it wouldn't be cordovas problem. but right now there are only-in-cordova APIs that I need to use if i'm in cordova. it would be more convenient for me as an app developer if there was a supported way to know i'm in cordova. I can keep looking at w

Re: Determining if "you're in cordova"

2012-12-03 Thread Max Ogden
f thats the case, then the > faking would be a userland place to put that sort of thing.) > > On Mon, Dec 3, 2012 at 10:54 PM, Max Ogden wrote: > > I dont think modifying the UA is a good idea but I strongly believe that > > cordova needs to set *something* that is immediately availa

Re: Determining if "you're in cordova"

2012-12-03 Thread Max Ogden
hts? > > > > > > On Mon, Dec 3, 2012 at 9:10 PM, Simon MacDonald > > wrote: > > > Yup, window.open(url, "_blank") will load the InAppBrowser which is > > > basically a renamed ChildBrowser that actually follows a spec for > > > events. >

Re: Determining if "you're in cordova"

2012-12-03 Thread Max Ogden
In Gather we have a login page that uses childbrowser popup windows for oauth if its running in phonegap or popup windows in javascript if in browser. It would be nice childbrowser polyfilled target="_blank" (which I understand is happening in the future) but as for now the heuristics for detecting