Home Forums WoodMart support forum Our iOS App loads the web version of the site instead of loading the mobile vers

Our iOS App loads the web version of the site instead of loading the mobile vers

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #316768

    kevajo
    Participant

    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

    #316776

    Artem Temos
    Keymaster

    Hello,

    Could you please provide us with an instruction about how to install both apps and test how it works?

    Kind Regards

    #316780

    kevajo
    Participant

    Find the download links in the private sector

    #316804

    Artem Temos
    Keymaster

    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

    #316974

    kevajo
    Participant

    it’s only your theme

    #316981

    Artem Temos
    Keymaster

    In this case, please, send us your admin and FTP access so we can switch to the default theme and compare how it works.

    #317194

    kevajo
    Participant

    Hello
    I give you more details in private

    #317203

    Artem Temos
    Keymaster

    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?

    #317204

    kevajo
    Participant

    check private answers

    #317209

    Artem Temos
    Keymaster

    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.

    #317214

    kevajo
    Participant

    ok see private

    #317216

    Artem Temos
    Keymaster

    We see that with the default theme it also shows the webs version and not the mobile one https://gyazo.com/1bf6df177d76bfa7e54c9e24045fcb08

    #317217

    kevajo
    Participant

    okay see private

    #317239

    Artem Temos
    Keymaster

    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;
    } );
    #317240

    kevajo
    Participant

    Okay it’s okay now.
    Thanks for the assistance

    #317247

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Our iOS App loads the web version of the site instead of loading the mobile vers’ is closed to new replies.