是IOS&仅使用Webview的Android应用程序考虑混合或Web应用程序? [英] Are IOS & Android Apps with Webview Only Considered Hybrid, or Web Apps?

查看:125
本文介绍了是IOS&仅使用Webview的Android应用程序考虑混合或Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的困惑在于,使用Java或Swift创建的仅使用webview的应用程序是否被视为混合或Web应用程序。我知道Web应用程序几乎完全使用Web,但如果它是通过Java Webview的webview,它真的被认为是Web应用程序,还是混合应用程序,因为它有可能同时使用本机和Web App功能?我对这个特定的定义有不同的定义。



谷歌说这是关于网络应用程序:



基本上有两种方式来交付应用程序Android:作为客户端应用程序(使用Android SDK开发并安装在APK中的用户设备上)或作为Web应用程序(使用Web标准开发并通过Web浏览器访问 - 在用户设备上无需安装)。
https://developer.android.com/guide/ webapps / index.html



Apple说这是关于网络应用的:



A Web应用程序的外观和行为方式与本机应用程序类似 - 例如,它可以缩放以适应iOS上的整个屏幕。 您可以进一步为iOS上的Safari定制Web应用程序,方法是在用户将其添加到主屏幕时使其显示为本机应用程序。您可以通过使用被忽略的iOS设置来实现此目的。其他平台。



https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html



<为什么这对我来说很重要?我为什么要打扰?
在谈论我正在创建的新应用程序的未来开发时,我需要向人们解释这三者之间的差异和重要性。我是应用程序世界的新手,并不太了解对此的共识,我想在解释它时听起来很有能力。我认为使用Webview的Java或Swift制作应用程序只是一个Web应用程序而不是混合应用程序。但如果添加更多内容,它可能会成为混合应用程序。但是我从一开始就可以看到它是一个混合应用程序。

解决方案

由于我的工作,我可以分享我对这个主题的理解:



混合应用:这些是使用HTML5,CSS等网络技术开发的,通常使用JavaScript编程。接下来,为了使他们能够使用Google Play商店或App Store进行分发,他们使用移动框架构建,例如 PhoneGap Cordova 。这导致为Android生成 apk 文件,为iOS生成 ipa 。然后,可以通过Google Play商店或App Store部署和分发这些文件。



所以,它有两个世界的东西:


  1. 相同的代码库android和ios(因为它们是使用HTML / CSS / JS开发的)和2.使用Google Play商店或App Store的Native-app之类的分发模型。 因此名称混合。

网络应用:这些基本上是通过一个网络浏览器 - 没有什么可以安装在用户设备上,如 apk ipa 文件。这些不是使用Google Play商店或Apple Store分发的。相反,可以使用设备的Web浏览器和相应的 URL



访问 WebView 它是操作系统提供的小部件,允许应用程序在应用程序中显示网页。



因此,如果您使用标准Android SDK开发一个Android应用程序但它只使用 WebView ,它被视为原生应用(而非混合或Web应用),因为它使用的是Native SDK组件( WebView )。此外,它将通过Google Play商店或App Store分发。


My confusion is whether an app created in Java or Swift with just a webview is considered a Hybrid, or Web App. I understand that a Web App use the web almost exclusively, but if it's a webview through a Java Webview is it really considered a Web App or is it a hybrid app because it has the potential to use both native and Web App features? I get mixed definitions about this particular definition.

Google says this about web app:

There are essentially two ways to deliver an application on Android: as a client-side application (developed using the Android SDK and installed on user devices in an APK) or as a web application (developed using web standards and accessed through a web browser—there's nothing to install on user devices). https://developer.android.com/guide/webapps/index.html

Apple says this about web apps:

A web application is designed to look and behave in a way similar to a native application—for example, it is scaled to fit the entire screen on iOS. You can tailor your web application for Safari on iOS even further, by making it appear like a native application when the user adds it to the Home screen. You do this by using settings for iOS that are ignored by other platforms.

https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

Why is this important to me & why do I bother asking? I need to explain to people the differences and importance between these three when talking about future development of a new app I am creating. I am new to the app world and don't quite understand the consensus on this and I want to sound competent when I explain it. I would consider an Java or Swift made App with a Webview just a Web App and not a Hybrid app. But it could become a Hybrid App if more was added. However I can see it being a Hybrid App from the start.

解决方案

Since I worked on it, I could share my own understanding about this topic:

Hybrid apps: These are developed using Web technologies like HTML5, CSS and typically Programmed using JavaScript. Next, in order for them to be able to distribute using Google Play store or App Store, they are build using mobile framework such as PhoneGap or Cordova. This result in generation of apk file for android and ipa for iOS. These files then can be deployed and distributed through Google Play store or App Store.

So, it has things of both world :

  1. Same code base for both android and ios(as they are developed using HTML/CSS/JS) and 2. Native-app like distribution model which used Google Play store or App Store. Hence the Name Hybrid.

Web Apps: These are essentially accessed through a web browser—there's nothing to install on user devices like a apk or ipa file. These are not distributed using Google Play store or Apple Store. Instead, can be accessed using the Device's Web browser and appropriate URLs

About WebView It is the widget provided by Operating system which allow apps to display the web pages within an app.

So, if you develop say, an Android app, using Standard Android SDK but it uses nothing but a WebView, it is considered as a Native app(and Not a Hybrid or web app) because it is using the Native SDK Component(WebView). Also, it will be distributed through Google Play store or App Store.

这篇关于是IOS&amp;仅使用Webview的Android应用程序考虑混合或Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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