<?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: Where to provide Location Usage Descriptions for iOS? in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864090#M3083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With AppStudio version 2.0, background location is supported. To get this to work correctly (and get it approved in the app stores) follow the steps shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make sure you are using latest version of AppStudio desktop (v 2.0 and above)&lt;/P&gt;&lt;P&gt;2. Select you app in desktop and goto Settings -&amp;gt; Capabilites and make sure the "Background location" switch is turned on and click "Apply". This is a new option so do not miss this step.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360000" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/360000_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notes for the curious: Behind the scenes when you turn this switch on a new parameter "backgroundLocation" gets added in "capabilities" section of&amp;nbsp;&lt;/EM&gt;appinfo&lt;EM&gt;.&lt;/EM&gt;json&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360001" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/360001_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can optionally provide a description for these capabilities specifically&amp;nbsp;for&amp;nbsp;Apple devices and app stores&amp;nbsp;to let the end users know as to why you are requesting this capability such as background location. Open "appinfo.json" and add the following key-value pairs "locationAlwaysUsageDescription", "locationWhenInUseUsageDescription" as required under "usageDescriptionKeys" (see the screenshot below for correct usage and placement in the appinfo.json file). This is a file editing process for now and in the next version of AppStudio desktop (2.1), we will provide a nice user interface to add these more seamlessly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360020" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/360020_pastedImage_7.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notes for the curious: I said optional earlier since we do have a fallback of default strings if the capability is turned on and there are no overrides in the appinfo.json. Also adding all &lt;/EM&gt;strings&lt;EM&gt; to override within the "usageDescriptionKeys" in appinfo.json does not hurt since the cloud make will only pick the strings based on which capability has been turned on.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/migrated-users/15508"&gt;Nakul Manocha&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/157822"&gt;Tina Jin&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2017 13:53:00 GMT</pubDate>
    <dc:creator>SathyaPrasad</dc:creator>
    <dc:date>2017-07-04T13:53:00Z</dc:date>
    <item>
      <title>Where to provide Location Usage Descriptions for iOS?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864089#M3082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning! So our iOS app has just been rejected by Apple because, quote: "&lt;SPAN style="color: #5f5f5f; background-color: #ffffff; font-weight: 300;"&gt;app uses background location services but does not clarify the purpose of its use in the location modal alert as required in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://developer.apple.com/ios/human-interface-guidelines/ui-views/alerts/" style="color: #0088ff; background-color: #ffffff; border: 0px; text-decoration: none;"&gt;iOS Human Interface Guidelines&lt;/A&gt;". It states that to resolve this issue, we need to revise the NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription in the Info.plist, but where does one set these values in an AppStudio app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 07:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864089#M3082</guid>
      <dc:creator>KristofDewilde</dc:creator>
      <dc:date>2017-07-04T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where to provide Location Usage Descriptions for iOS?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864090#M3083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With AppStudio version 2.0, background location is supported. To get this to work correctly (and get it approved in the app stores) follow the steps shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make sure you are using latest version of AppStudio desktop (v 2.0 and above)&lt;/P&gt;&lt;P&gt;2. Select you app in desktop and goto Settings -&amp;gt; Capabilites and make sure the "Background location" switch is turned on and click "Apply". This is a new option so do not miss this step.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360000" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/360000_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notes for the curious: Behind the scenes when you turn this switch on a new parameter "backgroundLocation" gets added in "capabilities" section of&amp;nbsp;&lt;/EM&gt;appinfo&lt;EM&gt;.&lt;/EM&gt;json&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360001" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/360001_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can optionally provide a description for these capabilities specifically&amp;nbsp;for&amp;nbsp;Apple devices and app stores&amp;nbsp;to let the end users know as to why you are requesting this capability such as background location. Open "appinfo.json" and add the following key-value pairs "locationAlwaysUsageDescription", "locationWhenInUseUsageDescription" as required under "usageDescriptionKeys" (see the screenshot below for correct usage and placement in the appinfo.json file). This is a file editing process for now and in the next version of AppStudio desktop (2.1), we will provide a nice user interface to add these more seamlessly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="360020" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/360020_pastedImage_7.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notes for the curious: I said optional earlier since we do have a fallback of default strings if the capability is turned on and there are no overrides in the appinfo.json. Also adding all &lt;/EM&gt;strings&lt;EM&gt; to override within the "usageDescriptionKeys" in appinfo.json does not hurt since the cloud make will only pick the strings based on which capability has been turned on.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/migrated-users/15508"&gt;Nakul Manocha&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/157822"&gt;Tina Jin&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864090#M3083</guid>
      <dc:creator>SathyaPrasad</dc:creator>
      <dc:date>2017-07-04T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Where to provide Location Usage Descriptions for iOS?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864091#M3084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for this very complete answer, Sathya!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/where-to-provide-location-usage-descriptions-for/m-p/864091#M3084</guid>
      <dc:creator>KristofDewilde</dc:creator>
      <dc:date>2017-07-04T13:59:08Z</dc:date>
    </item>
  </channel>
</rss>

