Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information that secret and registrationUrl is needed #1164

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions guides/plugins/apps/starter/starter-admin-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SimpleNotification/
<!doctype html>
<html>
<head>
<script src="https://unpkg.com/@shopware-ag/admin-extension-sdk@0.0.52/cdn"></script>
<script src="https://unpkg.com/@shopware-ag/admin-extension-sdk/cdn"></script>
</head>
<script>
sw.notification.dispatch({
Expand Down Expand Up @@ -114,7 +114,7 @@ Now the file should be available on [http://127.0.0.1:8080](http://127.0.0.1:808

The final step of the setup is to configure your app to use that file as an entry point.

In order to do that, we have to add an `admin` section to our `manifest.xml` file and pass it into the `base-app-url` tag:
To do that, we have to add an `admin` section to our `manifest.xml` file and pass it into the `base-app-url` tag:

```xml
// manifest.xml
Expand All @@ -123,6 +123,10 @@ In order to do that, we have to add an `admin` section to our `manifest.xml` fil
<meta>
<!-- ... -->
</meta>
<setup>
<registrationUrl>http://127.0.0.1:8000/app/lifecycle/register</registrationUrl>
<secret>TestSecret</secret>
</setup>
<admin>
<base-app-url>http://127.0.0.1:8080</base-app-url>
</admin>
Expand Down