Ha! Well that's pretty clear. :) I don't think having JS generate it is a good idea then.
Still, there might be an easier way than going through persistent storage. Next idea: How about having the Java side tell the JS side during start-up what the token is? E.g.: loadUrl(javascript:void(execToken=FOO)). JS can then get the token from there when they want to use exec(). On Fri, Jan 31, 2014 at 3:48 PM, Bas Bosman <[email protected]> wrote: > > cordova.js goes in you <head>. I don't see how an iframe could get loaded > > before it. > > Is that always the case? A lot of people consider it a best practice to > include all script files at the end of the <body> for performance reasons: > http://developer.yahoo.com/performance/rules.html#js_bottom > > In that situation the <iframe> tag would be before the cordova.js <script> > tag. > > Bas > >
