<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dev</title>
    <description>The latest articles on DEV Community by Dev (@dev_78).</description>
    <link>https://dev.to/dev_78</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3088685%2Fb984bd57-e16a-4070-a650-eadadfa73bbe.png</url>
      <title>DEV Community: Dev</title>
      <link>https://dev.to/dev_78</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev_78"/>
    <language>en</language>
    <item>
      <title>StoreKit External Purchase – Regional Restriction Not Working + canPresent() Always Returns False</title>
      <dc:creator>Dev</dc:creator>
      <pubDate>Tue, 09 Sep 2025 10:13:09 +0000</pubDate>
      <link>https://dev.to/dev_78/storekit-external-purchase-regional-restriction-not-working-canpresent-always-returns-false-28pm</link>
      <guid>https://dev.to/dev_78/storekit-external-purchase-regional-restriction-not-working-canpresent-always-returns-false-28pm</guid>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;We’re working on integrating StoreKit External Purchase into our iOS app and are running into a couple of issues that we could use some help with.&lt;/p&gt;

&lt;p&gt;🔒 Goal&lt;/p&gt;

&lt;p&gt;We’ve been approved under the Alternative Terms Addendum for Apps Distributed in the EU and have StoreKit External Purchase enabled.&lt;/p&gt;

&lt;p&gt;✅ Our goal: Make this feature available only in the EU, not in the US.&lt;/p&gt;

&lt;p&gt;However, we’re seeing signs that it might be active outside the EU (like in the US), which we don’t want.&lt;/p&gt;

&lt;p&gt;⚠️ Technical Issue – canPresent() Always Returns false&lt;/p&gt;

&lt;p&gt;While testing, the canPresent() API always returns false, even though our setup seems correct.&lt;/p&gt;

&lt;p&gt;✅ Setup So Far&lt;/p&gt;

&lt;p&gt;Entitlement added:&lt;br&gt;
com.apple.developer.storekit.external-purchase&lt;/p&gt;

&lt;p&gt;Info.plist entry added:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;key&amp;gt;SKExternalPurchase&amp;lt;/key&amp;gt;
&amp;lt;array&amp;gt;
    &amp;lt;string&amp;gt;dk&amp;lt;/string&amp;gt;
&amp;lt;/array&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Real iOS device (iPad) used for testing&lt;/p&gt;

&lt;p&gt;App installed via Xcode&lt;/p&gt;

&lt;p&gt;Device signed in with a Sandbox Apple ID set to Denmark&lt;/p&gt;

&lt;p&gt;canMakePayments() returns true&lt;/p&gt;

&lt;p&gt;❌ What’s Going Wrong&lt;/p&gt;

&lt;p&gt;canPresent() keeps returning false&lt;/p&gt;

&lt;p&gt;App still reports storefront as "USA", even though sandbox ID is set to Denmark&lt;/p&gt;

&lt;p&gt;We've already tried:&lt;/p&gt;

&lt;p&gt;Cleaning the project&lt;/p&gt;

&lt;p&gt;Reinstalling the app&lt;/p&gt;

&lt;p&gt;Verifying provisioning profiles&lt;/p&gt;

&lt;p&gt;Restarting the device&lt;/p&gt;

&lt;p&gt;❓ Questions&lt;/p&gt;

&lt;p&gt;Are there known delays or caveats with sandbox account region propagation?&lt;/p&gt;

&lt;p&gt;Are there specific device or App Store settings that might override the expected region?&lt;/p&gt;

&lt;p&gt;Would really appreciate any insight or if anyone else has seen this behavior. Thanks in advance!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
