Our iOS App loads the web version of the site instead of loading the mobile vers
-
We have created 2 native Andrpoid and ios App for our site.
The Apps have been designed to load the site.
More details in private
Hello,
Could you please provide us with an instruction about how to install both apps and test how it works?
Kind Regards
Find the download links in the private sector
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
In this case, please, send us your admin and FTP access so we can switch to the default theme and compare how it works.
Hello
I give you more details in private
We have installed the APP earlier and can’t switch the language now. Please, switch to the default theme temporarily so we can check how it works. Also, should we check this on .bf
or on .com
?
Yes, I have reinstalled and selected the second language. But our theme is still activated. We need to see how it works with the default WordPress theme.
We see that with the default theme it also shows the webs version and not the mobile one https://gyazo.com/1bf6df177d76bfa7e54c9e24045fcb08
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter( 'wp_is_mobile', function( $is_mobile ) {
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'CPU iPhone' ) ) {
$is_mobile = true;
}
return $is_mobile;
} );
Okay it’s okay now.
Thanks for the assistance
The topic ‘Our iOS App loads the web version of the site instead of loading the mobile vers’ is closed to new replies.