简体   繁体   English

适用于iOS / Android / Windows 8的混合应用程序

[英]Hybrid apps for iOS/Android/Windows 8

I hope this question is specific enough. 我希望这个问题足够具体。 I have a client for whom I made an iOS native app and an Android native app (same app, different platform). 我有一个为其开发了iOS本机应用程序和Android本机应用程序(相同的应用程序,不同的平台)的客户。 It's a fixed pixel design (I made this work for Android somehow:) and it works on iPad, iPhone and most Android devices (with some letterboxing). 这是一个固定像素的设计(我以某种方式使它适用于Android :),并且可以在iPad,iPhone和大多数Android设备(带有一些信箱)上使用。 Now I am asked to write the same app for the Windows store and they want me to use HTML and JavaScript. 现在,我被要求为Windows应用商店编写相同的应用程序,他们希望我使用HTML和JavaScript。 My question is, when I use HTML and JavaScript, would it be "easy" for me to use this code into some sort of hybrid solution (PhoneGap, etc)? 我的问题是,当我使用HTML和JavaScript时,将这段代码用于某种混合解决方案(PhoneGap等)是否对我来说“容易”? The app doesn't need much complicated functionality but does need to support push notifications on iOS and it needs to be able to play videos, preferably HLS. 该应用程序不需要太多复杂的功能,但需要在iOS上支持推送通知,并且需要能够播放视频,最好是HLS。 Any advice on what the best hybrid solution and do hybrid solutions allow you to build for Windows 8? 关于什么是最好的混合解决方案以及混合解决方案可以使您针对Windows 8进行构建的任何建议?

I'm a cross-platform developer working on PhoneGap and Titanium Appcelerator. 我是从事PhoneGap和Titanium Appcelerator的跨平台开发人员。 The correct answer is "It depends". 正确答案是“取决于”。 Currently the state of cross-platform development is not very recommendable. 当前,跨平台开发的状态不是很可取。 Yes, you can write plugins for PhoneGap and it does support windows phone but you will have a ridiculously hard time getting them to communicate with each other properly. 是的,您可以为PhoneGap编写插件,它确实支持Windows Phone,但是要使它们正确地相互通信将非常困难。 I learnt this from experience. 我从经验中学到了这一点。

If it was a hacking/hobby project to further the cause then I would say go for it but for a time-bound client project like yours, I would recommend against cross-platform solutions and go native instead. 如果这是一个黑客/业余爱好项目,可以进一步推动事业发展,那么我会说,但是对于像您这样的有时限的客户项目,我建议您不要使用跨平台的解决方案,而应采用原生方法。 Plus native always gives considerably better control, speed and ease of development. 加上native,始终可以提供更好的控制,速度和易于开发的功能。 You will probably develop it faster in native than cross platform anyway. 无论如何,您可能会在本地平台上比跨平台更快地开发它。 I've played around with windows SDK and it seems easy to use and well-built with good documentation and you can use C# which is similar to Java since you have already used it on android. 我玩过Windows SDK,它似乎易于使用,并且具有良好的文档构建,并且您可以使用与Java类似的C#,因为您已经在android上使用了它。

You can also build windows 8 desktop apps using html and javascript natively but this isn't present in windows phone 8 yet. 您还可以本地使用html和javascript构建Windows 8桌面应用程序,但这在Windows Phone 8中尚不存在。

As I mentioned, If you don't need too many native controls, then you can go cross-platform. 如前所述,如果您不需要太多本机控件,则可以跨平台使用。 For your requirements, it can be done. 根据您的要求,可以完成。 If you have already developed android and ios apps and only need windows app now, then going native would be easier. 如果您已经开发了android和ios应用程序,并且现在只需要Windows应用程序,那么使用本机会更容易。 But if you have to make all 3 then you can go cross platform if your requirements are restricted to what you mention. 但是,如果您必须将所有3个都做,那么如果您的要求仅限于您提到的内容,那么您可以跨平台使用。 Here's a good quora thread that discusses the pro's and cons: 这是讨论专家的利弊的良好法定人数线程:

http://www.quora.com/Is-Titanium-good-for-developing-iPhone-apps http://www.quora.com/Is-Titanium-good-for-developing-iPhone-apps

Take a look on Xamarin 看看Xamarin

Main idea - they brings real native code for all platforms. 主要思想-他们为所有平台带来了真正的本机代码。 They have instruments to compile C# code that it can be used at all platforms For example you should create UI in XCode (for iPhone) and use ModoDevelop to create DAL/BLL, then you can re-use C# code base over all other platforms 他们拥有可以在所有平台上使用的C#代码的工具,例如,您应该在XCode(适用于iPhone)中创建UI,并使用ModoDevelop创建DAL / BLL,然后您可以在所有其他平台上重用C#代码库

They have cross-platform iPhone/Android/WP7/W8 samples on GitHub 他们在GitHub上拥有跨平台的iPhone / Android / WP7 / W8示例

Also see Q&A on Stackoverflow tagged Xamaring 另请参阅关于Stackoverflow 标记为Xamaring的问答

We are starting to build multiple apps for multiple clients both in IOS and Android native platforms. 我们开始在IOS和Android本机平台上为多个客户端构建多个应用程序。 The problem is we are going completely native which is taking too much time. 问题是我们要完全本地化,这会花费太多时间。

I would like to look at the linked in method ( http://arstechnica.com/information-technology/2012/10/a-behind-the-scenes-look-at-linkedins-mobile-engineering/ ) which is a more hybrid approach using HTML and native code. 我想看看链接的方法( http://arstechnica.com/information-technology/2012/10/a-behind-the-scenes-look-at-linkedins-mobile-engineering/ ), HTML和本机代码的混合方法。

The problem is I don't think Phonegap is that good - good for prototyping but maybe not for full versions of apps as it can be a bit slow and a bit buggy. 问题是我不认为Phonegap这么好-适用于原型制作,但可能不适用于完整版的应用程序,因为它可能会有点慢且有点问题。

I would like to look into doing a model where we create like 65% HTML and 35% native to that device (like linked in) 我想研究一个模型,在该模型中我们创建65%的HTML和35%的设备本机(例如链接)

Would anyone have any suggestions for this? 有人对此有任何建议吗? Would people say we need a massive development team to pull such an approach off? 人们会说我们需要一支庞大的开发团队来实施这种方法吗?

I welcome thought:) 我欢迎想到:)

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IOS和Android应用程序是否只考虑Webview混合或Web应用程序? - Are IOS & Android Apps with Webview Only Considered Hybrid, or Web Apps? 混合应用中的Android Pay - Android Pay in Hybrid Apps 在本机应用程序容器(Android,IOS)中为混合应用程序加载外部内容 - Loading external Content for hybrid Apps in Native App Container (Android, IOS) 赛普拉斯能否用于自动化原生和/或混合 iOS/Android 移动应用程序? - Can Cypress be used to automate native and/or hybrid iOS/Android mobile apps? 为iOS和Android构建具有原生性能的混合React应用程序 - Building hybrid React apps for iOS and Android with native performance IOS / Android更新时混合HTML5应用程序出现问题吗? - Problems with hybrid HTML5 apps when IOS/Android updates? AngularJS和Ionic用于创建Windows,Android和iOS混合应用程序 - AngularJS and Ionic for creating windows, android and iOS hybrid app 混合应用程序可以针对Windows平板电脑/表面 - Can Hybrid Apps be targeted for Windows Tablets/Surface 如何使用ember.js框架通过终端创建cordova混合Android,ios应用程序? - How to Create cordova hybrid Android, ios apps through terminal by using ember.js framework? 是否有适用于Android混合应用程序的工具如Firebug - Is there a tool like firebug for android hybrid apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM