Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #11
    Sencha User
    Join Date
    Oct 2007
    Posts
    25
    Vote Rating
    2
    erchan_2000 is on a distinguished road

      0  

    Default


    I got it working with the following method :

    On sencha-touch-all-debug.js, find all object definition of Ext.device.* and remove it from the file.
    Load the Ext.device.* separately, using dynamic loading scheme, as normal.

    To create sencha-touch-all.js, you'll need to compress the sencha-touch-all-debug.js manually.

    It should work without problems.

    There are couple other typos in the file, "butons" instead of "buttons" and from placement of "[]" in one of the files. Otherwise, it works as advertised.

    - Eric

    Quote Originally Posted by bfg100k View Post
    erchan_2000, can you please advise how you got it working with dynamic loading enabled? I just tried your solution and I'm still getting a blank screen after the phonegap splash. FYI, i'm using PhoneGap 2.1 and Sencha Touch 2.1

  2. #12
    Sencha User
    Join Date
    Sep 2012
    Posts
    38
    Vote Rating
    0
    mhousser is on a distinguished road

      0  

    Default Questions

    Questions


    Wow, so does this mean that ST2.1 fundamentally breaks easy integration with PhoneGap (Build)?

    Two questions for you:
    1. I found the 'butons' typo, but what line exactly are you referring to regarding the '[]' bug?
    2. Instead of hacking apart the sencha-touch-all.js, wouldn't it be possible to simply wait for 'ondeviceready' in index.html and then include all ST-related .js files afterwards?
    Regarding question 2, I'm not sure exactly how this could be written.. any ideas?

  3. #13
    Sencha User
    Join Date
    Sep 2012
    Posts
    38
    Vote Rating
    0
    mhousser is on a distinguished road

      0  

    Default One more question..

    One more question..


    One more question: for your approach, did you cut and paste all Ext.device.* related code into a separate .js file?

    What exactly do you mean by 'dynamic loading scheme'? You added it to 'requires' or something?

    I'm still hoping that a solution is possible using the 'ondeviceready' phonegap event to wait and load normal sencha-touch-all.js...

  4. #14
    Sencha User
    Join Date
    Oct 2007
    Posts
    25
    Vote Rating
    2
    erchan_2000 is on a distinguished road

      0  

    Default


    I'll upload a working copy of the sencha-touch-all-debug.js later in the evening.

  5. #15
    Sencha User
    Join Date
    Sep 2012
    Posts
    38
    Vote Rating
    0
    mhousser is on a distinguished road

      0  

    Default I have it

    I have it


    I was already able to make a working sencha-touch-all.js, thanks I removed all Ext.device.* references, as well as fixing the 'buttons' typo. Now PhoneGap Build no longer creates a broken app.

    ST guys: ST2.1 has a critical incompatibility with normal PhoneGap workflow, it seems. So many people are having the problem.

    erchan_2000: please explain what you mean by the '[]' bug you found..

  6. #16
    Sencha User
    Join Date
    Oct 2007
    Posts
    25
    Vote Rating
    2
    erchan_2000 is on a distinguished road

      0  

    Default


    Under Ext.device.notification.PhoneGap
    ==============================
    line 13 : The correct syntax is -
    config.callback.apply(config.scope, (config.buttons) ? [config.buttons[index - 1].toLowerCase()] : []);

    Take are careful inspection of the placement of '[]' around the 'toLowerCase()'.

    If you don't fix this problem, you won't be able to properly see any native popups.

    - Eric

  7. #17
    Sencha User
    Join Date
    Sep 2012
    Posts
    38
    Vote Rating
    0
    mhousser is on a distinguished road

      0  

    Default Wow..

    Wow..


    2.1 really does have some problems..

    Is there no way to simply wait for PhoneGap to finish loading until we load the ST/app .js files? That is really the solution I would like to see most...

  8. #18
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    147
    Vote Rating
    10
    Möhre will become famous soon enough

      1  

    Default


    It seems that Sencha doesn´t run even the most basic tests ST<>PhoneGap before publishing a new release?!

  9. #19
    Sencha User
    Join Date
    Sep 2012
    Posts
    38
    Vote Rating
    0
    mhousser is on a distinguished road

      0  

    Default Yes..

    Yes..


    It would appear so. Removing Ext.device.* delarations from sencha-touch-all.js fixed absolutely all problems for me. I urge everyone to try it out, or perhaps for someone to work on a solution that delays loading until 'deviceready' event is detected by PhoneGap..

  10. #20
    Sencha User
    Join Date
    Sep 2011
    Location
    Italy
    Posts
    22
    Vote Rating
    0
    kermit136 is on a distinguished road

      0  

    Default


    I asked the author of this post an update to ST 2.1


    http://andidog.de/blog/2012/06/packaging-a-sencha-touch-2-application-with-phonegap-for-android/


    it worked for me

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar