<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Arcade Function to Detect Browser vs Mobile app in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idi-p/1241103</link>
    <description>&lt;P&gt;I would love if there were Arcade functionality to detect what platform a user was accessing a map from so that derived content could be displayed accordingly. My particular use case is creating links to access Cityworks items for field and office users. Field users would be looking at the map in Field Maps and use a URL to open it in the Cityworks Mobile app. Office users would view the map in Portal or a web app, and use a different URL to open in Cityworks Office.&lt;/P&gt;&lt;P&gt;Currently, I have to create two links in the same map (some potential for confusion) or maintain separate maps for field and office users (more work). Having a way to tell if the user is in Field Maps or a browser would allow me to tailor the experience to the user with less maintenance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-14 103014.png" style="width: 393px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58514i12BAB164B5E477D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-12-14 103014.png" alt="Screenshot 2022-12-14 103014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In practice, it would be great to be able to write it something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var urlFormat1 = "some:\\format\"
var urlFormat2 = "https:\\anotherFormat\"

\\get environment
var env = GetPlatform()
\\build URL accordingly
if(env = "Mobile"){
return urlFormat1 + $feature.InspectionID
}
else{
return urlFormat2 + $feature.InspectionID
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 15:51:05 GMT</pubDate>
    <dc:creator>JCGuarneri</dc:creator>
    <dc:date>2022-12-14T15:51:05Z</dc:date>
    <item>
      <title>Arcade Function to Detect Browser vs Mobile app</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idi-p/1241103</link>
      <description>&lt;P&gt;I would love if there were Arcade functionality to detect what platform a user was accessing a map from so that derived content could be displayed accordingly. My particular use case is creating links to access Cityworks items for field and office users. Field users would be looking at the map in Field Maps and use a URL to open it in the Cityworks Mobile app. Office users would view the map in Portal or a web app, and use a different URL to open in Cityworks Office.&lt;/P&gt;&lt;P&gt;Currently, I have to create two links in the same map (some potential for confusion) or maintain separate maps for field and office users (more work). Having a way to tell if the user is in Field Maps or a browser would allow me to tailor the experience to the user with less maintenance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-14 103014.png" style="width: 393px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58514i12BAB164B5E477D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-12-14 103014.png" alt="Screenshot 2022-12-14 103014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In practice, it would be great to be able to write it something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var urlFormat1 = "some:\\format\"
var urlFormat2 = "https:\\anotherFormat\"

\\get environment
var env = GetPlatform()
\\build URL accordingly
if(env = "Mobile"){
return urlFormat1 + $feature.InspectionID
}
else{
return urlFormat2 + $feature.InspectionID
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idi-p/1241103</guid>
      <dc:creator>JCGuarneri</dc:creator>
      <dc:date>2022-12-14T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Function to Detect Browser vs Mobile app</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idc-p/1269269#M3209</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/347312"&gt;@JCGuarneri&lt;/a&gt;&amp;nbsp;Could you acquire the username and then build the URL depending if the user is a field worker or office staff?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 17:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idc-p/1269269#M3209</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-03-19T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Function to Detect Browser vs Mobile app</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idc-p/1669219#M4393</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/347312"&gt;@JCGuarneri&lt;/a&gt;&amp;nbsp;I'd be interested to hear if you have found a solution for this yet as we are trying to implement something similar.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 21:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcade-function-to-detect-browser-vs-mobile-app/idc-p/1669219#M4393</guid>
      <dc:creator>MarkEastwood</dc:creator>
      <dc:date>2025-11-28T21:45:38Z</dc:date>
    </item>
  </channel>
</rss>

