Why does it look different?

Wishpacker
4 years, 4 months ago
Hello,

Actually, mobilejoomla seems to be a really good extension, but I don't understand something.

The integrated iPhone emulator shows me my website like this



On my Galaxy S6 with a resolution of 1440x2560px, however, it is shown to me



Shouldn't the resolution really matter?

Can someone explain to me why this is so and if you can do something there? Maybe with CSS?

I hope you can understand it despite the google translator.
dryabov
4 years, 4 months ago
By default, Mobile Joomla uses different templates for mobile and desktop versions of the website (mobile version uses Mobile_Basic template). The template is chosen basing on browser's User-Agent header. So, MJ previewer correctly switches to mobile template, but browser's Responsive mode still uses desktop template. But you can select another smartphone emulations mode instead of "Responsive" at the top of your browser (or even click "Edit" and add your own devices with known resolution and User-Agent header).
Wishpacker
4 years, 4 months ago
Yes I know that. I have installed a user agent switcher for my browser. When I visit my website with my smartphone, it really looks like the screenshot. Shouldn't it always look like how it automatically adjusts itself in the emulator? No matter which device? Is there anything i can do?
dryabov
4 years, 4 months ago
Mobile Joomla uses User-Agent header to detect device type (using either local device database or remote one in MJ Pro) and switch to corresponding template. We update local device database several times per year, so it is quite actual. Just don't forget to check that Auto Update is enabled in MJ settings.

As a result, it should adjust template correctly in all smartphone and emulators that change User-Agent header appropriately.
Wishpacker
4 years, 4 months ago
Does that mean if I buy mobile joomla pro, will it work? Or can I also wait for an update with the free version?
dryabov
4 years, 4 months ago
What smartphone do you use for test? And which browser? As far as I know, local database detects device type correctly even for new smartphones (though it may incorrectly detect the screen resolution).
Wishpacker
4 years, 4 months ago
I have a Samsung Galaxy S6 and there is "Samsung Internet" pre-installed.
dryabov
4 years, 4 months ago
1. Have you switched mobile browser to desktop mode?
2. Have you switched to desktop template via Mobile Switcher module?
3. Did you opened MJ's Preview page in mobile browser?
4. Could you visit www.mobilejoomla.com/uatest.php on your mobile browser and post result there?
Wishpacker
4 years, 4 months ago
When I visit my website with my smartphone, the template is already changed, but not shown as it should be. That means the switcher works correctly? When I visit your demo site everything looks great.

dryabov
4 years, 4 months ago
The text
 
amdd: 'mobile'
 

means that the device is included into both local and remote device databases. Could you PM me (or send to denis​@​mobilejoomla.com) the URL of your website? I'll try to check it with our devices.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.