What are the advantages and disadvantages of using Phonegap and Titanium? [closed]

时光怂恿深爱的人放手 提交于 2020-01-20 17:13:40

问题


I am planning to create a cross platform application which works in Android, iPhone and Blackberry? I thought of using Phonegap or Titanium. My questions are as these:

  • Whether in cross platform if it is possible to achieve all the native behavior of all phone models, something like in Android menu and iPhone gestures?
  • Apart from cross-platform advantage, what are other advantage do it have?
  • What are the disadvantages? Is there any limitation when it comes to comparing to native app?
  • Whether I can use same code without any modification in all the devices or i have to change the code with respective to device identified dynamically?

回答1:


Previous discussion on Stackoverflow: Comparison between Corona, Phonegap, Titanium

A good clear explanation from Jonathan Stark: http://jonathanstark.com/blog/2010/04/05/phonegap-vs-titanium-mobile-et-al/

In terms of your questions:

To check which native features are available for each framework you will need to check the API docs of each of the frameworks: The phonegap ones are here http://docs.phonegap.com/

The advantages/disadvantages I think are covered in the two links above.

It will depend what you are doing but I imagine you will have some differences in your code for each platform.

Hope that helps!




回答2:


Following are the answers to your question, hope this will help some one.

Whether in cross platform if it is possible to achieve all the native behavior of all phone models, something like in Android menu and iPhone gestures?

No it will not supprot all the native featrues using Phonegap the look and feel remains like web. If you go for titaniam (I have done for one project) some features we need to write cusotm native code to achieve it. If you are doing this you have to do for both platforms iPhone an Android. Also the Titaniam will generate a lot of native code. So, my suggestion is either go to Native or go to Phonegap.

Apart from cross-platform advantage, what are other advantage do it have?

Apart from cross-platfrom the main advantage is the custom controls, for example if you are doing a custom tab bar that looks different than the native it will be hard to do in native you have to write more code for that. In Phonegap as it is web you an do what you want.

What are the disadvantages? Is there any limitation when it comes to comparing to native app?

As I told before, the UI will look like a web UI and some important features cannot be achieved. See this SO link for more information

Whether I can use same code without any modification in all the devices or i have to change the code with respective to device identified dynamically?

Yes you can do, but I have not done this yet. See this link some code change should be done with respect to the device type.

I hope this will help some one



来源:https://stackoverflow.com/questions/4437690/what-are-the-advantages-and-disadvantages-of-using-phonegap-and-titanium

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