QuickCapture and custom URL scheme links
ArcGIS QuickCapture can be integrated with other apps using either a QuickCapture link or a custom URL scheme. Both methods support the same parameters, but there are platform-dependent differences between the methods.
QuickCapture links begin with https://quickcapture.arcgis.app and work on iOS and Android. QuickCapture links conform to requirements set by the App Store and Google Play, enable linking to more apps, and support shortened links that are easier to share. ArcGIS apps that you can open with an app link include ArcGIS Survey123, ArcGIS Field Maps, ArcGIS Workforce, and ArcGIS Navigator. The following is a link to launch a QuickCapture project from another ArcGIS app:
https://quickcapture.arcgis.app/?itemID=aabda4a5e36d42c2bcf1c479fe01e5e3
Custom URL scheme links begin with arcgis-quickcapture:// and work on Windows and Android. Custom URL scheme links cannot be shortened and can be difficult to open on Android. To assist opening on Android, consider presenting custom URL scheme links in the form of hyperlinks, similar to the following:
<a href="arcgis-quickcapture://?itemID=36ff9e8c13e042a58cfce4ad87f55d19">Open project</a>
QuickCapture links are the preferred method of linking between apps, and custom URL schemes are the preferred method for sharing projects.
Before using a link that contains parameters to launch a project in the mobile app, it is recommended that the app already be installed on the device.
URL parameters
You can use the following parameters to customize how the mobile app is opened:
|
Parameter |
Description |
Example |
Type |
|---|---|---|---|
|
|
Specifies how a project is opened. Supported values are Buttons are identified by a GUID, which is displayed at the bottom of the buttons Appearance tab in the QuickCapture designer. |
To capture a point feature, or start or stop capture of a line or polygon feature: To capture a feature, and populate the diameter field of that feature with the value of 20: |
String |
|
|
Specifies the URL to return to when a button is pressed. |
|
URL |
|
|
Centers the map to known latitude, longitude, and optional altitude. |
|
String |
|
|
Specifies to use an external browser for sign in. |
|
Boolean |
|
|
Specifies the project to open. |
|
UUID |
|
|
Specifies the URL to the portal where the QuickCapture project item is hosted. |
|
String |
|
|
Specifies the ID and value with which to populate the project user input variable. |
|
String |
URL encoding
Although URL parameters that are not encoded work in some environments, it is recommended that you encode URL parameters. Encoding replaces invalid characters with the percent sign (%) followed by their hex equivalent.
For example, the following is a Survey123 link that uses a callback to return to a specific project in QuickCapture with parameters that are not encoded:
https://survey123-mobile.arcgis.app?itemID=36ff9e8c13e042a58cfce4ad87f55d19&callback=https://quickcapture.arcgis.app?itemID=867895a71a1840399476fc717e76bb43
The following is the same URL with encoded parameters:
https://survey123-mobile.arcgis.app?itemID=36ff9e8c13e042a58cfce4ad87f55d19&callback=https%3A%2F%2Fquickcapture.arcgis.app%3FitemID=867895a71a1840399476fc717e76bb43
An equal sign that specifies a break between a key and its value should not be encoded.
Tip:
One way to create encoded parameters is to use ArcGIS Arcade. The UrlEncode function allows you to define a collection of key value pairs that represent each parameter and produce a URL with appropriate encoding.