Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat could possibly break an app during update through the iOS App Store?
    primarykey
    data
    text
    <p>I am facing a very strange and extremely difficult to fix issue with an iPad app we have in the App Store. The reports, that the app doesn't work anymore after a new version has been rolled out, have multiplied over the last couple of weeks. Now I was able to reproduce the issue on an internal new iPad that had been restored from a backup with an older version and then updated through the normal App Store procedures.</p> <p>The problem: while the application works fine if freshly installed through the App Store or run through XCode, it simply doesn't work as expected after the update. Once the app is in the "broken" state though, I can't even install a new version through XCode that works. Which in this case could be a good thing as it will help me to hopefully fix this issue.</p> <p>What we have:</p> <ul> <li>the app has a set of <code>UIWebView</code>s that load content from a webpage.</li> <li>the webpage loads a Javascript framework and creates a global object <code>h5</code> which can be used to call methods inside it.</li> <li>from here on the communication App -> UIWebView is done through [webView stringByEvaluatingJavaScriptFromString] calls on this <code>h5</code> object.</li> </ul> <p>And here comes the issue:</p> <ul> <li>the html is set in the UIWebView fine, but the JavaScript doesn't seem to get executed if the app is updated.</li> <li>I can run javascript stuff through [webView stringByEvaluatingJavaScriptFromString] and I am able to retrieve the rendered <code>outerHTML</code> this way just to find out that my <code>&lt;script&gt;</code> stuff is missing and thus not executed.</li> </ul> <p>Needless to say that if I do a clean install either through the app store or XCode, the app runs fine, the JavaScript is executed and there are no problems.</p> <p>What I tried so far:</p> <ul> <li>we use the Three20 library for some of our functionality and it has a cache. This cache has been cleared and checked whether or not it's really cleared.</li> <li>I deleted everything in <code>&lt;Application root&gt;/Library/caches</code></li> <li>Instead of loading the URL through a separate request and then pushing it to the WebView through <code>[webView loadData]</code> I tried to <ul> <li>load the URL directly from the webserver with <code>[webView loadRequest]</code></li> <li>convert the <code>NSData</code> to a <code>NSString</code> and push that through <code>[webView loadHTMLString]</code></li> <li>have a <code>NSString</code> hold the html and push that through <code>[webView loadHTMLString]</code> without the need of loading the stuff remotely.</li> </ul></li> </ul> <p>I am a bit out of further ideas what could be the cause here and I'd like to get your opinion on this issue. Am I missing something?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload