<?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: Awais Murtaza</title>
    <description>The latest articles on DEV Community by Awais Murtaza (@roamingesim).</description>
    <link>https://dev.to/roamingesim</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4067467%2Fe7714eac-640b-4cd3-8221-84ebe83f267b.jpeg</url>
      <title>DEV Community: Awais Murtaza</title>
      <link>https://dev.to/roamingesim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roamingesim"/>
    <language>en</language>
    <item>
      <title>How We Built Zero-Friction eSIM QR &amp; One-Tap Universal Link Installation</title>
      <dc:creator>Awais Murtaza</dc:creator>
      <pubDate>Sun, 29 Nov 2026 11:08:22 +0000</pubDate>
      <link>https://dev.to/roamingesim/how-we-built-zero-friction-esim-qr-one-tap-universal-link-installation-1hl</link>
      <guid>https://dev.to/roamingesim/how-we-built-zero-friction-esim-qr-one-tap-universal-link-installation-1hl</guid>
      <description>&lt;p&gt;When travelers purchase a prepaid data eSIM right before boarding a flight, scanning a QR code on the same phone they are using to buy the plan is a notorious UX bottleneck. You can't easily point a phone's camera at its own screen.&lt;/p&gt;

&lt;p&gt;While building the web provisioning flow for &lt;a href="https://getopensim.com" rel="noopener noreferrer"&gt;OpenSim&lt;/a&gt;, we had to solve two engineering problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generating reliable, offline-ready GSMA-compliant eSIM QR codes on the fly.&lt;/li&gt;
&lt;li&gt;Supporting &lt;strong&gt;one-tap direct installation&lt;/strong&gt; on iOS (17.4+) and modern Android devices without requiring a second screen or manual SM-DP+ copy-pasting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is how the architecture works under the hood.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Understanding the GSMA LPA Activation String
&lt;/h3&gt;

&lt;p&gt;Every consumer eSIM profile boils down to a standardized string defined by the GSMA RSP (Remote SIM Provisioning) specification. It follows the &lt;code&gt;LPA:&lt;/code&gt; URI scheme:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LPA:1$&amp;lt;SM-DP+_ADDRESS&amp;gt;$&amp;lt;ACTIVATION_CODE&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;1&lt;/code&gt;&lt;/strong&gt;: Format version identifier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;&amp;lt;SM-DP+_ADDRESS&amp;gt;&lt;/code&gt;&lt;/strong&gt;: The FQDN of the Subscription Manager Data Preparation server (e.g., &lt;code&gt;rsp.truphone.com&lt;/code&gt; or &lt;code&gt;smdp.io&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;&amp;lt;ACTIVATION_CODE&amp;gt;&lt;/code&gt;&lt;/strong&gt;: The unique matching ID generated when our backend reserves an ICCID from the upstream carrier API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If an optional confirmation code is required by the carrier profile, a fourth segment (&lt;code&gt;$&amp;lt;CONFIRMATION_CODE&amp;gt;&lt;/code&gt;) is appended, though most modern travel eSIM profiles omit this to avoid user drop-off.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Generating Resilient QR Codes Client-Side
&lt;/h3&gt;

&lt;p&gt;Instead of generating PNGs on our backend and dealing with S3/CDN caching for sensitive, single-use activation tokens, we render the QR code directly in the browser from the provisioned &lt;code&gt;lpaString&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two details matter in production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Error Correction Level &lt;code&gt;M&lt;/code&gt; or `Q&lt;/strong&gt;&lt;code&gt;: Travelers frequently scan QR codes off cracked laptop screens or dimmed airport displays. Using Level &lt;/code&gt;M` (15% recovery) keeps the QR matrix dense enough to scan quickly while tolerating glare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quiet Zone Padding&lt;/strong&gt;: Mobile OS camera parsers fail silently if a dark-mode UI bleeds into the QR border. Always enforce a hard &lt;code&gt;#FFFFFF&lt;/code&gt; background with at least a 4-module margin.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;QRCode&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'qrcode'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;renderEsimQr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lpaString&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;canvasElement&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;lpaString&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'LPA:1$'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Invalid GSMA LPA activation string'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;QRCode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toCanvas&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;canvasElement&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lpaString&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;260&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;errorCorrectionLevel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'M'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'#0f172a'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;light&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'#ffffff'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. One-Tap Direct Install via Apple Universal Links (iOS 17.4+)
&lt;/h3&gt;

&lt;p&gt;Starting in iOS 17.4, Apple introduced a native Universal Link endpoint that launches the system &lt;strong&gt;Cellular Plan Setup&lt;/strong&gt; sheet directly from Safari—no QR scan or manual entry needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=LPA:1$smdp.example.com$MATCHING-ID

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because &lt;code&gt;LPA:&lt;/code&gt; strings contain &lt;code&gt;$&lt;/code&gt; delimiters, passing the &lt;code&gt;carddata&lt;/code&gt; parameter safely requires strict URI component encoding, plus a clean fallback for desktop browsers or older OS versions where the Universal Link simply redirects to an Apple support page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;buildDirectInstallUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lpaString&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;userAgent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isIOS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;iPad&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;iPhone&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;iPod&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;userAgent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;encodedLpa&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;encodeURIComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lpaString&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;isIOS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sb"&gt;`https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=${encodedLpa}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;// Fallback for manual copy / QR display&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the UI, we parse the &lt;code&gt;lpaString&lt;/code&gt; into its two human-readable parts (&lt;code&gt;smDpAddress&lt;/code&gt; and &lt;code&gt;activationCode&lt;/code&gt;) behind a collapsible &lt;strong&gt;"Manual Setup"&lt;/strong&gt; accordion so users on older Android builds can still copy both fields with a single click.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Handling Provisioning States &amp;amp; Idempotency
&lt;/h3&gt;

&lt;p&gt;Upstream telco APIs can take anywhere from 800ms to 6 seconds to allocate an ICCID and return the SM-DP+ matching ID. To prevent duplicate eSIM allocations when a user refreshes the page on spotty airport Wi-Fi:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Idempotency Keys&lt;/strong&gt;: Every order fulfillment request uses the order UUID as an idempotency key so retries return the already-allocated &lt;code&gt;ICCID&lt;/code&gt; and &lt;code&gt;LPA&lt;/code&gt; string rather than minting a second profile.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Machine&lt;/strong&gt;: Our fulfillment table tracks &lt;code&gt;PENDING&lt;/code&gt; -&amp;gt; &lt;code&gt;PROVISIONED&lt;/code&gt; -&amp;gt; &lt;code&gt;INSTALLED&lt;/code&gt; (updated via carrier SM-DP+ callback webhooks when the profile is downloaded onto the device).&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Key Takeaways
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Keep &lt;code&gt;LPA:1$&lt;/code&gt; strings client-rendered on authenticated order pages rather than storing static QR image URLs.&lt;/li&gt;
&lt;li&gt;Always provide &lt;strong&gt;three paths&lt;/strong&gt; on the activation screen: One-Tap Universal Link (iOS 17.4+), high-contrast QR code (laptop/second-device scan), and one-click copyable SM-DP+ + Activation Code fields.&lt;/li&gt;
&lt;li&gt;Make carrier allocation endpoints strictly idempotent—flaky travel connections guarantee double-clicks and page reloads.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>architecture</category>
    </item>
    <item>
      <title>How eSIM Technology Is Transforming International Travel</title>
      <dc:creator>Awais Murtaza</dc:creator>
      <pubDate>Fri, 07 Aug 2026 11:56:12 +0000</pubDate>
      <link>https://dev.to/roamingesim/how-esim-technology-is-transforming-international-travel-2951</link>
      <guid>https://dev.to/roamingesim/how-esim-technology-is-transforming-international-travel-2951</guid>
      <description>&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;International travel has become easier than ever, but staying connected abroad can still be challenging. From navigating unfamiliar cities to joining video meetings while traveling, internet access has become essential.&lt;/p&gt;

&lt;p&gt;This is where eSIM technology is changing the experience.&lt;/p&gt;

&lt;p&gt;Unlike traditional SIM cards, eSIM allows users to activate a mobile network digitally without inserting or replacing a physical SIM.&lt;/p&gt;

&lt;p&gt;What Is an eSIM?&lt;/p&gt;

&lt;p&gt;An eSIM (Embedded Subscriber Identity Module) is a programmable SIM integrated directly into compatible smartphones, tablets, and other connected devices.&lt;/p&gt;

&lt;p&gt;Instead of purchasing a physical SIM card at your destination, users can install a mobile plan digitally by scanning a QR code or activating it through an app.&lt;/p&gt;

&lt;p&gt;Today, eSIM is supported by devices including:&lt;/p&gt;

&lt;p&gt;iPhone XS and newer&lt;br&gt;
Samsung Galaxy S20 and newer&lt;br&gt;
Google Pixel 3 and newer&lt;br&gt;
Many modern flagship Android phones&lt;br&gt;
Why eSIM Matters&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Instant Activation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Travelers can activate their mobile data plan before arriving at their destination, eliminating the need to visit local carrier stores.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lower Roaming Costs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of paying expensive international roaming charges, users can purchase prepaid regional or country-specific data plans.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Multiple Profiles&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Most supported devices allow users to keep their primary SIM active while using an eSIM for mobile data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Better User Experience&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No tiny SIM ejector tool.&lt;/p&gt;

&lt;p&gt;No swapping SIM cards.&lt;/p&gt;

&lt;p&gt;No risk of losing your physical SIM.&lt;/p&gt;

&lt;p&gt;How eSIM Works&lt;/p&gt;

&lt;p&gt;A simplified activation process looks like this:&lt;/p&gt;

&lt;p&gt;Purchase an eSIM plan.&lt;br&gt;
Receive a QR code.&lt;br&gt;
Scan it using your phone.&lt;br&gt;
Install the carrier profile.&lt;br&gt;
Enable mobile data.&lt;br&gt;
Connect automatically upon arrival.&lt;br&gt;
Choosing an eSIM Provider&lt;/p&gt;

&lt;p&gt;Before purchasing an eSIM, compare:&lt;/p&gt;

&lt;p&gt;Coverage&lt;br&gt;
Data allowance&lt;br&gt;
Validity period&lt;br&gt;
Supported countries&lt;br&gt;
Activation process&lt;br&gt;
Customer support&lt;/p&gt;

&lt;p&gt;If you're looking for prepaid eSIM plans covering more than 200 destinations, OpenSim provides global travel data plans with simple digital activation:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://getopensim.com" rel="noopener noreferrer"&gt;https://getopensim.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;eSIM is quickly becoming the standard for international connectivity.&lt;/p&gt;

&lt;p&gt;As more carriers and smartphone manufacturers adopt the technology, travelers can expect easier activation, lower roaming costs, and a much smoother mobile experience.&lt;/p&gt;

&lt;p&gt;Whether you're a frequent traveler, remote worker, or digital nomad, understanding how eSIM works is becoming an increasingly valuable skill.&lt;/p&gt;

</description>
      <category>esim</category>
      <category>travel</category>
      <category>technology</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
