<?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>topic Re: How to load stream layer on android mobile? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-stream-layer-on-android-mobile/m-p/583979#M22520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Furthermore, on&amp;nbsp;streamLayer "connection-error" event, the error message:&lt;/P&gt;&lt;P&gt;Error: Failed to construct 'WebSocket': Refused to connect to 'ws://leo:6180/arcgis/ws/services/GeoEvent/GPSVehicles/StreamServer/subscribe?outSR=102100' because it violates the document's &lt;STRONG&gt;Content Security Policy&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Solution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;comment&lt;/STRONG&gt;&amp;nbsp;&amp;lt;meta http-equiv="Content-Security-Policy"&amp;gt; in html.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 01:04:31 GMT</pubDate>
    <dc:creator>LeoDeng</dc:creator>
    <dc:date>2017-02-17T01:04:31Z</dc:date>
    <item>
      <title>How to load stream layer on android mobile?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-stream-layer-on-android-mobile/m-p/583978#M22519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've publish the stream service using arcgis geoevent server.&lt;/P&gt;&lt;P&gt;And I've get the stream layer result from arcgis server rest url &amp;nbsp;(&lt;A class="link-titled" href="http://192.168.1.107:6080/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer" title="http://192.168.1.107:6080/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer"&gt;http://192.168.1.107:6080/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy the html and javascript from web (REST URL &amp;gt; view in Javascript &amp;gt; view source ) to mobile using cordova, the connect becomes error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A web socket connection to the stream service running at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmyserver%3Aport%2Farcgis%2Frest%2Fservices%2FGeoEvent%2FGPSVehicles%2FStreamServer" rel="nofollow" target="_blank"&gt;http://myserver:port/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer&lt;/A&gt;&lt;SPAN&gt; could not be established.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to develop a map running on mobile with stream layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.4.1&lt;/P&gt;&lt;P&gt;ArcGIS GeoEvent 10.4.1&lt;/P&gt;&lt;P&gt;ArcGIS API for JavaScript 3.19 (compact)&lt;/P&gt;&lt;P&gt;Visual Studio 2015 (Tools for Apache Cordova)&lt;/P&gt;&lt;P&gt;Android API (no specify)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 10:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-stream-layer-on-android-mobile/m-p/583978#M22519</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2017-02-16T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to load stream layer on android mobile?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-stream-layer-on-android-mobile/m-p/583979#M22520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Furthermore, on&amp;nbsp;streamLayer "connection-error" event, the error message:&lt;/P&gt;&lt;P&gt;Error: Failed to construct 'WebSocket': Refused to connect to 'ws://leo:6180/arcgis/ws/services/GeoEvent/GPSVehicles/StreamServer/subscribe?outSR=102100' because it violates the document's &lt;STRONG&gt;Content Security Policy&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Solution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;comment&lt;/STRONG&gt;&amp;nbsp;&amp;lt;meta http-equiv="Content-Security-Policy"&amp;gt; in html.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-load-stream-layer-on-android-mobile/m-p/583979#M22520</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2017-02-17T01:04:31Z</dc:date>
    </item>
  </channel>
</rss>

