• iPhone is not recognised

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #6234  by joergweis
 
I have an installation of the current 4.1 version of openKM. So far nearly everything is fine except, that when I connect my iphone browser to the url where openKM resides I do not get the iphone optimized view. When I point my iphone to the openkm demo site it works fine, what can there be the problem? i have found so far no documentation in the wiki about that.
 #6236  by jllort
 
could be a bug with version 4.1 really we detect the browser and then change ... you could try directly with this url
Code: Select all
http://host:8080/OpenKM/mobi/
 #6240  by joergweis
 
HI, thanks for the hint, I am redirected to the mobi page but the rendering is too small, if I go to your demo it works flawless. Is it possible to get the 5.0 beta?
regards Jörg.
 #6254  by jllort
 
Until september version 5.x it'll not be available to community, now only we've installed to some of our clients because needs mandatory some of features only presents in version 5.
 #6273  by joergweis
 
thanks, but have you tried on a lower version than 5.0 if it works at all? So I can close this if it is not possible with 4.x, regards.
 #6280  by jllort
 
Yes i was tryed in 5.x, 4.0 and 3.x but not at 4.1, probably could be a stupid bug in that version.

I take a look at source code at seems is right. The key to switch normal or mobile is on index.jsp file into OpenKM.war.

index.jsp makes it comprovation:
Code: Select all
if (FormatUtil.isMobile(request)) {
		url = "mobi/index.jsp";
	} else {
		url = "es.git.openkm.frontend.Main/index.jsp";
	}
And FormatUtil class makes it
Code: Select all
public static final boolean isMobile(HttpServletRequest request) {
		String userAgent = request.getHeader("user-agent").toLowerCase();
		return userAgent.contains("android") || userAgent.contains("iphone");
	}
Code from OpenKM 4.1 seems right ... could you make a change into your index.jsp including it, and tell me the output:
Code: Select all
System.out.println("detected agent:" +  request.getHeader("user-agent").toLowerCase());
in your server.log it'll appers the agent detected. That could help us to understand what's happening.
 #6285  by joergweis
 
Hi, thanks for the input I changed index.jsp and the iphone is detected, see system.out from server.log:
2010-08-24 12:31:20,012 INFO [STDOUT] detected agent:mozilla/5.0 (iphone; u; cpu iphone os 4_0_1 like mac os x; de-de) applewebkit/532.9 (khtml, like gecko) version/4.0.5 mobile/8a306 safari/6531.22.7
I have also attached a screenshot how it looks like on my iphone.
Attachments
iphone screenshot
iphone screenshot
Foto.PNG (57.79 KiB) Viewed 4930 times
 #6288  by jllort
 
now dectects iphone and before not ?
 #6378  by joergweis
 
yes iphone was detected everytime but when I log into your demo the screen is fullscreen here I only get what see on the prior posted screenshot.
 #6384  by jllort
 
Now I'm confused, the problem is on our online demo or in your local installation ?

I've tested our online demo with my android and runs well ( sorry but I've not an iphone now, I'll test it too with iphone later ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.