Page 1 of 1
					
				Mobile Version
				PostPosted:Wed Oct 01, 2014 10:38 am
				by handinux
				hi all.
when i open demo.openkm.com with my android phone browser the mobile version appears but when i build openkm from sources and open it in my android browesr the desktop version i see.
thanks
			 
			
					
				Re: Mobile Version
				PostPosted:Thu Oct 02, 2014 10:20 pm
				by jllort
				Demo is based on Professional version. Since version 6.0 we removed mobile support from Community version. We proposed to community if someone would like to maintain this code and nobody offered for it. At the present you can consider it as deprecated, in future releases I think we will include again, because will be raised directly from Professional version.
Also one of OpenKM partners developed a OpenKM client for iPad.
			 
			
					
				Re: Mobile Version
				PostPosted:Fri Apr 17, 2015 12:27 pm
				by pavila
				Please, don't mix different subjects in the same post.
			 
			
					
				Re: Mobile Version
				PostPosted:Sun May 03, 2015 2:55 pm
				by swirusek
				mobile version is great. Everything works fine
			 
			
					
				Re: Mobile Version
				PostPosted:Mon May 04, 2015 7:29 pm
				by sandertaker
				Hi, i need to know if i can see a preview of a document using openkm 6.3 commnunity, or the only way to see a preview from android is using version 6.4?
			 
			
					
				Re: Mobile Version
				PostPosted:Thu May 07, 2015 8:17 am
				by Grzyby15
				Confirm, mobile version works normal.
			 
			
					
				Re: Mobile Version
				PostPosted:Wed May 13, 2015 1:29 pm
				by Catscratch
				He Guys,
I integrated a new mobile version into community edition 6.3.x.
My problem is the spring security redirection. I don't know excactly how it works. When login is complete, the user gets redirected to "frontend/index.jsp". But where is this redirection configured? Where can I change the redirection (in my case to "mobile/index.jsp")?
			 
			
					
				Re: Mobile Version
				PostPosted:Thu May 14, 2015 2:56 pm
				by jllort
				First, you should modify index.jsp with something like that :
Code: Select allif (FormatUtil.isMobile(request)) {
	url = Config.MOBILE_CONTEXT + "/index.jsp";
} else {
	url = "frontend/index.jsp";
}
 
The method should be something like:
Code: Select all/**
 * Detect if the current browser is a mobile one
 */
public static final boolean isMobile(HttpServletRequest request) {
	String userAgent = request.getHeader("user-agent").toLowerCase();
	return userAgent.contains("android") || userAgent.contains("iphone") || userAgent.contains("ipad")
			|| userAgent.contains("blackberry");
}
 
Also you should detect on login.jsp if you're on desktop or mobile scenario. then include login_desktop.jsp or login_mobile.jsp ( you should create one ). Because login screen should not be the same.
The index.jsp redirects to /mobile/index.jsp what should be an authenticated resource
 
			 
			
					
				Re: Mobile Version
				PostPosted:Mon May 18, 2015 11:26 am
				by Catscratch
				Thanks! It's working.
			 
			
					
				Re: Mobile Version
				PostPosted:Wed Sep 02, 2015 2:10 pm
				by sunil
				Hi Guys,
I just came to know that mobile view has been removed from 6.X on-wards  

 . I have tried a lot to integrate mobile view of 5.X with 6.3 but not succeeded 

 . If any one did the same, please share the source code with me 

 .
 
			 
			
					
				Re: Mobile Version
				PostPosted:Wed Sep 02, 2015 3:04 pm
				by Catscratch
				Hi,
I did it. I didn't have time to commit it back to OpenKM developers yet to let them integrate it into community edition. I will do so asap.
I would suggest you wait until these patch is reviewed an integrated again.
			 
			
					
				Re: Mobile Version
				PostPosted:Thu Sep 03, 2015 8:01 am
				by sunil
				Hi,
Thanks for the reply.
You have done really good work with Mobile version.  
 
I really appreciate if you share the source code with Zip file. 

 
			 
			
					
				Re: Mobile Version
				PostPosted:Thu Sep 03, 2015 9:57 am
				by Catscratch
				Edit: removed
			 
			
					
				Re: Mobile Version
				PostPosted:Thu Sep 03, 2015 11:45 am
				by sunil
				Edit: Removed
			 
			
					
				Re: Mobile Version
				PostPosted:Thu Sep 03, 2015 4:18 pm
				by pavila
				I think I've received the patch, but it doesn't work. It shows a blank page.