<?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: Check Capabilities in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766443#M342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shobana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re Location vs background: yes - a user can choose to allow an app permission to use location "only when using the app" or "Always allow". It would be useful to be able to test what permission has been granted, as certain workflows might work, technically speaking, but produce unexpected or un-intended results if it stops working in the background. If the app could detect whether background logging permission has actually been granted by the user, then perhaps a popup could warn the user if they attempt to begin a workflow that would typically have the app become inactive (e.g. get put in their pocket while they walk around) and you know that it would only work if they had granted the correct permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re checking if gps and Bluetooth are enabled, I guess my thinking here is that it would be a totally separate check to the existing checkCapability method. As I understand it, the current method is testing for permission granted, whereas I'm also wanting to test for capability available, which is a different thing altogether. The user may have granted permission for gps location, but if they have their GPS switched off then it won't work. For Bluetooth, since there is no permission granting involved, I guess it would just be a test to see if Bluetooth is enabled. There might already be native QML ways to test for this - I'm just not sure what the best way would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Dec 2018 09:00:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-12-08T09:00:16Z</dc:date>
    <item>
      <title>Check Capabilities</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766441#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;The documentation on the new check capabilities AppFramework function is a little light on details at the moment. A few questions:&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Which capabilities can be checked for? The intellisense in Qt Creator suggests maybe Appframework.Camera, .Location, .Microphone and .Storage??&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Is it possible to test if Bluetooth permission given?&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Can we test for Location vs background location independently?&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Related to those but slightly different, what is the best way to test if gps and Bluetooth are actually enabled on the device? E.g. permission might be granted for location, but the user has the gps actually switched off at the time. What would be the most reliable way to test if it is on, so we could prompt the user to turn it on.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 01:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766441#M340</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-12-06T01:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check Capabilities</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766442#M341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Which capabilities can be checked for? The intellisense in Qt Creator suggests maybe Appframework.Camera, .Location, .Microphone and .Storage??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right. These are the 4 capabilities currently supported by the checkCapability() method&lt;/P&gt;&lt;P&gt;Reference : &lt;A class="link-titled" href="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#enumerations" title="https://doc.arcgis.com/en/appstudio/api/reference/framework/qml-arcgis-appframework-appframework/#enumerations"&gt;AppFramework QML Type | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&amp;gt;Is it possible to test if Bluetooth permission given?&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Bluetooth is not covered in checkCapability() method as Bluetooth does not require permission to be granted by users at runtime.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Only requirement for Bluetooth is to enable the capability in appinfo.json. When building an app with Bluetooth capability ON, AppStudio adds the android.permission.BLUETOOTH entry to the app's Android Manifest&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;A class="link-titled" href="https://developer.android.com/guide/topics/permissions/overview#permission-groups" title="https://developer.android.com/guide/topics/permissions/overview#permission-groups"&gt;Permissions overview &amp;nbsp;|&amp;nbsp; Android Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&amp;gt;Can we test for Location vs background location independently?&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;This is currently not supported. Can you explain a little more on the use case here? Do you want to know if the user has selected "Only when using the app"&amp;nbsp; as opposed to "Always Allow" option in the Location permission dialog that appears on iOS?&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,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; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&amp;gt;what is the best way to test if gps and Bluetooth are actually enabled on the device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently there is no API in AppFramework to check if gps and Bluetooth are enabled on the device. Is the expectation that checkCapability() method should return false in both the below cases?&lt;/P&gt;&lt;P&gt;- when the user has denied the permission request&lt;/P&gt;&lt;P&gt;- gps / bluetooth is disabled on the device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 04:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766442#M341</guid>
      <dc:creator>ShobanaSuresh</dc:creator>
      <dc:date>2018-12-07T04:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check Capabilities</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766443#M342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shobana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re Location vs background: yes - a user can choose to allow an app permission to use location "only when using the app" or "Always allow". It would be useful to be able to test what permission has been granted, as certain workflows might work, technically speaking, but produce unexpected or un-intended results if it stops working in the background. If the app could detect whether background logging permission has actually been granted by the user, then perhaps a popup could warn the user if they attempt to begin a workflow that would typically have the app become inactive (e.g. get put in their pocket while they walk around) and you know that it would only work if they had granted the correct permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re checking if gps and Bluetooth are enabled, I guess my thinking here is that it would be a totally separate check to the existing checkCapability method. As I understand it, the current method is testing for permission granted, whereas I'm also wanting to test for capability available, which is a different thing altogether. The user may have granted permission for gps location, but if they have their GPS switched off then it won't work. For Bluetooth, since there is no permission granting involved, I guess it would just be a test to see if Bluetooth is enabled. There might already be native QML ways to test for this - I'm just not sure what the best way would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2018 09:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766443#M342</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-12-08T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check Capabilities</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766444#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing additional details on the requirements. I'll create internal AppStudio enhancement issues for adding a new API for checking if GPS / Bluetooth system settings are enabled and also for improving checkCapability() to return&amp;nbsp; location vs backgroundLocation status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 06:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/check-capabilities/m-p/766444#M343</guid>
      <dc:creator>ShobanaSuresh</dc:creator>
      <dc:date>2018-12-10T06:24:45Z</dc:date>
    </item>
  </channel>
</rss>

