Public App not approved. Need to Correct use App Bridge.

Appypie
New Member
3 0 0

Hey, 
  I recently submitted a Shopify Public App but got rejected for the reason,

Correct your use of App Bridge using our documentation. Your OAuth redirect request fails to escape the iframe and doesn't successfully direct to your embedded app's version. However, your app does successfully use App Bridge from the installed apps list. Make your app's embedded user interface experience consistent to comply with our embedded app requirements.

I am doing development in PHP and in process to fix the above point I have just added following in my view page

<script src="https://unpkg.com/@shopify/app-bridge"></script>
<script>
var AppBridge = window['app-bridge'];
var createApp = AppBridge.default;
var app = createApp({
apiKey: 'MYAPIKEYVALUE',
shopOrigin: "<?php echo $_GET['shop'];?>"
});
</script>
 

I am not sure exactly what is breaking as I have checked multiple times, whenever app gets installed OAuth screen gets appear and we have not shared URL to open the app without. OAuth.  can anyone please clearify?

0 Likes