android native or HTML5 to use in a transactional offline/online mobile app

ⅰ亾dé卋堺 提交于 2019-12-12 03:18:01

问题


I am going to develop a mobile application used by our company salesmen to make orders and DB transactions. initially we target mobile with android OS. I have 2 option for the technology will be used.

  1. using HTML5
  2. using android native API.

My question is: depending on the following set of features, what is the best technology choice to achieve this job ??

Note: we prefer to use HTML5 to be platform independent but we are not sure if HTML5 will give us all needed app features.

Its preferred that the app contains these features :

  1. the salesmen will use this app to record invoices, make orders, view some reports , and making customer survey.
  2. the app should be able to work online and offline as well.
  3. the app should has its own offline DB. (to store offline transactions)
  4. the app contain option for sync with the main DB server to post the offline created transactions to the live server. (when salesman back to home Or when internet connection is available.)
  5. the app has some special user interface requirements, so flexible user interface design is highly needed.
  6. ability to lock all phone features (other app, camera, sim card and so on) and allowing salesman to open and access only our developed application.
  7. ability to access GPS native API in the mobile to allocate the salesman position.

回答1:


ability to lock all phone features (other app, camera, sim card and so on) and allowing salesman to open and access only our developed application.

You wont get anywhere close to this behavior from an html 5 app. And even if you go with native (unless you're willing to modify the OS) you aren't going to be able to completely lock it down like you are wanting.

Either way my vote is for a native app. At this point native is ( in my opinion ) always going to provide you with a finished product that is nicer to use.



来源:https://stackoverflow.com/questions/9574605/android-native-or-html5-to-use-in-a-transactional-offline-online-mobile-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!