简体   繁体   English

为iOS / Android设置服务器

[英]Setting up a server for iOS/Android

I am creating an app in Android which will also be made in iOS after it's ready. 我正在用Android创建一个应用程序,准备就绪后也将在iOS中创建该应用程序。

I have successfully implemented a Tomcat serverlet in Eclipse between the device and the server. 我已经在设备和服务器之间的Eclipse中成功实现了Tomcat serverlet。

Now both these platforms use Java. 现在,这两个平台都使用Java。 This isn't the case with iOS, which I am aware that you can't program with Java, but what about the serverlet? iOS不是这种情况,我知道您不能使用Java进行编程,但是serverlet呢? Can I even use Tomcat? 我什至可以使用Tomcat吗?

Some guidance will be much appreciated! 一些指导将不胜感激!

Yes, you can use ApacheTomcat . 是的,您可以使用ApacheTomcat

Tomcat is only the part of technology to host your Servlet . Tomcat只是托管 Servlet的技术部分。

This has nothing to do with the mobile apps that you are planning to build, since these are completely different components. 这与您计划构建的移动应用程序无关,因为它们是完全不同的组件。

As I see it, your whole project will require to be implemented with three different technical components: 正如我所看到的,您的整个项目将需要使用三个不同的技术组件来实施:

  1. Your backend : This is your Java Servlet . 您的后端 :这是您的Java Servlet It needs to run in a Servlet Container , which is indeed your Apache Tomcat setup 它需要在Servlet容器中运行,这实际上是您的Apache Tomcat设置
  2. An Android app: Written in Java, talking to your backend via HTTP 一个Android应用程序:用Java编写,通过HTTP与您的后端对话
  3. An iOS app: Written in Swift/Objective-C, talking to your backend via HTTP 一个iOS应用程序:用Swift / Objective-C编写,通过HTTP与您的后端对话

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

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