Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-892 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Default Using any animations with phonegap breaks app.

    Using any animations with phonegap breaks app.


    Anytime i specify an animation or use a tabpanel with phonegap, the app breaks. Ideas?

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Exclamation


    This seems to happen in 0.9.5.1 and 1.1.0 i also tried upgrading to xcode 4.2 it seems to have to do pottential with the iframe that is created as part of the animation? no idea. Heres a sample project and a video of what i keep experiencing.

    Project: http://cl.ly/AymV

    Video: http://cl.ly/AzL7

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    I'm using a TabPanel with ST 2.0, Xcode 4.2 & Phonegap 1.10 with no issues (in the simulator at least). Something must be wrong somewhere.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Default


    I am at a loss man, i built a brand new project. Could my xcode be hosed? i've tried a couple version of phone gap etc.

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Default


    Strangley enough it works with the ios 5 sdk but not the 4.3

  6. #6
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    Ok, it seems that there is an ST 2.0 bug with IOS < 5, your app does break on 4.3 simulator.

    Did test my own app. It does not start at all on 4.3... Great news...

  7. #7
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Default


    Woot. i can confirm it does work with the ios 5.0 sdk. Thats good enough for now. I think it has to do with the UIWebView lacking a window.requestAnimationFrame

  8. #8
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    Maybe this could be helpful for a fix :

    https://gist.github.com/1002116

  9. #9
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Exclamation


    Just spent a couple of hours on this. Found out this :

    It does not crash on IOS4.3 Safari, but it does crash on IOS4.3 Webview (from Phonegap).
    Found out that it does crash on :

    Code:
    Ext.fx.runner.CssTransition::getTestElement()
    L.45197 on sencha-touch-all-debug-w-comments.js
    More precisely this line is causing the crash :

    Code:
    iframeDocument.body.appendChild(testElement);
    L.45215 on sencha-touch-all-debug-w-comments.js
    This function seems to create an iframe, and put content inside it.
    Problem is iframeDocument.body is null/undefined on IOS 4.3 while it is a "HTMLBodyElementConstructor" on IOS5.

    Strangely, any check on it seems to crash the JS, tried :

    Code:
    if(!iframeDocument || !iframeDocument.hasOwnProperty('body')) {}
    and it does not pass this test... !

    This fix is critical to me (& i guess most of the ST2.x early adopters).
    It would be great to get some help on this.
    I'm looking for a quick fix/patch.

    Please help !

  10. #10
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Wink


    Found a fix !

    Patch your sencha-touch-all-debug-w-comments.js :

    - at line 45212, after "iframeDocument = iframe.contentDocument;"

    Code:
    document.body.appendChild(iframe);
    iframeDocument = iframe.contentDocument;
    
    // START PATCH
    
    // Fix for iOS < 5.0
    if(Ext.os.is.iOS && !Ext.os.is.iOS5) {
       iframeDocument.open();
       iframeDocument.writeln('</body>');
       iframeDocument.close();
    }
    
    // END PATCH
    
    this.testElement = testElement = iframeDocument.createElement('div');
    testElement.style.position = 'absolute !important';
    Done :-)

    Hope it helps someone...

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."