<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/plusone.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\0754684235500622716427\46blogName\75Caiwangqin\47s+blog\46publishMode\75PUBLISH_MODE_HOSTED\46navbarType\75BLUE\46layoutType\75CLASSIC\46searchRoot\75http://blog.caiwangqin.com/search\46blogLocale\75zh_CN\46v\0752\46homepageUrl\75http://blog.caiwangqin.com/\46blogFollowUrl\75https://plus.google.com/106195548719392287378\46vt\0753393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Caiwangqin's blog

Focus on Cloud Service, Business, Architecture, Agile, Technic and beyond…

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

2012年3月27日星期二


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 Jesse Cai, 下午4:43

0 Comments:

发表评论

订阅 帖子评论 [Atom]

<< 主页