function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cgosscgoss 

getUiThemeDisplayed always returns Theme4t on mobile devices

According to the documentation here the UserInfo (and global variable) should indicate which theme the user is currently using. This works fine, except that in mobile devices, the theme always indicates SF1 (Theme4t). Even if the user is using a mobile browser (Safari on iPad for instance) and is in the full Salesforce site in classic view. This makes it impossible to treat the SF1 app or lightning vs classic UI differently on any mobile device. I've tested this on iPad, iPhone and Android (Chrome browser).

Is this by design? If so, this should be noted in the documentation.
hemmhemm
I can reproduce this issue. This method appears to be quite inaccurate and not fully tested. I also am unable to get Theme4d to be the result after I switch over to Lightning. It says Theme3. 
Aswathy_NairAswathy_Nair
Known Issues link is posted https://success.salesforce.com/issues_view?id=a1p3A000000jl1UQAQ