<?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: App doesn't signal onOnlineStateChanged in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779180#M714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable Network capability in Settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Siddesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 00:01:17 GMT</pubDate>
    <dc:creator>SiddeshPillai1</dc:creator>
    <dc:date>2017-06-28T00:01:17Z</dc:date>
    <item>
      <title>App doesn't signal onOnlineStateChanged</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779179#M713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app is set up to give a notification when the network connection status changes. This works in Player but after Making and deploying it to a device it does not generate the notifications when I switch in and out of airplane mode. The issue, I believe, is not with the LocalNotification itself, but with the &lt;SPAN style="color: #800000;"&gt;onOnlineStateChanged&amp;nbsp;&lt;/SPAN&gt;signal. I verified that notifications are enabled for this app in device settings, and indeed other notifications work correctly in my deployed app, just not the one in this signal handler; Here's my implementation:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;LocalNotification&lt;/SPAN&gt;&lt;/PRE&gt;{&lt;SPAN style="color: #c0c0c0;"&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;notification&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;}&lt;/PRE&gt;&lt;SPAN style="color: #800080;"&gt;&lt;BR /&gt;Connections&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #800000;"&gt;target&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;AppFramework&lt;/SPAN&gt;.network&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;onOnlineStateChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;notification&lt;/SPAN&gt;.schedule(&lt;SPAN style="color: #008000;"&gt;"Connection&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;status:"&lt;/SPAN&gt;,online?&lt;SPAN style="color: #008000;"&gt;"Connected"&lt;/SPAN&gt;:&lt;SPAN style="color: #008000;"&gt;"Offline&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"&lt;/SPAN&gt;,0) &lt;SPAN style="color: #008000;"&gt;//This notification appears in Player but not in deployed app.&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;P&gt;Is there something else I should do to enable this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779179#M713</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2021-12-12T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: App doesn't signal onOnlineStateChanged</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779180#M714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable Network capability in Settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Siddesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 00:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779180#M714</guid>
      <dc:creator>SiddeshPillai1</dc:creator>
      <dc:date>2017-06-28T00:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: App doesn't signal onOnlineStateChanged</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779181#M715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was the first thing I checked and it was enabled. I disabled/reenabled it but no change in behavior. I'll try it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kenneth R. Gorton | GIS Solution Engineer | Esri&lt;/P&gt;&lt;P&gt;Esri | 8615 Westwood Center Drive | Vienna, VA 22182 | USA&amp;lt;x-apple-data-detectors://0/1&amp;gt;&lt;/P&gt;&lt;P&gt;Lat,Lon: 38.927838, -77.247625&lt;/P&gt;&lt;P&gt;what3words: cloak.club.office&lt;/P&gt;&lt;P&gt;T &lt;EM&gt;1 703-506-9515, ext. 8146&amp;lt;tel:&lt;/EM&gt;1%20703-506-9515;8146&amp;gt; | M &lt;EM&gt;1 571-294-0342&amp;lt;tel:&lt;/EM&gt;1%20571-294-0342&amp;gt;&lt;/P&gt;&lt;P&gt;kgorton@esri.com&amp;lt;mailto:kgorton@esri.com&amp;gt; | esri.com&amp;lt;http://esri.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Em 27 de jun de 2017, ?s 20:01, Siddesh Pillai &amp;lt;geonet@esri.com&amp;lt;mailto:geonet@esri.com&amp;gt;&amp;gt; escreveu:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: App doesn't signal onOnlineStateChanged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Siddesh Pillai&amp;lt;https://community.esri.com/people/SPillai-esristaff?et=watches.email.thread&amp;gt; in AppStudio for ArcGIS - View the full discussion&amp;lt;https://community.esri.com/message/696961-re-app-doesnt-signal-ononlinestatechanged?commentID=696961&amp;amp;et=watches.email.thread#comment-696961&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 09:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779181#M715</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2017-06-28T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: App doesn't signal onOnlineStateChanged</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779182#M716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after spending some time researching this it seems iOS does not&amp;nbsp;signal&amp;nbsp;&lt;SPAN style="color: #800000; border: 0px; font-weight: inherit;"&gt;onOnlineStateChanged&lt;/SPAN&gt;. I got around this by setting up a timer that regularly checks &lt;SPAN style="color: #800080; border: 0px; font-weight: inherit;"&gt;AppFramework&lt;/SPAN&gt;.network.isOnline and calls my desired methods appropriately. In my case I have the app disable the map when network goes away and reenable it when the network comes back. This works just fine in AppStudio Player on the dev machine and on the device, but when I call Cloud Make and then deploy the app to a device this no longer works&amp;nbsp;when I switch to airplane mode on the&amp;nbsp;device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something different in this regard between AppStudio Player vs a deployed app?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/app-doesn-t-signal-ononlinestatechanged/m-p/779182#M716</guid>
      <dc:creator>KenGorton</dc:creator>
      <dc:date>2017-10-10T15:19:04Z</dc:date>
    </item>
  </channel>
</rss>

