Say, if your WebView control, weView1 loads a html file, page1.html. page1.html loads a javascript file named myScript.js.
Your application would work fine in development mode.
However, if you publish the application as an Apple Ad Hoc enterprise Distribution for local test, or as the Apple iTunes Distribution to upload to App Store, your WebView would run into troubles of not showing the page correctly.
The reason is, as per the following link, the js file would be processed and optimized by Titanium during the packaging even if it's for the html pages, that make the page1.html could not load the script file correctly.
exception on js Android file, ONLY in distribution
I encountered a similar issue yesterday and it seemed to have the same root cause.
WebView not work in Apple iTunes Distribution of Ti
Did anybody have the same problems?
1 Answer
Use some other extension. I think that the problem is that Titanium cannot distinguish between web view's source code files and Titanium source code files (they both have same "js" extension).
Your Answer
Think you can help? Login to answer this question!