如何构建跨平台应用 [英] How to build a cross platform app

查看:192
本文介绍了如何构建跨平台应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建我的第一个应用程序并将其发布到苹果/谷歌应用程序商店中...

I want to build my very first app and "post" it on the apple/google App store...


  • 我想要

  • 我不介意学习一种新的编程语言。

  • 跨平台,为两个平台编写一个代码。不能花太多时间学习多种语言:p

  • 我已经知道JavaScript / jQuery,MySQL,PHP,HTML,CSS等,但这是针对Web而非应用程序的。 。对?是?

  • 我需要快速完成它,因此需要跨平台。一种代码,两种操作系统(Android和iOS)。我将在生活中投入大量时间,以学习每个单独的SDK。

  • 稳定性:由于它将跨平台,因此稳定性很重要。

  • I want it to be for both iOS and Android.
  • I do not mind learning a new programming language.
  • Cross platform, to write one code for both platforms. Can't spend too much time learning multiple languages :p
  • I already know JavaScript/jQuery, MySQL, PHP, HTML, CSS, etc. but that's for web, not for apps...right? Wrong?
  • I need to get it done fast, hence cross platform. One code, two OS (Android & iOS). I'll invest the time latter, in life, to learn each individual SDK. Not now.
  • Stability: Since it's going to be cross platform, stability is important.

这将类似于UPS,具有取送请求等。3个应用程序,一个用于客户端,一个用于工人,一个用于管理。

It's going to be something similar to UPS, with pickup-delivery requests, etc. 3 apps, one for the client, one for the workers and one for administration.

客户端


  • 它需要连接到数据库

  • 根据用户地址输入(或当前位置/ GPS)和交付地址的用户输入来计算距离。

  • 基于行驶距离英里计算费率。不是线性距离。

  • 提供交货状态(驾驶员位置),如果可能,请实时提供。

  • 提供交货确认

  • It needs to connect to a database
  • Calculate distances based on the user address input (or current location/GPS) and the user input for the delivery address.
  • Calculate rates, based on "driving distance" miles. Not linear distance.
  • Provide delivery status (driver location), profferebly in real time if possible.
  • Provide delivery confirmation

工作者端应用


  • 它需要根据接近客户的工作人员来接收客户的订单。并非所有工作人员都会收到相同/所有的订单。

  • 它需要在到达之前和交付之后将工作人员的位置反馈给客户。

  • 提供行车路线。

  • 交付后需要有一种方法来保存签名。

  • 向客户提供交付确认。

  • 交付时的地理位置。

  • It needs to receive the client's orders, based on what worker is closer to the client. Not all workers receive the same/all orders.
  • It needs to feed the location of the worker back to the client, both before arrival and after delivery.
  • Provide driving directions.
  • It needs to have a way to save signatures after delivery.
  • Provide a delivery confirmation to the client.
  • Geolocation when delivered.

管理可以是Web或可执行软件。

The administration can be a web or executable software.

可能需要更多,但到目前为止,我确定了这些:

It may need more, but so far I identified these:


  • 使用设备的GPS

  • 也许它需要google maps API

  • 身份验证:登录AND设备的客户端和客户端的MAC地址工作者应用

  • MySQL数据库,用于存储所有内容。交易,

  • Use the device's GPS
  • Maybe it needs google maps API
  • Authentication: Log in AND Device's MAC address, for both Client & Worker app
  • MySQL database, to store all. Transactions,

我从哪里开始,需要什么?

推荐答案

您还可以使用HTML,CSS,Javascript来构建应用程序。
我建议使用phonegap,这是用于构建跨平台应用程序的框架。您可以在数据库上获得当前位置操作。等等
这里是链接,您可以从这里找到有关它的更多详细信息。

You can use Html, Css, Javascript for building apps also. I will recommend to use phonegap which is framework used for building cross platform apps..you can get current location operation on database. etc here is link you can find more details about it from here.

http://phonegap.com/

还有其他平台,您也可以在Google上搜索跨平台应用。

there are other platform also you can just search cross platform apps on google.

这篇关于如何构建跨平台应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆