<?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: Access app permissions using QML and ArcGIS App Studio in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850448#M2753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bishrant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way to enable that from the code, for security reason, the end-user need to agree to enable it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example for location service, let's say the location service is disabled earlier, and if we do the &lt;A href="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#capability-enumeration"&gt;checkCapability &lt;/A&gt;and know that the location service is disabled, then you can initialize the &lt;A href="http://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html"&gt;PositionSource&lt;/A&gt; component (again), then it would open the popup to ask the user whether to allow the Location Service or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 21:34:13 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2018-10-24T21:34:13Z</dc:date>
    <item>
      <title>Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850443#M2748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, is there a way to access app permissions model using QML and ArcGIS App Studio ? The scenario is to open permissions dialog based on whether they "Allowed" or "Didn't Allow" the app to access certain function lets say Location services.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at a couple of ESRI's template apps and they also just get stuck if the user didn't allow location access in the first place. I was wondering if its even possible at this time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bishrant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850443#M2748</guid>
      <dc:creator>AdhikariBishrant</dc:creator>
      <dc:date>2018-10-23T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850444#M2749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to check out this post for similar discussions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/214815"&gt;Forcing Android permissions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/80711"&gt;Shobana Suresh&lt;/A&gt;‌ had mentioned in there: "&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;EM&gt;In a future AppStudio release, we are planning to add support in AppFramework to query if a capability has been enabled and accepted by the user&lt;/EM&gt; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I'm not sure whether these have been added yet, but if/when they are, this is possibly what you are looking for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;-Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 21:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850444#M2749</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-10-23T21:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850445#M2750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bishrant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have added&amp;nbsp;a method to check the app's capabilities including the location service in our AppStudio AppFramework during the release of version 3.1, using "checkCapability" method described in this doc,&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#capability-enumeration" title="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#capability-enumeration"&gt;AppFramework QML Type | ArcGIS&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see how this is being used, you can take a look at the latest AppStudio Player, in the side menu for scanning QR code. And the source code of the AppStudio Player can be downloaded via AppStudio Desktop - Enterprise template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 22:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850445#M2750</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-10-23T22:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850446#M2751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erwin,&lt;/P&gt;&lt;P&gt;that was kind of what I was expecting. One more thing, is there a way to open up the native settings application from QML or AppFramework ? (i.e. when the permissions were denied earlier).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Bishrant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850446#M2751</guid>
      <dc:creator>AdhikariBishrant</dc:creator>
      <dc:date>2018-10-24T13:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850447#M2752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the pointer &lt;A href="https://community.esri.com/migrated-users/53832"&gt;Paul Haakma&lt;/A&gt;, I read your's and Sobana's coversation on that thread, then &lt;A href="https://community.esri.com/migrated-users/39013"&gt;Erwin Soekianto&lt;/A&gt;‌ highlighted the checkCapability method in new AppFramework. Although its not complete and can only check if the permissions exists (I cannot figure out if they have a way to open up native settings app), its a good starting point for me at this moment. But, the link that you shared definitely provided some ways of improving user experience if the users deny permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Bishrant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850447#M2752</guid>
      <dc:creator>AdhikariBishrant</dc:creator>
      <dc:date>2018-10-24T13:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access app permissions using QML and ArcGIS App Studio</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850448#M2753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bishrant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way to enable that from the code, for security reason, the end-user need to agree to enable it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example for location service, let's say the location service is disabled earlier, and if we do the &lt;A href="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#capability-enumeration"&gt;checkCapability &lt;/A&gt;and know that the location service is disabled, then you can initialize the &lt;A href="http://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html"&gt;PositionSource&lt;/A&gt; component (again), then it would open the popup to ask the user whether to allow the Location Service or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 21:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/access-app-permissions-using-qml-and-arcgis-app/m-p/850448#M2753</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-10-24T21:34:13Z</dc:date>
    </item>
  </channel>
</rss>

