QR code in dev console DNS error

Starting from a freshly created app and POS UI extension I ran shopify app dev with zero errors. I then opened the preview link which opened the developer console. I click on the view mobile button and it gives me a QR code which I scan with my android device. I get this error:

  • I have the Shopify POS app installed on my phone and I am logged into my dev store.
  • The POS app is installed in my Shopify dev store
  • I have enabled POS access within the app
[pos]
embedded = true
  • I have Embed app in Shopify POS set to true in my app configuration.

I’m not sure why I am getting this error. I can’t seem to find any instances of this error happening to anyone else.

1 Like

For future reference I found the answer.

Apparently Android phones have an issue with opening deep links, which are links that launch and open apps within Android.

You need to either enable it in your androidManifest.xml like so:

<intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.DEFAULT" />
        <!-- Accepts URIs that begin with "com.shopify.pos://pos-ui-extensions" -->
        <data android:scheme="com.shopify.pos"
            android:host="pos-ui-extensions"
            android:path="?url=">
    </intent-filter>

which I don’t really recommend.

Or download a Deep Link Launcher app from the Play store and paste the link into it.

Hi Bytework,

Great to hear you figured this out and thanks for coming back to post your solution :slight_smile: Let us know if you run into any other issues.