简体   繁体   English

为 iOS 和 Android 编写 - 可以使用此功能吗?

[英]Writing for iOS and Android - possible for this function?

Read a number of questions on writing in just one language for both iOS and Android and what I learned is that it depends on the special functions you need.阅读有关 iOS 和 Android 仅用一种语言编写的许多问题,我了解到这取决于您需要的特殊功能。 What I want to build is a very simple app that will ask the user what he or she is doing.我想要构建的是一个非常简单的应用程序,它将询问用户他或她在做什么。 We need this for billing the customers but my co-workers keep forgetting to update their time-sheet, so I want to write this little app that pops-up every x minutes and asks them what their doing.我们需要它来向客户收费,但我的同事总是忘记更新他们的时间表,所以我想编写这个小应用程序,它每 x 分钟弹出一次并询问他们在做什么。 At the end of the day the list will be sent by e-mail or whatever.在一天结束时,列表将通过电子邮件或其他方式发送。

Anyway.... is a pop-up from an app from the background a 'special' function?无论如何......是来自后台的应用程序的弹出窗口是“特殊”功能吗? Can a general language be used on both for this?可以为此使用通用语言吗?

Edit: I have searched for crossplatform tools, but all replies talk about specific functions that still require native coding.编辑:我搜索了跨平台工具,但所有回复都讨论了仍需要本机编码的特定功能。 That is why I was wondering if something as simple as a popup with question and entering / saving a text, would be native or could easily be handled with a crossplatform tool.这就是为什么我想知道像带有问题和输入/保存文本的弹出窗口这样简单的东西是否是本机的,或者是否可以使用跨平台工具轻松处理。

You may use Xamarin to create a cross platform applications.您可以使用Xamarin创建跨平台应用程序。 I am satisfied with Xamarin platform at the moment.目前我对Xamarin平台感到满意。 I have been working on native iOS, java for Android also.我一直在研究原生 iOS,也为 Android 开发 Java。

Please keep in your mind that, it would be great if you are familar with these platforms because Xamarin is just a wrapper of methods which exist in the native platforms.请记住,如果您熟悉这些平台会更好,因为Xamarin只是本机平台中存在的方法的包装器。 Since I am familar with native Android and iOS, it makes me comfortable when I work on Xamarin platform.由于我熟悉原生 Android 和 iOS,所以在Xamarin平台上工作让我感到很舒服。

My personal recommendation is to stick with Native platform.我个人的建议是坚持使用 Native 平台。 But if you have to work on cross platform, I believe Xamarin is a good option.但是如果你必须在跨平台上工作,我相信Xamarin是一个不错的选择。

Pros:优点:

If you are familiar with C#, it will help you a lot to develop an application for android, ios and windows platforms in Xamarin .如果您熟悉 C#,它将对您在Xamarin开发适用于 android、ios 和 windows 平台的应用程序有很大帮助。

It is demanding platforms, and many big companies are looking Xamarin developers especially after the Microsoft acquisition.它要求平台,许多大公司都在寻找 Xamarin 开发人员,尤其是在微软收购之后。

Cons:缺点:

You need to buy a license.您需要购买许可证。


There are other platforms as well, but I did not use any of them.还有其他平台,但我没有使用它们中的任何一个。 Here are some of them这里是其中的一些

  • Cordova科尔多瓦
  • HTML5 HTML5
  • Unity统一
  • PhoneGap电话鸿沟
  • Appcelerator应用加速器
  • Corona电晕
  • Qt Qt

You may find useful the following urls您可能会发现以下网址很有用

For sure what you describe can be achieved with using Ionic .肯定可以使用Ionic来实现您所描述的内容。 Its a free solution and it comes with a lot of good documentation to get you up and running quickly.它是一个免费的解决方案,它附带了很多很好的文档,可以让您快速启动和运行。 You'll need to use AngularJS for developing apps with Ionic so that might be a good solution if you know your way around that framework, or if you are familiar with Javascript or have done some web development before.您将需要使用 AngularJS 来使用 Ionic 开发应用程序,因此如果您了解该框架的方法,或者您熟悉 Javascript 或之前做过一些 Web 开发,那么这可能是一个很好的解决方案。

On regards to your question regarding native functionality (by popups I assume you mean notifications) Ionic sits on top of Cordova so there is a huge amount of native plugins that you can use to implement native functionality.关于您关于本机功能的问题(通过弹出窗口,我假设您的意思是通知)Ionic 位于 Cordova 之上,因此您可以使用大量本机插件来实现本机功能。 You can take a look at plugins here .您可以在此处查看插件。

Hope this helps!希望这可以帮助!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM