App links and sharing
How to get a link that opens one app directly, what the link looks like, and how users share a map view.
You do not have to send your users to the Apps page and let them search. Every app has a link that opens it directly. Put the link on your intranet, into an e-mail or behind a button of another application.
Get the link of an app
- Open the Apps page.
- On the card of the app, click
Show App URL. - Copy the link from the field that slides in. The page confirms with
App URL copied to clipboard.
What the link looks like
| App | Link |
|---|---|
| Browser app, desktop app | https://<server>/Apps/<app name>?tenant=<tenant> |
| Mobile app | https://<server>/Apps/?tenant=<tenant>&appId=<id of the app> |
The link of a browser app or a desktop app contains the name of the app. Two things follow from that:
- You can write such a link yourself if you know the name of the app and of the tenant. Write the name exactly as it is spelled in Studio.
- If you rename the app in Studio, links with the old name stop working. Hand out the new link.
The parameter tenant is always required.
What happens when someone opens the link
| Situation | Result |
|---|---|
| The user is not logged in | The login page appears. After the login the app starts. |
| The app is public | The app starts without a login. See Public apps. |
| Browser app | The app opens in the same browser tab. |
| Desktop app | The desktop client starts. The Apps page stays open. See Working with a desktop app. |
| Mobile app | A dialog with a QR code opens. See below. |
| There is no app with this name | The Apps page opens and shows a message that the app is unknown. |
| The user has no access to the app | The Apps page opens and shows a message. The app does not start. |
Mobile apps
A mobile app does not run in the browser. Its link opens a dialog with a QR code. The user scans the code with the M.App Enterprise Mobile app. The dialog also contains the links to the app stores.
The QR code contains the address of your server and the name of the tenant. It connects the mobile app to your server; the user then signs in on the device. See Documentation 17.
Share a map view
A user who is logged in can share the current state of a browser app as a link:
- In the app, open the tab
Bookmarksand save a bookmark. - On the bookmark, click
Link. The link is copied to the clipboard.
The link is the link of the app with the parameter bookmarkId. Whoever opens it gets the bookmark added to their own bookmarks, and the app shows the saved position, the visible layers and the style set. The recipient needs access to the app.
Users of a public app have no bookmarks. See Working with a browser app.
Pass your own values in the link
The product does not read a position or a search term from the link. A script in the app can: it reads the parameters of the address and reacts to them, for example by moving the map to a coordinate. See the sample Zoom to coordinate via URL parameter.