<?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 Portal logout Method in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/portal-logout-method/m-p/671141#M4682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing this issue in ArcGIS runtime latest Android SDK . Given below the issue details.&lt;/P&gt;&lt;P&gt;While user enters into the mapping part we load the map with portal content asynchronously then calling addoneloading listener. Now I have&amp;nbsp;come across given below scenario to logout the portal . Once the user press logout button or closes the application it should logout from logged in portal credentials. I could not find any direct method (portal.logout) in Android sdk libraries. But the similar function is available in iOS sdk.&amp;nbsp; I request experts here to advice on this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I did not receive any reply , I am including more details .Please find below.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to clear the portal session and refresh when user closes the application. So that&amp;nbsp; logout implementation would be implemented indirectly. I am trying given below pseudo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;portal.setCredential -&amp;gt; null user name and null password&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;portal.loadAsync&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;implement addCredentialChangedListener......&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;implement portal.adddoneloadinglistener .....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;But getting given below error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;"Cannot change portal credential after portal is loaded"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please advise / help me on this issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2018 17:31:19 GMT</pubDate>
    <dc:creator>ShanMGIS</dc:creator>
    <dc:date>2018-12-11T17:31:19Z</dc:date>
    <item>
      <title>Portal logout Method</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/portal-logout-method/m-p/671141#M4682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing this issue in ArcGIS runtime latest Android SDK . Given below the issue details.&lt;/P&gt;&lt;P&gt;While user enters into the mapping part we load the map with portal content asynchronously then calling addoneloading listener. Now I have&amp;nbsp;come across given below scenario to logout the portal . Once the user press logout button or closes the application it should logout from logged in portal credentials. I could not find any direct method (portal.logout) in Android sdk libraries. But the similar function is available in iOS sdk.&amp;nbsp; I request experts here to advice on this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I did not receive any reply , I am including more details .Please find below.....&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to clear the portal session and refresh when user closes the application. So that&amp;nbsp; logout implementation would be implemented indirectly. I am trying given below pseudo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;portal.setCredential -&amp;gt; null user name and null password&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;portal.loadAsync&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;implement addCredentialChangedListener......&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a;"&gt;&lt;STRONG&gt;implement portal.adddoneloadinglistener .....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;But getting given below error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;"Cannot change portal credential after portal is loaded"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please advise / help me on this issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 17:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/portal-logout-method/m-p/671141#M4682</guid>
      <dc:creator>ShanMGIS</dc:creator>
      <dc:date>2018-12-11T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Portal logout Method</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/portal-logout-method/m-p/1097953#M5612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same problem with javascript api, see my post: &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-logout-from-portal/m-p/1097945#M74661" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/how-to-logout-from-portal/m-p/1097945#M74661&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you resolve?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 09:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/portal-logout-method/m-p/1097953#M5612</guid>
      <dc:creator>Arpa_PiemonteGeoportal_Team</dc:creator>
      <dc:date>2021-09-14T09:36:36Z</dc:date>
    </item>
  </channel>
</rss>

