<?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: .NET Maui - Private FeatureLayer not showing on esri map after being added in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1305802#M11967</link>
    <description>&lt;P&gt;If you follow the OAuth implementation pattern there is no need to include a token in the Url.&amp;nbsp; Including this may in be the issue.&lt;/P&gt;&lt;P&gt;When the app requests a secure service from the server AuthenticationManager will provide any required tokens.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 16:25:31 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2023-07-05T16:25:31Z</dc:date>
    <item>
      <title>.NET Maui - Private FeatureLayer not showing on esri map after being added</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1305724#M11966</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I am having troubles having my FeatureLayer show on my esri map after being added to the OperationalLayers of my map control. I am using the ArcGIS .NET SDK for .NET Maui, and OAuth 2.0 for Authentication and passing the token as a parameter for all private layers. Testing not working on iOS and Android.&lt;BR /&gt;&lt;BR /&gt;My current flow is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open Map Custom Layer Picker Toggles&lt;/LI&gt;&lt;LI&gt;Choose a Layer&lt;/LI&gt;&lt;LI&gt;Choosing a Layer prompts our app to open a web view, to which we load the authorization url + redirect uri (as mentioned&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/arcgis-identity/serverless-web-apps/" target="_self" rel="nofollow noopener noreferrer"&gt; here&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;Following a successful login, close the window after receiving and parsing out the auth token&lt;/LI&gt;&lt;LI&gt;Add the layer (in this case its a FeatureLayer) with the token in the Uri, to the map view's OperationalLayers&lt;/LI&gt;&lt;LI&gt;Zooming into all data areas of the FeatureLayer does not show any (polyline) data plotted on the map&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive checked numerous things but I am stuck; subscribing to the LoadStatusChanged event shows that the layer is successfully loading, and we are still receiving the layer data, so it does not seem to be an Auth issue. Also, we have an implementation on Xamarin and we work in a very similar way (only difference is loading the FeatureLayer with a [ArcGISTokenCredential w/ a token]) and it is showing on the map.&lt;/P&gt;&lt;P&gt;Am I doing something wrong that the FeatureLayer isn't working despite the layer being Loaded with no errors? Is there are a required or suggested alternative method for handling the token? I have seen other threads mentioning to pass the token as a Auth header, but those methods didn't seem to work. All help is appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 13:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1305724#M11966</guid>
      <dc:creator>cdirth</dc:creator>
      <dc:date>2023-07-05T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Maui - Private FeatureLayer not showing on esri map after being added</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1305802#M11967</link>
      <description>&lt;P&gt;If you follow the OAuth implementation pattern there is no need to include a token in the Url.&amp;nbsp; Including this may in be the issue.&lt;/P&gt;&lt;P&gt;When the app requests a secure service from the server AuthenticationManager will provide any required tokens.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 16:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1305802#M11967</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-07-05T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Maui - Private FeatureLayer not showing on esri map after being added</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1308894#M11990</link>
      <description>&lt;P&gt;Still having the same issue. I implemented the AuthenticationManager flow listed and it's still not working. Is there a special way to register the tokens, besides "AuthenticationManager.Current.AddCredential"? Additionally, is there a checklist to see if the feature layer data should be displaying on the map, or is it really so easy as:&lt;BR /&gt;1) Challenge and prompt login&lt;BR /&gt;2) Get credentials from prompt after successful login&lt;BR /&gt;3) Add credential to AuthenticationManager.Current via "AddCredentials"&lt;BR /&gt;4) Load FeatureLayer with service uri&lt;BR /&gt;5) Add to Operational Layers&lt;BR /&gt;&lt;BR /&gt;Note*: I have correctly gotten a "Loaded" state when attaching the "LoadStatusChanged" event. I am able to access the uri with the token in the address, so why is it still not showing on the map when I zoom in to said location?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 04:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-maui-private-featurelayer-not-showing-on-esri/m-p/1308894#M11990</guid>
      <dc:creator>RodBall</dc:creator>
      <dc:date>2023-07-18T04:54:32Z</dc:date>
    </item>
  </channel>
</rss>

