1. #11
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    166
    Vote Rating
    16
    kostysh will become famous soon enough

      0  

    Default


    once again confirm:
    The main thing that Ext.device.Connection will works without native (with less features) and without any errors.
    And it does not matter - web app or native packaged app.

  2. #12
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    If Ext.device wasn't undefined when I ran my web-app I wouldn't be commenting about this. Do you include the device library any other ways?

  3. #13
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    166
    Vote Rating
    16
    kostysh will become famous soon enough

      0  

    Default


    Quote Originally Posted by jerome76 View Post
    If Ext.device wasn't undefined when I ran my web-app I wouldn't be commenting about this. Do you include the device library any other ways?
    Yes of course. All libs should be required.
    I just created simple demo for my OnlimeManager http://mindsaur.com/demo/online/
    This is not native app - just web app and all works fine

    Upd: code of the demo app already on GitHub

  4. #14
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    Yes, but how did you create that demo? Did you use Sencha Command? How did you include Ext.device?...

  5. #15
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    166
    Vote Rating
    16
    kostysh will become famous soon enough

      0  

    Default


    Yes, demo app created with sencha command. You can see on GitHub repository now
    How did you include Ext.device?...
    Look inside OnlineManager.js
    Code:
    requires: [        'Ext.device.Connection',
            ...
        ],

  6. #16
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    When I try including that code in my web app, it doesn't work.
    Code:
    Uncaught Error: [Ext.Loader] Failed loading './device/Connection.js', please verify that the file exists sencha-touch-all-debug.js:7889
    Ext.apply.onFileLoadError sencha-touch-all-debug.js:7889
    (anonymous function) sencha-touch-all-debug.js:3167
    Ext.apply.loadScriptFile.onScriptError sencha-touch-all-debug.js:7613
    Ext.apply.injectScriptElement.onErrorFn sencha-touch-all-debug.js:7543
    This is what I've been trying to get at. Sorry.

    I don't use Sencha Command to create my web-apps.

  7. #17
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    166
    Vote Rating
    16
    kostysh will become famous soon enough

      0  

    Default


    Quote Originally Posted by jerome76 View Post
    I don't use Sencha Command to create my web-apps.
    This is the reason. Sencha command uses microloader (not sdk builds).
    I suggest you to use the sencha command for application structure creating.

  8. #18
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    No thanks.. I really have no use for Ext.device. If I did, I would use Sencha commands. I don't like how the commands create the app structure and everything and my company follows a certain structure that would be hard to rearrange. I figured it was the reason once you told me you did use commands to create your app.

    Anyway, it is a great plugin

  9. #19
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    166
    Vote Rating
    16
    kostysh will become famous soon enough

      0  

    Default


    Of course you can create app structure (etc) without sencha command. But, if you uses - your apps will be more lighter. Microloader - is a super feature of Sencha Touch SDK

  10. #20
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    I use custom bootstraps instead of the microloader. I understand what it all does. It doesn't really make a difference when you have a web-app that is 40,000 lines of code with tons of enhancements. I would definitely use sencha command if I was working on my own app and it wasn't such a big one.

Tags for this Thread