开发者

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

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, 开发者_StackOverflow中文版but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

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?


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!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜