简体   繁体   English

在没有框架的情况下,如何将webapp编译为混合的one / jpk手机?

[英]How to compile a webapp to an hybrid one/jpk for my mobile phone without framework?

I have to build a hybride app, out of my webapp. 我必须从我的Web应用程序中构建一个Hybride应用程序。 It´s not allowed to use a middleware framework like phonegap which just builds it. 不允许使用像phonegap这样的中间件框架来构建它。 In my app I want to show that HTML5 already allows to use a lot of functions of the mobile phone like the geolocation, instead of frameworks which can do the same, so I cannot use the framework for building my app. 在我的应用程序中,我想表明HTML5已经允许使用手机的许多功能,例如地理位置,而不是可以使用相同功能的框架,因此我无法使用该框架来构建我的应用程序。 Which program should I use, VS? 我应该使用哪个程序,VS? And how can I build my application(jpk) without a framework like that to test it on my mobile phone? 以及如何在没有类似框架的情况下构建应用程序(jpk)以便在手机上对其进行测试?

You should create a simple application with a webview and run your webapp inside this webview. 您应该使用webview创建一个简单的应用程序,然后在该webview中运行您的webapp。

The problem is: hybrid frameworks like Cordova or Phonegap arent supose to just implement mobile features like camera or gps, they are useful writing once and run everywhere without complaining about iOs and Android code or even for fallbacks. 问题是:像Cordova或Phonegap arent这样的混合框架只能实现像camera或gps这样的移动功能,它们一次编写有用,并且可以在任何地方运行,而无需抱怨iO和Android代码,甚至可以避免失败。 Probably in the future youre not even going to install applications in your phone to use all mobile features using only browser features. 也许将来您甚至不会在手机中安装应用程序以仅使用浏览器功能来使用所有移动功能。

Here are some helpful links: 以下是一些有用的链接:

https://developer.android.com/guide/webapps/webview.html https://developer.android.com/guide/webapps/webview.html

https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/ https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/

https://developer.mozilla.org/en-US/Apps/Progressive https://developer.mozilla.org/zh-CN/Apps/Progressive

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

相关问题 如何使用电话间隔在混合应用程序中发布请求 - How to POST a request in a hybrid application using phone gap 如何从Web应用程序导航到手机设置屏幕 - How to navigate to phone setting screen from a webapp 如何使移动Web应用程序在iPhone上离线工作? - How can I make a mobile webapp work offline on iPhone? 如何检测用户是否已将webapp添加到移动设备上的主屏幕? - How to detect that User has added webapp to the homescreen on mobile device? 在混合移动应用程序中启用了拼写检查 - Spellcheck enabled in Hybrid Mobile application 在固定到Windows Phone上的开始屏幕时,是否有办法使移动Web应用程序图标显示为图块? - Is there a way to get a mobile webapp icon to apear as the tile when pinning to start screen on a Windows Phone? 如何在混合移动应用程序中将材料设计精简版中的FAB按钮与jQuery移动代码集成? - How to integrate FAB button in material design lite with jQuery mobile code in hybrid mobile application? 适用于混合移动应用程序的Paypal API - Paypal api for hybrid mobile app 会话管理方法在移动本机与混合与Web应用程序中的区别如何? - How Session Management approach differs in mobile native vs hybrid vs web applications? 如何设置设置Android键盘以在Mobile Hybrid应用中大写字母 - How to set set Android keyboard to capitalize first letter in Mobile Hybrid app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM