Search code examples
iosipadcordovarequirejsibm-mobilefirst

Worklight - require.js does not load modules on iPad2 iOS device


I am developing a mobile app (Worklight 6.0.1) using require.js and I can successfully execute it on Mobile Browser Simulator and even in iOS XCode simulator but it does not work when deployed on iPad2 iOS 7.0.4 device. My guess is that there is some conflicts between requre.js and the cordova which comes with Worklight since the code in global scope is executed but not the ones in require modules.


Solution

  • It looks like I was writing a filename wrongly: filelogger vs fileLogger. Also I've discovered that some JS files referred in require/define functions did not exist anymore - removed them previously. This error appeared only when deploying on the actual device (in the iOS simulator the application executed correctly).