• Resolved Halil ESEN

    (@halilesen)


    Hello,
    When PWA is installed on Android phones, the picture on the splash screen becomes the application icon. But I want the logo to appear there. I marked the images to be set for the application icon as maskable.

    Here is the code I use for this:

    add_filter( 'web_app_manifest', function ( $manifest ) {
    	$manifest['icons'] = array(
    		array(
    			'src'     => home_url( '/startup/acilis-logo.png' ),
    			'sizes'   => '512x512',
    			'type'    => 'image/png',
    			'purpose' => 'any',
    		),
    		array(
    			'src'     => home_url( '/wp-content/uploads/mas-512.png' ),
    			'sizes'   => '512x512',
    			'type'    => 'image/png',
    			'purpose' => 'maskable',
    		),
    	);
    	return $manifest;
    } );

    Do you think more pictures should be added? I want it to be separate for the icon and separate for the splash screen.

    I wish there was a way to remove the text on the splash screen since the logo and site name are the same? Maybe there is?

    By the way, one more thing. I don’t want to open another thread and blow it up. What has been done to support Apple Startup Image? What codes were used? I have a non-WordPress site and it doesn’t support it.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Android Startup Image’ is closed to new replies.