1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    vkalusani is on a distinguished road

      0  

    Default Sencha Touch 2.x in UIWebview (IOS)/ WebView(Android)

    Sencha Touch 2.x in UIWebview (IOS)/ WebView(Android)


    Many of the Sencha Touch components work great and I am a fan of their framework.
    Taking into considering offline capability including app cache what do you think about loading a Sencha touch site hosted on a server but referenced from a uiwebview/webview?. The reason I want to do this is for using some of the native features which do not have a good flow when used with phonegap like OAuth..
    Its easier to handle OAuth flow on a site hosted on a server(ex: Django) when compared to using phonegap and local JS(exposing OAuth secret keys) or that many OAuthProviders do not have a javascript api like facebook.
    If there is a Sencha component provided to host a uiwebview then I would not have gone this route. There may be some compelling concerns and reaons from Sencha side not to offer this component.

    What do you think about using Sencha Touch 2.x in UIWebview (IOS)/ WebView(Android)?
    This discussion might me useful for other native app developers and can anyone give a feeback, additional info etc..

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I'm not really sure what you are asking here. If you are asking if it's a good idea, it's not a bad idea to do it, it's fine.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    vkalusani is on a distinguished road

      0  

    Default


    Wanted to know if its a good idea to host sencha on backend cosnidering performance/expereience etc and if any customers have used it to display in UIWebView

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Apple may not like that approach, they have been hard on people before. FOr instance I have seen them turn down apps if they use no native features (like Camera).
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    vkalusani is on a distinguished road

      0  

    Default


    Thanks for the reply Mithchell.
    I am thinking if I use a mobile framework to have a webversion and a native version. With native version I will to add something to webversioni.e hybrid with dynamic injection of native features like camera, barcode reader etc in local views...
    Still evaluating how to go forward pure native or a mobile framework.
    Thanks for your reply.

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    502
    Vote Rating
    57
    shepsii is a jewel in the rough shepsii is a jewel in the rough shepsii is a jewel in the rough

      0  

    Default


    One of Apple's guidelines is you can't download new code to the app. I think this would fit into that category as Mitchell suggested.
    I blog about Sencha Touch at www.senchatouchdev.com

  7. #7
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    vkalusani is on a distinguished road

      0  

    Default


    shepsii: Thanks for your note
    Does it mean we cannot use a website hosted on a server in uiwebview? as it usually downloads sencha and other clientside code?
    And sorry I was not clear about dynamic injection. There would not be any changes on the web server based code, but user will see additional contacts icon on native version from where he can view contacts, see a camera icon from where he can access the camera etc.
    The main reason to host some of the code on backend is to handle oAuth,session etc..

  8. #8
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    502
    Vote Rating
    57
    shepsii is a jewel in the rough shepsii is a jewel in the rough shepsii is a jewel in the rough

      0  

    Default


    Mmm you are probably on dubious ground! Probably down to the luck of the reviewer with this kind of thing. My major concern would be that the app wouldn't load without an internet connection at all. What if they downloaded the app, went offline and then opened it - how would they get your remote code then?

    I'm not sure I'd go with that approach personally, but I have only put 2-3 apps through iTunes to date so I'm no expert. I have seen javascript oauth libraries though, might be worth taking a look at.
    I blog about Sencha Touch at www.senchatouchdev.com

Thread Participants: 2