<?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: Widget location in a web mapping application do not work in MAUI in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586023#M13295</link>
    <description>&lt;P&gt;thanks&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;for your answer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Please, how con I do that ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 13:07:10 GMT</pubDate>
    <dc:creator>ArnaultDicka</dc:creator>
    <dc:date>2025-02-17T13:07:10Z</dc:date>
    <item>
      <title>Widget location in a web mapping application do not work in MAUI</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1585982#M13292</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I am loading a web mapping application, from my Arcgis enterprise shared for public with full privileges, in my MAUI application.&lt;/P&gt;&lt;P&gt;The location widget, located in the web mapping app. returns "&lt;STRONG&gt;Location dinied&lt;/STRONG&gt;". But when I open it in any web explorer, it works perfectly.&lt;/P&gt;&lt;P&gt;here is my code in MainPage.xaml:&lt;/P&gt;&lt;P&gt;&amp;lt;WebView x:Name="MyWebView"&lt;BR /&gt;Source="&lt;A href="https://xyzxyzxyzx/portal/apps/webappviewer/index.html?id=124f8e1fcd8141319cd51655b64d446e" target="_blank"&gt;https://xyzxyzxyzx/portal/apps/webappviewer/index.html?id=124f8e1fcd8141319cd51655b64d446e&lt;/A&gt;"&lt;BR /&gt;HorizontalOptions="FillAndExpand"&lt;BR /&gt;VerticalOptions="FillAndExpand" /&amp;gt;&lt;/P&gt;&lt;P&gt;In AndroidManifest.xml :&lt;/P&gt;&lt;P&gt;&amp;lt;manifest xmlns:android="&lt;A href="http://schemas.android.com/apk/res/android" target="_blank"&gt;http://schemas.android.com/apk/res/android&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"&amp;gt;&amp;lt;/application&amp;gt;&lt;BR /&gt;&amp;lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&amp;gt;&lt;BR /&gt;&amp;lt;uses-permission android:name="android.permission.INTERNET" /&amp;gt;&lt;BR /&gt;&amp;lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&amp;gt;&lt;BR /&gt;&amp;lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&amp;gt;&lt;BR /&gt;&amp;lt;/manifest&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please, Help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 08:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1585982#M13292</guid>
      <dc:creator>ArnaultDicka</dc:creator>
      <dc:date>2025-02-17T08:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Widget location in a web mapping application do not work in MAUI</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586014#M13294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You also need to explicitly include logic in your app to request this permission at run-time.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;                var status = await Permissions.CheckStatusAsync&amp;lt;Permissions.LocationWhenInUse&amp;gt;();

                // Request location permission if not granted.
                if (status != PermissionStatus.Granted)
                {
                    status = await Permissions.RequestAsync&amp;lt;Permissions.LocationWhenInUse&amp;gt;();
                }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Feb 2025 11:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586014#M13294</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-02-17T11:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Widget location in a web mapping application do not work in MAUI</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586023#M13295</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;for your answer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Please, how con I do that ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586023#M13295</guid>
      <dc:creator>ArnaultDicka</dc:creator>
      <dc:date>2025-02-17T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Widget location in a web mapping application do not work in MAUI</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586056#M13296</link>
      <description>&lt;P&gt;there is what i have in codes&lt;/P&gt;&lt;PRE&gt;       private async void CheckAndRequestLocationPermission()
        {
            var status = await Permissions.CheckStatusAsync&amp;lt;Permissions.LocationWhenInUse&amp;gt;();
            if (status != PermissionStatus.Granted)
            {
                status = await Permissions.RequestAsync&amp;lt;Permissions.LocationWhenInUse&amp;gt;();
            }

            if (status == PermissionStatus.Granted)
            {
                GetLocation();
            }
            else
            {
                await DisplayAlert("Permission Denied", "Unable to access location.", "OK");
            
        &amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586056#M13296</guid>
      <dc:creator>ArnaultDicka</dc:creator>
      <dc:date>2025-02-17T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Widget location in a web mapping application do not work in MAUI</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586465#M13298</link>
      <description>&lt;P&gt;Since you aren't using the Maps SDK for .NET MAUI but using the JavaScript SDK, it's not quite the right forum. However a quick google search reveals a few settings and things you need to do to enable location in embedded webviews:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/5329662/android-webview-geolocation" target="_blank"&gt;https://stackoverflow.com/questions/5329662/android-webview-geolocation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 16:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/widget-location-in-a-web-mapping-application-do/m-p/1586465#M13298</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2025-02-18T16:56:33Z</dc:date>
    </item>
  </channel>
</rss>

