<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

Some tips for using PhoneGap & Sencha Touch 2 build mobile app


We recently build an HTML5 mobile app for website client, will deploy to apple store and android play store, here is some tips for develop mobile app with Sencha Touch 2 and PhoneGap 1.4.1.
  1. Sencha Touch2 is good framework to build HTML5 mobile app.
  2. PhoneGap is good to deploy app to ios and android, even windows phone, symbian, blackberry, webos and bada.
  3. Do not trust android simulator, sometimes the App works fine in ios simulator and iPhone, but doesn't work in Android phone.
  4. Android browser do not support JSON.parse() call that had a null parameter.
  5. Android 2.x doesn't support SVG, that means you can not use Google Charts API in android app, even it running good in ios. but Google Charts Image works.
  6. Sencha Touch beta 2 build doesn't work for me on mac os x 10.7.3.
  7. You will need different device to test deploy to different platform.
posted by Caiwangqin, 16:43



订阅 博文评论 [Atom]

<< 主页