简体   繁体   English

如何在iPhone中检查Google Web应用程序

[英]How to check Google web application in iPhone

I have designed a google web application using Eclipse and the Google GWT plugin. 我已经使用Eclipse和Google GWT插件设计了一个Google Web应用程序。

Is there some way I can see the GUI of my application on iPhone or iPad. 是否可以通过某种方式在iPhone或iPad上查看应用程序的GUI。 Please, give me suggestions or tell me if it is possible. 请给我建议或告诉我是否可能。

You are referring to a company server (IP 10.24.56.34). 您指的是公司服务器(IP 10.24.56.34)。 If that is a web server that you or someone from your company can administer, then follow the below process: 如果这是您或公司中的某人可以管理的Web服务器,则请执行以下过程:

  • In eclipse select your project, right click on it, go to google option and select GWT compile. 在Eclipse中选择您的项目,右键单击它,转到google选项,然后选择GWT编译。
  • At the pop-up press compile. 在弹出窗口中按编译。
  • Wait some time (can be a lot, if your project is big/complex). 等待一些时间(如果您的项目很大/很复杂,可能会很多)。
  • After compilation has finished successfully, go to your workspace using an filesystem explorer utility (Note: Right click your project in Eclipse, select project properties, select resource to find your project's location on disk, if you have any doubt as to where it is located. 编译成功完成后,使用文件系统资源管理器实用程序转到工作空间(注意:如果对项目的位置有任何疑问,请在Eclipse中右键单击您的项目,选择项目属性,选择资源以找到项目在磁盘上的位置。 。
  • Inside project's directory, you should find a war directory. 在项目目录中,您应该找到一个war目录。 Copy all its contents in a suitable directory for your webserver to be able to publish. 将其所有内容复制到合适的目录中,以供Web服务器发布。
  • Hit the werbserver's IP and the publish location you used at the previous step, appending the name of the only HTML file you will find in the above mentioned war directory. 点击上一步中使用的werbserver的IP和发布位置,并添加在上述war目录中找到的唯一HTML文件的名称。 You should be able to see your application. 您应该能够看到您的应用程序。 Of course you can browse this location from a browser from your PC to make sure you do not have iPhone related issues. 当然,您可以从PC上的浏览器浏览此位置,以确保没有与iPhone有关的问题。

Hope this helps you! 希望这对您有所帮助!

If you have a Mac you can install Xcode and then see it in the simulator by typing in the localhost URL. 如果您使用的是Mac,则可以安装Xcode,然后通过键入localhost URL在模拟器中查看它。 That should give a pretty good indication of how it will look. 那应该很好地表明它的外观。

You may also be able to make your computer visible on the local wi-fi network by enabling web sharing and then just access it by IP address from the iPhone browser. 通过启用Web共享,您还可以使计算机在本地wi-fi网络上可见,然后只需从iPhone浏览器中按IP地址访问即可。

Alternatively, if you set up your computer as an adhoc wireless network, you can connect to it from your iPhone (select your computer as the wi-fi router) and again access it from the iPhone browser using its IP address. 或者,如果将计算机设置为自组织无线网络,则可以从iPhone连接到计算机(选择计算机作为Wi-Fi路由器),然后使用其IP地址从iPhone浏览器再次访问它。

In debug mode you'll have to use -bindAddress and use an address that you can access from your phone. 在调试模式下,您将必须使用-bindAddress并使用可从手机访问的地址。 If you have a local wireless that both your compter and iphone can connect to then using -bindAddress 0.0.0.0 will bind to your wireless card IP address (so you don't have to type it). 如果您的计算机和iPhone都可以连接到本地无线网络,则使用-bindAddress 0.0.0.0将绑定到您的无线网卡IP地址(因此您不必键入它)。 On my laptop it looks like this: 在我的笔记本电脑上,它看起来像这样:

Dev Mode initialized. Startup URL: 
http://192.168.1.100:8888/index.html?gwt.codesvr=192.168.1.100:9997

then just open this address in iPhone. 然后只需在iPhone中打开此地址即可。

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

相关问题 如何将jwplayer嵌入到Google Web Toolkit应用程序中? - How to embed jwplayer into google web toolkit application? 关于如何在我的Web应用程序中检查内存泄漏? - Regards how to check memory leak in my web application? 如果出现错误,如何检查Tomcat Web应用程序是否正在运行并重定向到另一台服务器? - How to check if Tomcat Web Application is running and redirect to another server if there is an error? 自动检查Web应用程序上的更新 - Automatically check for updates on web application 检查Web应用程序服务是否准备就绪 - Check Web Application Services is ready 如何检查用户是否禁用了来自应用程序管理器的Google文本语音转换 - How to check if user disable Google text to speech from Application manager 如何转换Java Web应用程序以在Google App Engine上进行部署 - how to convert java web application for deploying on Google App Engine 如何在我的java Web应用程序中使用Google音译API? - How to use Google transliteration API in my java web application? 如何使用Google App Engine服务器本地设置运行GWT Web应用程序 - how to run GWT web application with google app engine server localy 如何使用Java Web应用程序将文件上传到Google驱动器? - How to upload file to Google drive with java web application…?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM