An app created by Web AppBuilder can be downloaded and hosted on your web server. Any 2D or 3D app that is downloaded must be registered with ArcGIS Online or ArcGIS Enterprise if the app references nonpublic items.
Note:
Wherever you deploy the app, it still needs access to the web map.
Download an app created by Web AppBuilder
Download the app from the My Content tab of the content page.
- On the My Content tab of the content page, click the app to view its item details.
- Click Download on the Overview page. The .zip file downloads to your computer.
Deploy the app
Deploy the app based on your portal's authentication.
- If your portal is configured with OAuth2 or SAML authentication, do the following to deploy the app on your web server:
- Unzip the downloaded app.
- Add a proxy to your app. Refer to Use proxy for details.
- Add and register the app. Refer to Add apps and Register your app.
- Copy and paste the app ID to the appId property in the app config file. Save the file.
- Deploy the app on your web server.
- If your portal is configured with IWA, PKI, or LDAP authentication, do the following to deploy the app on your web server:
- Unzip the downloaded app.
- Add a proxy to your app. Refer to Use proxy for details.
- Change the URL of ArcGIS Maps SDK for JavaScript.
Caution:
When you access the app, you may be asked to sign in many times. This is because JavaScript files hosted by your portal must be authenticated. As a result, you should host ArcGIS Maps SDK for JavaScript outside the portal and change the apiUrl variable to it. This is specific to web-tier authentication.
- Deploy the app on your web server.
Customize the app
Do the following to customize the app:
- Add custom widgets:
- Put a custom widget in the widgets folder.
- Add the widget to the app’s config.json file.
The example below uses the Demo widget. Add it to the config.json file.
{ "uri": "widgets/Demo/Widget" },
- Configure the app and widgets. Refer to JSON reference.
- Reference the preferred ArcGIS Maps SDK for JavaScript. Refer to Change the URL of ArcGIS Maps SDK for JavaScript.
Supported browsers
For a list of browsers supported by your deployed 2D and 3D apps, see Supported browsers.
Note:
If nothing loads in the app when it's opened, you may need to add .arcgis.com to the trusted sites in your browser's settings.
Supported versions of ArcGIS Maps SDK for Javascript
ArcGIS Maps SDK for Javascript comes with Portal for ArcGIS. See About release versions for a table of the supported versions of ArcGIS Maps SDK for Javascript for 2D and 3D apps.