galleryUrl in a webview or iframe.
This page covers the recommended integration patterns for mobile apps and web apps.
Opening the Viewer
After you upload a floor plan through the Processing API, the response includes:galleryUrl— a fully hosted MagicFurnish viewer link
Mobile App Integration (iOS / Android)
Use your platform’s standard WebView component.iOS (SwiftUI Example)
Android (Kotlin Example)
Web Integration (iframe)
Simply embed the viewer in an iframe:Optional Parameters
You can control branding and navigation by appending query parameters:| Parameter | Description |
|---|---|
tenant | Apply partner-specific theming (colors / logo) |
returnUrl | Show a “Back” button that returns users to your app |
Example
Best Practices
- Always open the viewer in a full-screen modal or dedicated screen
- Ensure your WebView component allows JavaScript
- Use
returnUrlif your app requires controlled navigation - Do not attempt to inject scripts or modify the viewer (unsupported)
Deep Linking
If you need to preserve navigation context (e.g., S.MPLE), pass a URL-encodedreturnUrl.MagicFurnish will render a back button that brings the user directly back to your app.
Summary
- Call the Processing API
- Receive a
galleryUrl - Open it in a webview or iframe
- (Optional) Add
tenantandreturnUrlparameters