Making our app comply with latest changes

Hi,

We are trying to get our legacy web app to comply with the changes required for it to show in admin. This is for a custom app. The following page list 3 things that are needed:

Updating Shopify App Bridge

  1. Ensure that the content security policy includes admin.shopify.com.
  2. Update App Bridge to version 2.0.5 or higher. We recommend updating to version 3.2.0 or higher.
  3. Initialize App-Bridge with the host parameter.

We have performed all of these steps. Added Content Security Policy header, added App Bridge 3, and initialized AppBridge with the host parameter, but we are still being redirected to the legacy page in admin. Any ideas would be appreciated. The code is shown below. We have replaced our store name with “demo” in the example below, and changed the API key, neither of them is what we are using.


	
		  
		  
		  
        
		  
		  
		  
		  
		  
		  
	      
	       
		  
		  
		  
        
        
        
        
		  
		  
		  
		  
	
	
		

			 session->flashdata('msg') != ''): ?>
			    

			      
			      ####  Success!
			      session->flashdata('msg'); ?> 
			    

			   
			
			
	
	
    
	
	
	
	
	
	
	
	
		
	

Hi, can you check your app’s configuration page in the Shopify Partners dashboard and check whether the “Embed app in Shopify admin” is set to true?

If it is not set to true, it will be treated as a standalone app which will open in its own page.

It is set to true. It is treated as an embedded app. When we load Shopify it is embedded in the frame. It currently displays correctly, but is directed to the legacy window, stating it is taking a long time to load.