WebView not work in Apple iTunes Distribution of Ti

You must Login before you can answer or comment on any questions.

My application uses a WebView to show a chart in JS/HTML, that I believe is also the choice of many other Titanium developers.

The chart displayed fine while running the application from Titanium IDE in both simulator and devices.

The chart also displayed fine while exporting IPA and install the application into devices.

The chart still displayed fine even if I open the Xcode project generated by Ti with Xcode, and then run the application from within XCode IDE, though there were over 800 files.

However, when I published the application as Apple iTunes Distribution, the chart disappeared.

The same issue happened while publishing as Apple Ad Hoc_Enterprise Distribution.

I understand that Titanium did many different in between 'debug' and 'released' version of the application, but it brought me much pain since I found I can hardly do anything for such a 'BLACK BOX'

Any suggestion would be appreciated.

— asked 7 months ago by Xiong Zhang
1 Comment
  • I had finally managed to find out the reason: when publishing the release version, Titanium compiled and optimized all the Javascript files, as long as the file extentions were js, regardless of whether the javascript file was for Ti or for html page in WebView. When the js file for the WebView was optimized, the js chart surely could not work. The solution was simple: change the extention of the javascript file rather than .js.

    — commented 6 months ago by Xiong Zhang

1 Answer

Your Answer

Think you can help? Login to answer this question!