What is the URL option to display a Mobile XPage App with iPhone theme?

偶尔善良 提交于 2019-12-11 01:37:23

问题


When I load an xpages mobile application into desktop safari it displays the app with the default theming for an Android device. What do you need to do to get it to use the default iPhone theming?

I thought you needed add something like &iPhone=1 to the end of the url, but that's not working.

Thank you.


回答1:


To quote the Mobile Controls tutorial:

A browser platform query string parameter is available for developers to force the browser to takes precedence over one another. Just add '?platform=iphone' or '?platform=android' to the URL and this will force the correct theme for XPages mobile pages that match against the xsp.theme.mobile.pagePrefix property.




回答2:


Another option is to enable the Develop menu (Edit - Preferences, then on Advanced tab tick Show Develop menu in menu bar. Then from the Develop menu you can change the user agent or set your own.




回答3:


You could use the sample application for the Extension Library from openntf.org. Go to the "Mobile" tab where you can "extract" the urls to show as iPhone, Android and BlackBerry.

With just a few changes you can add a url as a parameter to this application to show your own mobile app in the same context ;-) I use that for demo purposes.

/John



来源:https://stackoverflow.com/questions/9896060/what-is-the-url-option-to-display-a-mobile-xpage-app-with-iphone-theme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!