User agents for android devices

Krugliachenko Maksym asked on August 22, 2016 15:58

Hello. Now I have device profile for small devices(iphone and other mobile). This profile works with iphone, but with other mobile(android) doesn't work. It's my settings Display name: Smartphone: (320 x 480) Name: SmallDevice Preview width (in pixels): 320 Preview height (in pixels): 480 Devices: No items selected. User agents: iphone ipod blackberry iemobile googlebot-mobile nexus 5 Macro: maxSideSize = 480;

width = CurrentDevice.ScreenPixelsWidth; height = CurrentDevice.ScreenPixelsHeight;

if (!CurrentDevice.IsMobile || ((width > maxSideSize)||(height > maxSideSize))){ return false; }

return true;

Can you help me.

Recent Answers


Trevor Fayas answered on August 22, 2016 16:12

Just a shot in the dark, most android phones are larger resolution than 320x480, could this be why it is not catching?

0 votesVote for this answer Mark as a Correct answer

Krugliachenko Maksym answered on August 22, 2016 16:15 (last edited on August 22, 2016 16:15)

I don't know. IPhone 5 and 6 are working. What should I do to resolve this problem?

0 votesVote for this answer Mark as a Correct answer

Prasanth Vanamlo answered on October 30, 2017 22:04

I assume 320x480 is small resolution for most android devices, try increasing it and see if it works.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.