Я создал приложение Shopify, это канал продаж ... теперь я хочу встроить приложение, но приложение всегда отображается в новом окне браузера.
Вот что я сделал: Из учетной записи Shopify Partners я перешел к расширению приложения и сделал его встроенным:
![enter image description here](https://i.stack.imgur.com/w70TO.png)
Now when user installs the app, I redirect the users to the oAuth page... if user accepts the app is installed.
Next time user logs in to the app, I return the following code (C#, ASP.NET MVC):
public ActionResult Handshake(string shop)
{
return View("Test"); // test view
}
I have tried returning both of the following content in the Test view:
- a complete HTML page:
<!DOCTYPE html>
Тест Настройки Содержание страницы
Просто div, который содержит мое приложение:
<div class="Polaris-Page">
<div class="Polaris-Page__Header">
<h1 class="Polaris-DisplayText Polaris-DisplayText--sizeLarge">Settings</h1>
</div>
<div class="Polaris-Page__Content">
<p>Page Content</p>
</div>
</div>
Но HTML, который я возвращаю, никогда не встраивается в страницу администратора Shopify ... Он всегда отображается в новой вкладке браузера.
введите описание изображения здесь
Как я могу встроить это приложение?