APEX Mobile SALESFORCE

how to check the page is loaded in mobile or browser using Apex Class

how to check the page is loaded in mobile or browser using Apex Class its achievable with the help of “User-Agent” header properties like below:   String userAgent = ApexPages.currentPage().getHeaders().get(‘User-Agent’); if (userAgent.contains(‘iPhone’)) {     return ‘iPhone-Safari’; } else if (userAgent.contains(‘iPad’))…

Read More