使用PhoneGap并保持UI在服务器上 [英] Using PhoneGap and keeping the UI on the server

查看:81
本文介绍了使用PhoneGap并保持UI在服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将继续研究我们的移动应用策略组织的解决方案。有两个有些冲突的要求:

I'm continuing my research on solutions for our organization for our mobile app strategy. There's two somewhat conflicting requirements:


  • 它应该是一个网络应用程序,用户的所有更新都是即时的,在服务器上

  • it should be a web app in that all updates for users are immediate as we update the app on the server

应用程序应尽可能利用本机UI小部件和本机设备功能

the app should leverage native UI widgets and native device features as much as possible



    使用PhoneGap,这个过程似乎是你通常将UI保存在设备上,作为编译应用程序的一部分,你可以通过AJAX打开你的服务器处理数据更新和提交。然后,您可以使用PhoneGap API访问本机设备的UI窗口小部件和功能。

With PhoneGap, the process appears to be that you'd normally keep the UI on the device, as part of the compiled app, and you'd hit your server via AJAX to deal with the data updates and submissions. That then gives you access to the native device's UI widgets and features using the PhoneGap API into their hooks.

但是,在这样做的时候,我们失去了第一点。

However, in doing that, we lose bullet point one.

我的问题是,如果可以,使用PhoneGap,在应用程序中创建一个web视图,让我们保持UI在我们的服务器很多成为自定义浏览器)。如果是这样,我们的UI仍然可以通过PhoneGap的API访问设备的本地功能,或者只有编译我们的UI代码才能访问它们?

My question is if one can, using PhoneGap, create a 'web view' within the app that would allow us to keep the UI on our server (the app then pretty much becomes a custom browser). And, if so, could our UI still access the device's native functionality via PhoneGap's API or is that only accessible if we compiled our UI code?

推荐答案

最近, PhoneGap Google群组上出现了类似的问题。< br>
出现的一件事是,如果你从远程服务器加载UI和核心功能,你不太可能通过应用商店认证,因为这会使认证的大部分目的失效。

A similar question came up on the PhoneGap Google Group recently.
One thing that came up was that you are unlikely to pass app store certification if you are loading UI and core functionality from a remote server as this invalidates much of the purpose of certification.

这篇关于使用PhoneGap并保持UI在服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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