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.
Just a shot in the dark, most android phones are larger resolution than 320x480, could this be why it is not catching?
I don't know. IPhone 5 and 6 are working. What should I do to resolve this problem?
I assume 320x480 is small resolution for most android devices, try increasing it and see if it works.
Please, sign in to be able to submit a new answer.