简体   繁体   English

移动应用程序(例如 Facebook)如何在不使用浏览器的情况下访问网页?

[英]How do mobile applications (Facebook for example) access web pages with out using a browser?

How does mobile applications( like fb, linkedin,…) access a web page with out a web browser?移动应用程序(如 fb、linkedin 等)如何在没有网络浏览器的情况下访问网页? Do these apps have an inbuilt web browser or do all apps share a common web browser in the phone?这些应用程序是否具有内置的网络浏览器,还是所有应用程序都在手机中共享一个通用的网络浏览器? Do these apps also use javascript to display web pages like browser?这些应用程序是否也使用 javascript 来显示浏览器等网页? My question is who does the job of web browser in android app?我的问题是谁在 android 应用程序中做网络浏览器的工作? Who displays html pages and works on javascript if no browser is present?如果没有浏览器,谁会显示 html 页面并使用 javascript?

Some apps have webviews embedded in them that display a web page straight from the source.一些应用程序嵌入了webviews ,直接从源显示网页。 But some (like Facebook) fetch data and dynamically display data on the screen.但有些(如 Facebook)获取数据并在屏幕上动态显示数据。

Please read this article about webview, which will answer your query.请阅读文章有关的WebView,这将回答您的查询。 This is a technique by which an application can show a web page within the application.这是一种应用程序可以在应用程序中显示网页的技术。

For example consider the payment of bill through an app, the app opens the banks webpage into it where user provide the OTP/Password.例如,考虑通过应用程序支付账单,应用程序打开银行网页,用户提供 OTP/密码。

Apps like facebook/twitter just fetch the data from their server and show it using their app.像 facebook/twitter 这样的应用程序只是从他们的服务器获取数据并使用他们的应用程序显示它。 For details please check android developers site .详情请查看android 开发者网站

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

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