${device} in Freemarker template ( liferay version 7.0 and 7.4) does not return device data - liferay

I am trying to get data from freemarker about the kind of device I use and the browser ,
There is ${device} in Freemarker template , but it does not return data, just it returns unknown.
This is what I get :
{brand=unknown, browser=unknown, browserVersion=unknown, model=unknown, os=unknown, osVersion=unknown, pointingMethod=unknown, qwertyKeyboard=true, screenPhysicalSize={height=-1.0, width=-1.0}, screenResolution={height=-1.0, width=-1.0}, tablet=false}
Anyone can help ?

For Liferay DXP the Device detection capabilities allowing the Freemarker call ${device} to function will work after the installation of the Liferay Mobile Device Detection Lite (LMDD), unfortunately, this option is only available with EE-version.
Another option is you will have to create Mobile Device Rules for each one of them: https://help.liferay.com/hc/en-us/articles/360028819552-Mobile-Device-Rules
With mobile device rules, you can alter what gets displayed based on the device being used to access Liferay DXP.
For example: create a group for all Android devices; if Liferay detects an Android device, it can redirect the visitor to a mobile-friendly page.
Hope this helps.

Related

The search option does not show on a mobile device using Housez theme

I decided to use the Housez theme as it advertises as super easy and flexible to use. I am not a web designer but have managed to get my site up and running. www.islandestates.net The problem I have is that there is no search option for the properties on a mobile device? The desktop version works well but how do I get a search box onto the mobile version?
The support from Housez is non existent, I have submitted a request to favetheme but they never reply.
Any help would be aprreciated.
Malcolm

Primefaces interface test on pc?

I am developing a web application with a mobile interface using JSF/Primefaces and I want to test the change from one view to another but the only view that appears is the first one.
How to make it work on PC?
If you use Mozilla Firefox you can download a plugin called User Agent Switcher. There you go to tools -> Default user Agent -> By default it shows Iphone 3.0, but you can download more agents to render different browser views.
You can learn some about the User Agents here

Liferay 6.1 : Mobile theme

I have created theme for 6.1.20.
Now I want to create theme for Mobile device. I have never created mobile theme before.
I have created one sample-Wap-theme.
I can see my sample-wap-theme under ContolePanel > Site Pages > Mobile Devices.
I have selected that theme.
but when I switch to different mobile device user agent , I can not see theme changes !!!
Do I need to do any settings for Mobile Device Rule Groups ?
I have read some where about WURFL plugin. Do I need to install it ?
any help ?
As of Liferay 6.1, you must install the WURFL plugin in order to allow the mobile device rules to work.
This guide is very detailed

Sharepoint 2013 Device Channel Mobile device access with different master page not working

I have created device channels, so that i can access my sp2013 website with a different master-page while accessing with mobile device. But still when i access the site, from different mobiles i get the same master page applied that is also the default master page.
I have done the following :
Created device channels(created 2 device channels)
Now i applied the different master page for mobile devices
I have tried to access my site via :
Sony Xperia Arc S (Android 4.1)
IPad 3
Iphone IOS 4.0
Did you make sure the "Automatic Mobile Browser Redirection" feature was deactivated in site settings on the site you are trying to access?
edit: After testing I found that this feature only works for Site Master Pages. If your page isn't a publishing page then it will take on the Master Page set for the System Master page. Unfortunatley the only device channel available there is "All Channels"
Try using "iPad" as device inclusion rule. instead of full device name. It worked for me.
for more info: http://msdn.microsoft.com/en-us/library/jj862343.aspx

Programmatically changing the current device profile in blackberry?

I'm trying to find an API in the Blackberry JDK that will allow me to change the device's current profile. For example, I'd like to call an API to change it from "Loud" to "Vibrate" or "Quiet" mode; these options are accessible via the Speaker icon on the main blackberry screen.
Is there any way to do this programmatically?
Thanks,
Yes, we can do that by launching the phones profile application from within your app with the following. From there you can edit a profile and set the volume.
ApplicationManager.getApplicationManager().launch("net_rim_bb_profiles_app");

Resources