<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adarsh Vijayan P on Medium]]></title>
        <description><![CDATA[Stories by Adarsh Vijayan P on Medium]]></description>
        <link>https://medium.com/@adarshvijayanp?source=rss-1e97d753b44b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KSo0gnQuVplgz7XM.jpg</url>
            <title>Stories by Adarsh Vijayan P on Medium</title>
            <link>https://medium.com/@adarshvijayanp?source=rss-1e97d753b44b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:50:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adarshvijayanp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Securing Flutter Apps]]></title>
            <link>https://medium.com/@adarshvijayanp/securing-flutter-apps-37e4bffc718b?source=rss-1e97d753b44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e4bffc718b</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[security-in-flutter]]></category>
            <dc:creator><![CDATA[Adarsh Vijayan P]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 09:53:44 GMT</pubDate>
            <atom:updated>2025-06-13T09:53:44.347Z</atom:updated>
            <content:encoded><![CDATA[<p>This post was created entirely with the help of this <a href="https://www.youtube.com/watch?v=DYwn4KciL1U">Youtube</a> video</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bfurXsRzrFD9LzIxarK4cQ.jpeg" /></figure><h4>1. Improper platform usage</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*20VvXmImXMmHPoAl9pP-Uw.png" /></figure><p><a href="https://pub.dev/packages/permission_handler">permission_handler</a></p><p><a href="https://pub.dev/packages/permission_handler">https://pub.dev/packages/permission_handler</a></p><h4>2. Insecure data storage</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zGdONK79UfXKFEbfIkA28A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*xFIaVak5F_OO6C6lwAH8xA.png" /></figure><ul><li><a href="https://pub.dev/packages/flutter_secure_storage">flutter_secure_storage. </a>— secured shared pref</li><li><a href="https://pub.dev/packages/hive">hive</a>- secured no sql db</li><li><a href="https://pub.dev/packages/secure_application">Secure_application</a> — handle background snapshots</li></ul><p>[Secure app content visibility when user leave app. It will hide content in the app switcher and display a frost barrier above locked content when the user get backs]</p><h4>3. Insecure Communication</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*dqLwMDwKra3MC59be3lkEA.png" /></figure><ul><li><a href="https://pub.dev/packages/http_certificate_pinning">Http_certificate_pinning</a></li></ul><h4>4. Insecure Authentication</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*kxDujZRPRb2X0fu4WBQqaw.png" /></figure><ul><li><a href="https://pub.dev/packages/local_auth">local_auth</a>- [perform local, on-device authentication of the user.On supported devices, this includes authentication with biometrics such as fingerprint or facial recognition.]</li></ul><h4>5. Insufficient Cryptograph</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*zQ3P8mGSlRlj4kJoJTrLFA.png" /></figure><p>What is <a href="https://www.goanywhere.com/blog/what-is-gpg">GPG</a></p><p>password hashing? Please, visit <a href="https://github.com/leocavalcante/password-dart">password</a>.</p><ul><li><a href="https://pub.dev/packages/encrypt">Encrypt</a> — A set of high-level APIs over PointyCastle for two-way cryptography.</li><li><a href="https://pub.dev/packages/crypto">crypto</a> — A set of cryptographic hashing functions for Dart.</li></ul><h4>6. Insecure Authorization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*MaWXZNpSAhRerdocdqaMFQ.png" /></figure><h4>7. Client Code Quality</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*BVVJfWTfu3EPPaKcei-MhA.png" /></figure><h4>8. Code Tempering</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*JFmtZHHwI-WgnQDPrksXXw.png" /></figure><ul><li><a href="https://pub.dev/packages/flutter_jailbreak_detection">flutter_jailbreak_detection</a></li></ul><h4>9. Reverse engineering</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*9a9zJFn9HN1HaYix-XggTQ.png" /></figure><ul><li><a href="https://docs.flutter.dev/deployment/obfuscate">Obfuscate</a> — flutter build apk — obfuscate — split-debug-info<strong>=</strong>/&lt;project-name&gt;/&lt;directory&gt;</li></ul><blockquote>flutter build apk — obfuscate — split-debug-info=/project/debuginfo</blockquote><ul><li>flutter automatically do <a href="https://docs.flutter.dev/resources/faq#run-android">Binary Build</a></li></ul><h4>10. Extraneous Functionality</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*9f2XCEvO1sbsU3PL-QIx6Q.png" /></figure><ul><li><a href="https://pub.dev/packages/freerasp">Freerasp</a> — <strong>freeRASP SDK is designed to combat</strong></li><li>Reverse engineering attempts</li><li>Re-publishing or tampering with the apps</li><li>Running application in a compromised OS environment</li><li>Malware, fraudsters, and cybercriminal activities</li></ul><p><strong>Key features are the detection and prevention of</strong></p><ul><li>Root/Jailbreak (e.g., unc0ver, check1rain)</li><li>Hooking framework (e.g., Frida, Shadow)</li><li>Untrusted installation method</li><li>App/Device (un)binding</li></ul><p>Freerasp implementation <a href="https://youtu.be/uBb5fa2c0EM">guide youtube</a></p><p><a href="https://stackoverflow.com/a/64543495/9427138">StackOverflow</a> — How to protect Flutter app from reverse engineering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*srty7B7JokVlmcyNq2RJmw.jpeg" /></figure><p><strong>👨‍💻 Written by:</strong><br><em>Adarsh Vijayan — Flutter Developer passionate about </em><strong><em>building secure app experiences.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e4bffc718b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Shopify Login Session Issue in Flutter WebView — and How It Got Fixed]]></title>
            <link>https://medium.com/@adarshvijayanp/%EF%B8%8F-shopify-login-session-issue-in-flutter-webview-and-how-it-got-fixed-c7a5e9ea7bf6?source=rss-1e97d753b44b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7a5e9ea7bf6</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[shopify-development]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[shopify-storefront]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Adarsh Vijayan P]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 09:00:41 GMT</pubDate>
            <atom:updated>2025-06-13T10:22:32.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>🛍️ Shopify Login Session Issue in Flutter WebView — and How It Got Fixed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6k6oHqzh0tBIckp2GZyGxw.jpeg" /></figure><p><strong>By Adarsh Vijayan</strong></p><p>As a Flutter developer working on e-commerce integrations, I recently encountered a subtle but critical issue while embedding Shopify’s web checkout inside a Flutter WebView. This post outlines the issue, how I dug into it, and how continuous engagement with Shopify’s support team led to an official fix.</p><h3>💡 The Use Case</h3><p>We were integrating Shopify into a Flutter-based mobile app using a WebView to open the Shopify-hosted checkout URL. Our setup included:</p><ul><li>A mobile frontend built in Flutter</li><li>Shopify for cart and checkout management</li><li>WebView (webview_flutter) used to load the Shopify checkout</li></ul><p>After user login, we use Shopify’s cartBuyerIdentityUpdate API to associate the logged-in customer with the cart.</p><p><strong>Expectation:</strong><br> Once the buyer identity is linked, Shopify should maintain the user session and let the user seamlessly complete the checkout in WebView.</p><h3>🐞 The Problem</h3><p>What we noticed:</p><ul><li><strong>First load:</strong> After login and identity update, the WebView displays the checkout as expected.</li><li><strong>Subsequent loads:</strong> Once the WebView is closed (e.g., navigating back to modify shipping), reopening it resets the session. The user is logged out, and checkout reverts to guest mode.</li></ul><p>This resulted in a frustrating experience, where the user would have to log in again — breaking the continuity we aimed to offer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*eW1OjCUEYWtkhCaZ0OiTdw.jpeg" /><figcaption>sample code of cartBuyerIdentityUpdate</figcaption></figure><h3>🔎 Deep Dive &amp; Troubleshooting</h3><p>As I dug into it, I confirmed:</p><ul><li>The cartBuyerIdentityUpdate mutation was being called correctly.</li><li>Customer session cookies were getting set in the WebView’s session storage.</li><li>However, upon navigating away or closing the WebView, the session data was lost — even though the app kept running.</li></ul><p><strong>Temporary workaround:</strong> We considered re-creating the cart and calling cartBuyerIdentityUpdate again, but this was a poor UX.</p><h3>📞 Working with Shopify Support</h3><p>We reached out to Shopify’s technical support and provided detailed logs, API payloads, and session behaviors. After multiple discussions and shared testing sessions, we confirmed that the issue wasn’t in our Flutter integration, but rather in how Shopify’s session cookie was being handled in embedded mobile browsers (like WebView).</p><p>The Shopify team acknowledged it as a <strong>session management bug</strong>.</p><h3>✅ The Fix: Shopify Releases a Patch</h3><p>A few weeks later, Shopify released a backend update addressing session continuity for authenticated users via WebView. This fix ensures:</p><ul><li>Session cookies now persist correctly across WebView reopenings.</li><li>If the buyer identity is set once via cartBuyerIdentityUpdate, it is retained even if the WebView is closed and reopened.</li><li>The user remains logged in, allowing for a seamless checkout flow.</li></ul><p>This update resolved our issue without requiring any cart recreation or token injection hacks.</p><h3>🧠 Key Learnings</h3><ul><li>WebView session management is tricky, especially when relying on third-party cookies.</li><li>Shopify’s session persistence was previously not consistent in mobile embedded browsers.</li><li>Collaborative debugging and clear communication with platform support teams can lead to permanent, global fixes.</li></ul><h3>🚀 Final Thoughts</h3><p>Thanks to the collaboration between our team and Shopify, this issue has now been resolved not just for our app, but for all developers using Shopify in a mobile WebView environment.</p><p>If you’re integrating Shopify inside Flutter, make sure your Shopify store is updated to benefit from this fix. You should also consider clearing app WebView cookies manually in older versions, just to be safe.</p><p><strong>👨‍💻 Written by:</strong><br> <em>Adarsh Vijayan — Flutter Developer passionate about crafting smooth e-commerce experiences.<br>Check our company blog post </em><a href="https://webcastletech.com/blog/shopify-login-continuity-in-flutter-webview/"><strong><em>here</em></strong></a></p><p>Let me know if you want to include <strong>code snippets</strong>, such as how you used webview_flutter, how you called the cartBuyerIdentityUpdate mutation, or handled navigation and session management!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7a5e9ea7bf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>