cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Grieve <>
Subject Firing onNativeReady() on iOS
Date Tue, 18 Sep 2012 15:51:20 GMT
The line looks like:

[NSString stringWithFormat:@"cordova.iOSVCAddr='%lld';try{cordova.require('cordova/channel');}catch(e){window._nativeReady
= true;}", (long long)self];

My guess is that the try/catch is in case this is run before cordova.js has
had a chance to parse. I'd like to add a comment to that effect if that's
the case, but wanted to make sure first.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message