[英]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.