[jira] [Commented] (CB-10946) dynamically load JS/CSS file into index.html doesn't work with cordova 6.0.0
[ https://issues.apache.org/jira/browse/CB-10946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15209604#comment-15209604 ] Raven Zuo commented on CB-10946: link to cordova-app-loader: https://github.com/markmarijnissen/cordova-app-loader > dynamically load JS/CSS file into index.html doesn't work with cordova 6.0.0 > > > Key: CB-10946 > URL: https://issues.apache.org/jira/browse/CB-10946 > Project: Apache Cordova > Issue Type: Bug > Components: iOS >Affects Versions: 6.0.0 > Environment: Ionic 1.7.14, Cordova 6.0.0, iOS devices >Reporter: Raven Zuo >Priority: Critical > > I use a plugin called cordova-app-loader to update our app from resource > server so that if we only change JS/html/css files, we don't need submit to > apple for review. It works perfectly before with old Cordova which generate > iOS3.9.2 build. After upgrading Cordova to 6.0.0, the generated iOS version > is now 4.0.1 and it doesn't work anymore. > I checked into the issue and found that even I remove the updating from > resource server part, only load the js files to index.html dynamically, the > app will freeze after load all the js files. > Details of my current process: > 1. In my index.html file's head, there is some lib js files like cordova.js > etc. Among them, the last js file is my bootstrap.js > 2. the bootstrap.js file will read a manifest.json file(which include file > paths need to be add to index.html dynamically) and get all the js files need > be loaded. > 3. Add all these files into index.html with the following code: > var el, > head = document.getElementsByTagName('head')[0], > src = the_path_to_the_js_file, > now = Date.now(); > el= document.createElement('script'); > el.type= 'text/javascript'; > el.src= src + '?' + now; > el.async = false; > head.appendChild(el); > 4. I added a log message into the last js file which will be dynamically > loaded and in the console window, I saw this message which means the js files > are all loaded. > But then after that, the app just freezes forever. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-10946) dynamically load JS/CSS file into index.html doesn't work with cordova 6.0.0
Raven Zuo created CB-10946: -- Summary: dynamically load JS/CSS file into index.html doesn't work with cordova 6.0.0 Key: CB-10946 URL: https://issues.apache.org/jira/browse/CB-10946 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 6.0.0 Environment: Ionic 1.7.14, Cordova 6.0.0, iOS devices Reporter: Raven Zuo Priority: Critical I use a plugin called cordova-app-loader to update our app from resource server so that if we only change JS/html/css files, we don't need submit to apple for review. It works perfectly before with old Cordova which generate iOS3.9.2 build. After upgrading Cordova to 6.0.0, the generated iOS version is now 4.0.1 and it doesn't work anymore. I checked into the issue and found that even I remove the updating from resource server part, only load the js files to index.html dynamically, the app will freeze after load all the js files. Details of my current process: 1. In my index.html file's head, there is some lib js files like cordova.js etc. Among them, the last js file is my bootstrap.js 2. the bootstrap.js file will read a manifest.json file(which include file paths need to be add to index.html dynamically) and get all the js files need be loaded. 3. Add all these files into index.html with the following code: var el, head = document.getElementsByTagName('head')[0], src = the_path_to_the_js_file, now = Date.now(); el= document.createElement('script'); el.type= 'text/javascript'; el.src= src + '?' + now; el.async = false; head.appendChild(el); 4. I added a log message into the last js file which will be dynamically loaded and in the console window, I saw this message which means the js files are all loaded. But then after that, the app just freezes forever. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-10260) [iOS] FileTransfer.didReceiveResponse fail due to createDirectoryAtPath return NO
raven zuo created CB-10260: -- Summary: [iOS] FileTransfer.didReceiveResponse fail due to createDirectoryAtPath return NO Key: CB-10260 URL: https://issues.apache.org/jira/browse/CB-10260 Project: Apache Cordova Issue Type: Bug Components: Plugin File Transfer Affects Versions: 5.4.1 Environment: IOS Reporter: raven zuo Priority: Critical In apple's document, it says 'YES if the directory was created or already exists or NO if an error occurred.'. But here the error message says that there is already a directory with this name thus can't create a new one. It doesn't always fail, but with a very high possibility that if a directory exist then the operation will fail. So in this case, if the error is that there is already an existing directory with the same name, then we shouldn't fail but continue because the directory is created(successfully by previous operations). -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org