Mobile Version

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
Post Reply
handinux
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Tue Sep 30, 2014 11:32 am

Mobile Version

Post by handinux » Wed Oct 01, 2014 10:38 am

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

jllort
Moderator
Moderator
Posts: 10834
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mobile Version

Post by jllort » Thu Oct 02, 2014 10:20 pm

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.

pavila
Moderator
Moderator
Posts: 3072
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Mobile Version

Post by pavila » Fri Apr 17, 2015 12:27 pm

Please, don't mix different subjects in the same post.

swirusek
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Sun May 03, 2015 2:53 pm

Re: Mobile Version

Post by swirusek » Sun May 03, 2015 2:55 pm

mobile version is great. Everything works fine

sandertaker
Expert Boarder
Expert Boarder
Posts: 132
Joined: Fri Jun 27, 2014 2:48 pm

Re: Mobile Version

Post by sandertaker » Mon May 04, 2015 7:29 pm

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?

Grzyby15
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Thu May 07, 2015 8:12 am

Re: Mobile Version

Post by Grzyby15 » Thu May 07, 2015 8:17 am

Confirm, mobile version works normal.

Catscratch
Platinum Boarder
Platinum Boarder
Posts: 334
Joined: Wed Feb 16, 2011 10:35 am

Re: Mobile Version

Post by Catscratch » Wed May 13, 2015 1:29 pm

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")?
My OpenKM installation:
- OpenKM Community 6.3.1 on Tomcat 7, Debian x64, 8GB RAM, Postgresql, LDAP, Only https

jllort
Moderator
Moderator
Posts: 10834
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Mobile Version

Post by jllort » Thu May 14, 2015 2:56 pm

First, you should modify index.jsp with something like that :

Code: Select all

if (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

Catscratch
Platinum Boarder
Platinum Boarder
Posts: 334
Joined: Wed Feb 16, 2011 10:35 am

Re: Mobile Version

Post by Catscratch » Mon May 18, 2015 11:26 am

Thanks! It's working.
My OpenKM installation:
- OpenKM Community 6.3.1 on Tomcat 7, Debian x64, 8GB RAM, Postgresql, LDAP, Only https

sunil
Junior Boarder
Junior Boarder
Posts: 20
Joined: Wed Sep 02, 2015 1:47 pm

Re: Mobile Version

Post by sunil » Wed Sep 02, 2015 2:10 pm

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 :cry: . If any one did the same, please share the source code with me :| .

Catscratch
Platinum Boarder
Platinum Boarder
Posts: 334
Joined: Wed Feb 16, 2011 10:35 am

Re: Mobile Version

Post by Catscratch » Wed Sep 02, 2015 3:04 pm

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.
Last edited by Catscratch on Fri Sep 04, 2015 11:45 am, edited 2 times in total.
My OpenKM installation:
- OpenKM Community 6.3.1 on Tomcat 7, Debian x64, 8GB RAM, Postgresql, LDAP, Only https

sunil
Junior Boarder
Junior Boarder
Posts: 20
Joined: Wed Sep 02, 2015 1:47 pm

Re: Mobile Version

Post by sunil » Thu Sep 03, 2015 8:01 am

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. :idea:

Catscratch
Platinum Boarder
Platinum Boarder
Posts: 334
Joined: Wed Feb 16, 2011 10:35 am

Re: Mobile Version

Post by Catscratch » Thu Sep 03, 2015 9:57 am

Edit: removed
Last edited by Catscratch on Fri Sep 04, 2015 11:44 am, edited 1 time in total.
My OpenKM installation:
- OpenKM Community 6.3.1 on Tomcat 7, Debian x64, 8GB RAM, Postgresql, LDAP, Only https

sunil
Junior Boarder
Junior Boarder
Posts: 20
Joined: Wed Sep 02, 2015 1:47 pm

Re: Mobile Version

Post by sunil » Thu Sep 03, 2015 11:45 am

Edit: Removed
Last edited by sunil on Sun Sep 06, 2015 11:31 am, edited 2 times in total.

pavila
Moderator
Moderator
Posts: 3072
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Mobile Version

Post by pavila » Thu Sep 03, 2015 4:18 pm

I think I've received the patch, but it doesn't work. It shows a blank page.

Post Reply