<?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 Rudra on Medium]]></title>
        <description><![CDATA[Stories by Rudra on Medium]]></description>
        <link>https://medium.com/@rudrampanchal?source=rss-42e32f0c1bd6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*E2q5q2O3Q435UwrB</url>
            <title>Stories by Rudra on Medium</title>
            <link>https://medium.com/@rudrampanchal?source=rss-42e32f0c1bd6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:36:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rudrampanchal/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[Why Firebase Push Notifications Don’t Appear in the Foreground in React Native]]></title>
            <link>https://rudrampanchal.medium.com/why-firebase-push-notifications-dont-appear-in-the-foreground-in-react-native-fc022f199647?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc022f199647</guid>
            <category><![CDATA[fcm-push-notification]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 10:49:19 GMT</pubDate>
            <atom:updated>2026-10-23T10:49:19.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ac_HMN7pHYsjrZbbg_832Q.jpeg" /></figure><p>While implementing order-confirmation notifications in a React Native application, I noticed something confusing.</p><p>Push notifications appeared correctly when the app was in the background or completely closed. However, when I opened the app and kept it on the screen, nothing appeared.</p><p>At first, it seemed like Firebase Cloud Messaging (FCM) wasn’t working correctly.</p><p>But the issue wasn’t necessarily with Firebase. It was about how push notifications are handled when an application is running in the foreground.</p><p>Here’s what I learned and how I approached the problem.</p><h3>1. Why Notifications Behave Differently</h3><p>Firebase Cloud Messaging supports sending messages to mobile applications, but receiving a message and displaying a visible notification are two different things.</p><p>The behavior depends on the application state, message payload, and platform.</p><p>For notification messages, the operating system generally handles displaying notifications when the app is in the background. When the app is in the foreground, the message is delivered to the application, but a visible notification may not appear automatically.</p><p>This is why a notification can work perfectly in the background yet appear to be broken when the user is actively using the app.</p><h3>2. Understanding the Three App States</h3><p>When implementing push notifications, I think about three main scenarios.</p><p><strong>Foreground — The app is open</strong></p><p>The application is actively running on the screen. In React Native Firebase, the onMessage listener handles incoming foreground messages.</p><p>The app can decide how to respond, such as displaying an in-app alert or triggering a local notification.</p><p><strong>Background — The app is running but not visible</strong></p><p>The operating system typically handles the display of notification payloads. The exact behavior depends on the message type and platform configuration.</p><p><strong>Quit — The app is not running</strong></p><p>Notification messages can still be displayed by the operating system, provided the device, permissions, payload, and push configuration allow it.</p><p>Handling these states intentionally is essential for a reliable notification experience.</p><h3>3. Handling Foreground Messages</h3><p>In my implementation, the first step was to listen for messages received while the application was open.</p><p>With React Native Firebase, the listener looks like this:</p><pre>import messaging from &#39;@react-native-firebase/messaging&#39;;<br><br>const unsubscribe = messaging().onMessage(<br>  async remoteMessage =&gt; {<br>    const title = remoteMessage.notification?.title;<br>    const body = remoteMessage.notification?.body;<br>    const data = remoteMessage.data;<br><br>    console.log(&#39;Foreground notification:&#39;, {<br>      title,<br>      body,<br>      data,<br>    });<br><br>    // Display an in-app alert or local notification here.<br>  }<br>);</pre><p>The onMessage listener receives the foreground message. It does not, by itself, guarantee that a system notification banner will appear.</p><p>The listener should also be registered in an appropriate place, such as a notification service or application-level component, and cleaned up when no longer needed.</p><h3>4. Displaying a Local Notification</h3><p>Receiving the message is only the first part. If I want a visible notification while the app is open, I need to decide how it should be displayed.</p><p>One option is to use Notifee to display a local notification.</p><p>For example:</p><pre>import notifee, {AndroidImportance,<br>} from &#39;@notifee/react-native&#39;;<br>async function displayLocalNotification(<br>  title = &#39;New notification&#39;,<br>  body = &#39;&#39;<br>) {<br>  const channelId = await notifee.createChannel({<br>    id: &#39;orders&#39;,<br>    name: &#39;Order Notifications&#39;,<br>    importance: AndroidImportance.HIGH,<br>  });<br>  await notifee.displayNotification({<br>    title,<br>    body,<br>    android: {<br>      channelId,<br>      pressAction: {<br>        id: &#39;default&#39;,<br>      },<br>    },<br>  });<br>}</pre><p>The foreground message handler can call this function:</p><pre>const unsubscribe = messaging().onMessage(<br>  async remoteMessage =&gt; {<br>    const title = remoteMessage.notification?.title;<br>    const body = remoteMessage.notification?.body;<br>    await displayLocalNotification(title, body);<br>  }<br>);</pre><p>This is an illustrative Android-oriented example. In a production app, I would also configure the required iOS notification presentation behavior and permissions, handle missing payload fields, and ensure that the native dependencies are configured correctly.</p><p>For an Expo project, the choice between Notifee and Expo Notifications depends on the project’s native setup and the notification features required.</p><h3>5. Don’t Forget iOS Foreground Presentation</h3><p>Android and iOS do not handle foreground notification presentation in exactly the same way.</p><p>On iOS, the application can receive a notification while active without showing the usual banner or sound. Foreground presentation options must be configured appropriately if a visible system notification is desired.</p><p>Depending on the library and project setup, this can involve configuring foreground presentation behavior through the native notification APIs or the notification library being used.</p><p>For example, React Native Firebase supports configuring foreground presentation options for iOS through its messaging API.</p><p>The key lesson is that <strong>receiving a foreground message and presenting a visible notification are separate responsibilities</strong>.</p><p>A solution that works on Android should not automatically be assumed to provide identical behavior on iOS.</p><h3>6. Avoid Duplicate Notifications</h3><p>There is another detail worth considering.</p><p>If the operating system already displays a notification in the background and the application also creates a local notification for the same message, users may receive duplicate notifications.</p><p>For this reason, I handle foreground and background behavior separately.</p><p>My general approach is:</p><ul><li><strong>Foreground:</strong> Receive the message and decide whether to display an in-app alert or a local notification.</li><li><strong>Background:</strong> Allow the operating system or configured notification handler to manage the notification according to the payload and platform.</li><li><strong>Quit:</strong> Verify that the push configuration supports notification delivery and that tapping the notification opens the expected screen.</li></ul><p>The exact implementation depends on whether the backend sends notification payloads, data-only messages, or a combination of both.</p><h3>7. Test More Than One Scenario</h3><p>When implementing notifications, I don’t rely on a single successful test.</p><p>I check the following:</p><ul><li>The app is open and visible.</li><li>The app is in the background.</li><li>The app has been removed from the foreground or quit.</li><li>The notification title and body are correct.</li><li>Tapping the notification opens the appropriate screen.</li><li>Notification permissions are configured correctly.</li><li>Android notification channels and iOS presentation settings are correct.</li><li>The same notification is not displayed twice.</li></ul><p>Testing these cases separately makes it much easier to identify whether the issue comes from message delivery, foreground handling, notification presentation, or navigation.</p><h3>Final Thoughts</h3><p>The main lesson I learned is that Firebase Cloud Messaging delivering a message does not always mean the user will see a notification banner.</p><p>When the app is in the foreground, the application often needs to handle presentation explicitly.</p><p>Using onMessage to receive foreground messages and a notification library such as Notifee to display local notifications is one practical approach in React Native.</p><p>Once foreground handling, background behavior, and notification-tap navigation are treated as separate parts of the implementation, debugging becomes much more straightforward.</p><p><strong>Have you encountered foreground notification issues in React Native? Do you use Notifee, Expo Notifications, or another approach to handle them?</strong></p><p>I’d love to hear how other developers handle push notifications across iOS and Android.</p><p><strong>Tags:</strong> React Native · Firebase · Firebase Cloud Messaging · Push Notifications · Mobile Development</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc022f199647" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Force App Updates in React Native with Backend-Controlled Version Checks]]></title>
            <link>https://rudrampanchal.medium.com/implementing-force-app-updates-in-react-native-with-backend-controlled-version-checks-14f326801531?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f326801531</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[backned]]></category>
            <category><![CDATA[force-update]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[mobile-app-developers]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 10:47:17 GMT</pubDate>
            <atom:updated>2026-10-23T10:47:17.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vp_BtNHnY5V-V9dOLN4X-A.jpeg" /></figure><p>Mobile applications evolve continuously. New features, bug fixes, security improvements, and compatibility changes often require users to install a newer version of an app.</p><p>But what happens when an older version is no longer supported?</p><p>Recently, while working on a React Native application built with Expo, I implemented a <strong>backend-controlled force update mechanism</strong> to handle this situation.</p><p>The goal was straightforward: if a user’s installed version is no longer supported, the app should require an update before allowing them to continue.</p><p>Here’s how I approached it.</p><h3>1. Why Force Updates Matter</h3><p>Not every application update needs to be mandatory. However, some updates are essential when an older version is incompatible with the backend, contains a critical bug, or can no longer be supported.</p><p>A force update mechanism allows the application to stop users from continuing with an unsupported version and direct them to the appropriate app store.</p><p>The important part is implementing this without unnecessarily complicating the app’s startup flow.</p><h3>2. Letting the Backend Control Version Compatibility</h3><p>One of my main decisions was to keep the version compatibility logic on the backend instead of hardcoding it into the mobile application.</p><p>The app makes the following request during a cold start, after the fonts have loaded:</p><p>GET /api/v1/app-version-check</p><p>The request includes the native app version and, for iOS, the build number.</p><p>The backend evaluates the version information and returns a response containing a forceUpdate flag, along with the update message and the relevant store URL.</p><p>The mobile app then follows the backend’s decision.</p><p>This keeps the compatibility rules centralized and makes them easier to maintain.</p><h3>3. How the Startup Flow Works</h3><p>The implementation follows a simple sequence:</p><p><strong>App Launch → Load Fonts → Check App Version → Receive Backend Response → Continue or Require Update</strong></p><p>If the backend returns forceUpdate: true, the app displays a blocking <strong>Update Required</strong> dialog.</p><p>The normal authentication and navigation flow does not continue until the user chooses to update the app.</p><p>When the user taps <strong>UPDATE NOW</strong>, the application opens the App Store or Google Play Store URL returned by the backend.</p><p>This allows the same general approach to work across both iOS and Android, while respecting their platform-specific version information.</p><h3>4. Why I Chose Backend-Controlled Decisions</h3><p>Another approach would be to store a minimum supported version in the mobile application and compare it with the installed version.</p><p>However, this introduces a limitation: changing the minimum supported version may require updating the app’s local configuration or releasing a new version if the rule is hardcoded.</p><p>With backend-controlled decisions, the server can change the compatibility policy independently.</p><p>For example, if version 1.0.2 is no longer supported, the backend can enforce that rule without requiring a new mobile release just to change the version comparison logic.</p><p>The mobile application only needs to understand the response and handle the required UI behavior.</p><h3>5. Handling API Failures Gracefully</h3><p>A force update check introduces an important question:</p><p><strong>What happens if the version-check API is unavailable?</strong></p><p>I didn’t want a temporary backend outage to prevent users from opening the application unnecessarily.</p><p>For this reason, I implemented a <strong>fail-open</strong> approach.</p><p>If the request fails or the API returns an unsuccessful response, the application continues with its normal startup flow.</p><p>The intended behavior is:</p><ul><li><strong>Supported version:</strong> Continue with the normal startup flow.</li><li><strong>Unsupported version:</strong> Display the blocking update dialog.</li><li><strong>Version-check API failure:</strong> Continue with the normal startup flow.</li></ul><p>This improves availability when the version-check service experiences a temporary issue.</p><p>However, fail-open behavior is a deliberate trade-off. If enforcing a minimum version is essential for security, compliance, or backend compatibility, the failure policy should be evaluated carefully. A mandatory update check alone should not be treated as a security boundary.</p><h3>6. Keeping the Mobile App and Backend Responsibilities Clear</h3><p>This implementation follows a simple separation of responsibilities.</p><p><strong>The backend is responsible for:</strong></p><ul><li>Deciding which app versions are supported.</li><li>Returning the force update decision.</li><li>Providing the update message.</li><li>Returning the appropriate App Store or Google Play Store URL.</li></ul><p><strong>The mobile application is responsible for:</strong></p><ul><li>Sending the native version information.</li><li>Calling the version-check endpoint.</li><li>Displaying the update dialog when required.</li><li>Opening the relevant store URL.</li><li>Continuing the startup flow when the check fails under the chosen fail-open policy.</li></ul><p>This separation keeps the mobile implementation relatively simple and gives the backend greater control over release compatibility.</p><h3>7. What I Learned</h3><p>This was a relatively small feature, but it reinforced an important software development principle: not every decision needs to live inside the client application.</p><p>By moving version compatibility decisions to the backend, I made the startup flow easier to manage and allowed future policy changes without requiring a new mobile release solely to update the version comparison logic.</p><p>It also highlighted the importance of considering failure scenarios when implementing features that run during application startup.</p><p>A feature should not only work when everything is available; its behavior during failures should also be intentional.</p><h3>Conclusion</h3><p>Implementing a backend-controlled force update mechanism gave me a cleaner way to manage application compatibility across iOS and Android.</p><p>The core idea is simple: let the backend decide whether a version is supported, let the mobile app handle the user experience, and define a clear fallback when the API is unavailable.</p><p>It’s a small architectural decision, but one that can make mobile application releases easier to manage as an application grows.</p><p><strong>How do you handle mandatory app updates in your React Native projects? Do you manage version compatibility on the backend, inside the app, or through a remote configuration service?</strong></p><p>I’d be interested to hear how other developers approach this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f326801531" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My iOS Release Workflow: From React Native + Expo to TestFlight]]></title>
            <link>https://rudrampanchal.medium.com/my-ios-release-workflow-from-react-native-expo-to-testflight-46bf2f40cf31?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/46bf2f40cf31</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[testflight]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 10:46:07 GMT</pubDate>
            <atom:updated>2026-10-23T10:46:07.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTRfy_FGCIYW-Qw_AvBh2Q.jpeg" /></figure><p>Releasing an iOS application involves more than just building the project and uploading it to App Store Connect.</p><p>Even when an application builds successfully in Xcode, there can still be issues with authentication, API integration, navigation, push notifications, or other core features.</p><p>After going through several TestFlight builds while working with React Native and Expo, I’ve developed a release workflow that helps me catch common issues before uploading a build for testing.</p><p>In this article, I’ll share the checklist I currently follow and explain why each step matters.</p><h3>1. Start With the Latest Code</h3><p>Before opening Xcode, I make sure I’m working with the latest intended code.</p><p>This includes checking the current Git branch, reviewing pending changes, and confirming that the correct changes are ready for release.</p><p>For React Native and Expo projects, I also verify that the project configuration and dependencies are in the expected state.</p><p>The goal is to avoid archiving an outdated version or accidentally including unfinished changes.</p><h3>2. Open the Project in Xcode</h3><p>Once the code is ready, I open the iOS project in Xcode.</p><p>For Expo projects that use native iOS builds, this is where I can inspect the native configuration, select the appropriate build target, and prepare the application for archiving.</p><p>Before proceeding, I check that the correct scheme and signing configuration are selected.</p><h3>3. Select a Real iOS Device</h3><p>I select the appropriate iOS build destination and, when possible, test on a physical iPhone.</p><p>A simulator is useful during development, but a real device can reveal issues that may not appear in the simulator.</p><p>For example, I pay attention to:</p><ul><li>Authentication and session handling</li><li>API requests and network connectivity</li><li>Screen navigation and application startup</li><li>Push notification behavior</li><li>Core user interactions</li><li>Layout and font rendering</li></ul><p>Testing these flows before distribution helps reduce the risk of sending an unstable build to testers.</p><h3>4. Clean and Build the Project</h3><p>Before creating an archive, I clean the build folder when appropriate and build the project.</p><p>My usual sequence is:</p><p><strong>Product → Clean Build Folder</strong></p><p>Then I use:</p><p><strong>⌘ + B → Build the project</strong></p><p>If Xcode reports build errors, I resolve them before continuing.</p><p>I also review relevant warnings rather than automatically ignoring them, particularly when they relate to native dependencies, signing, or release configuration.</p><p>Cleaning is not necessarily required for every release, but it can help when stale build artifacts or unexpected build issues are suspected.</p><h3>5. Run a Smoke Test</h3><p>A successful build is only one part of the release process.</p><p>Before archiving, I run the application and check the most important user flows.</p><p>My basic smoke-test checklist includes:</p><ul><li>Can the user launch the app successfully?</li><li>Does authentication work correctly?</li><li>Are API requests returning the expected results?</li><li>Does navigation work without unexpected errors?</li><li>Are the main features usable?</li><li>Do push notifications behave as expected, where applicable?</li><li>Does the app handle common error scenarios gracefully?</li></ul><p>I focus on the features that would have the biggest impact if they failed after the build reached testers.</p><p>I don’t necessarily repeat every detailed test before every upload, but I make sure the critical flows have been checked.</p><h3>6. Increment the Build Number</h3><p>Before creating the archive, I verify the app’s version and build number.</p><p>The version number communicates the release version, while the build number identifies a particular build submitted for distribution.</p><p>For example:</p><ul><li>App version: 1.0.2</li><li>Build number: 2</li></ul><p>If I upload another build for the same release version, I increment the build number, for example to 3.</p><p>The exact configuration depends on the project’s iOS settings and release setup, so I verify the values in the relevant Expo configuration and Xcode build settings.</p><p>This step is important because App Store Connect requires an appropriate, unique build identifier for each uploaded build within the relevant app version.</p><h3>7. Create an Archive</h3><p>Once the build and smoke tests are complete, I select the appropriate archive destination in Xcode and create the archive.</p><p>The archive packages the application for distribution.</p><p>After the process finishes, I check the archive details and make sure the expected app version and build number are included.</p><p>If the archive fails, I resolve the underlying issue before attempting distribution again.</p><h3>8. Distribute and Upload to App Store Connect</h3><p>After creating the archive, I use Xcode’s distribution workflow to upload the build to App Store Connect.</p><p>During this step, I check the signing configuration and resolve any validation or upload errors reported by Xcode.</p><p>Uploading successfully does not always mean the build is immediately available to testers. Apple may need to process the build before it appears in TestFlight.</p><p>I wait for processing to finish and check the build status in App Store Connect.</p><h3>9. Assign Testers in TestFlight</h3><p>Once the build is available, I configure testing through TestFlight.</p><p>Depending on the project, testers can be added as internal or external testers. External testing may require Beta App Review before distribution.</p><p>I make sure the correct build is selected and that the appropriate testers have access.</p><p>I also verify any required testing information and communicate what needs to be tested.</p><h3>My Complete iOS Release Checklist</h3><p>Here’s the workflow in a simplified format:</p><p><strong>Latest Code → Open in Xcode → Select Device → Clean Build Folder (When Needed) → Build → Smoke Test → Increment Build Number → Archive → Upload to App Store Connect → TestFlight → Assign Testers</strong></p><p>Each step has a purpose, but the most important part is not simply following the sequence. It’s verifying that the application is ready for the next stage.</p><h3>The Biggest Lesson I’ve Learned</h3><p>One thing I’ve learned from working through TestFlight releases is that <strong>a successful Xcode build doesn’t automatically mean an app is ready for testing.</strong></p><p>A build can compile without errors and still have problems that only become obvious when you run the application and test its core features.</p><p>Spending a few minutes checking authentication, API calls, navigation, notifications, and other critical flows can save time later.</p><p>It also gives testers a better starting point and makes feedback more useful.</p><h3>Conclusion</h3><p>This is the iOS release workflow that currently works best for me when working with React Native, Expo, and Xcode.</p><p>The process doesn’t eliminate every possible release issue, but it gives me a consistent checklist to follow before distributing a build.</p><p>As projects grow, I believe having a repeatable release process becomes just as important as writing the application itself.</p><p><strong>How do you prepare your React Native apps for TestFlight? Do you follow a manual checklist, automate parts of the release process, or use tools such as EAS Build and Fastlane?</strong></p><p>I’d love to learn how other developers handle their iOS releases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46bf2f40cf31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Expo Prebuild Overwrites Your Xcode Changes (And How to Prevent It)]]></title>
            <link>https://rudrampanchal.medium.com/why-expo-prebuild-overwrites-your-xcode-changes-and-how-to-prevent-it-a6e2d7b0df36?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6e2d7b0df36</guid>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 10:44:51 GMT</pubDate>
            <atom:updated>2026-10-23T10:44:51.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dlO4E8AXKY7kyIbbY_3RDQ.jpeg" /></figure><p>While preparing a React Native application for TestFlight, I ran into an issue that took me a while to understand.</p><p>I had made a few configuration changes directly in Xcode. Everything was working perfectly in my local build, so I continued with my development workflow.</p><p>Then I ran:</p><pre>npx expo prebuild --platform ios</pre><p>After the command finished, some of my Xcode changes were gone.</p><p>My first thought was:</p><p><em>“Did Expo just overwrite my iOS project?”</em></p><p>The answer is yes, in certain circumstances — and understanding why changed the way I manage native configuration in Expo projects.</p><h3>1. What Does Expo Prebuild Actually Do?</h3><p>In a typical Expo project, the native iOS and Android projects can be generated from your application configuration, dependencies, and configured plugins.</p><p>For example, Expo uses files such as:</p><ul><li>app.json</li><li>app.config.js or app.config.ts</li><li>Config plugins</li><li>Native dependencies that participate in the prebuild process</li></ul><p>When you run npx expo prebuild, Expo generates or updates the native project based on those inputs.</p><p>The important distinction is that <strong>the generated native project is not necessarily the source of truth for every configuration change</strong>.</p><p>If you manually edit a generated native file in Xcode, that change may not be represented in your Expo configuration or a config plugin.</p><p>When the native project is regenerated, your manual changes can disappear.</p><h3>2. Why My Xcode Changes Disappeared</h3><p>Consider a simple example.</p><p>Suppose I manually add an iOS permission description in Xcode by editing Info.plist.</p><p>The application builds successfully, and the permission works as expected.</p><p>Later, I run:</p><pre>npx expo prebuild --platform ios</pre><p>If that permission was not configured through a persistent Expo configuration mechanism, the regenerated project may no longer contain the change.</p><p>The same general issue can affect other native configuration changes, depending on how they were made and whether Expo or a plugin manages the relevant files.</p><p>This is why a configuration change working in the current Xcode project does not guarantee that it will survive the next prebuild.</p><h3>3. Keep App Configuration in app.json</h3><p>For supported settings, I prefer declaring configuration in app.json instead of editing generated native files manually.</p><p>For example, an iOS permission description can be configured like this:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;ios&quot;: {<br>      &quot;infoPlist&quot;: {<br>        &quot;NSCameraUsageDescription&quot;: &quot;Allow access to the camera for this feature.&quot;<br>      }<br>    }<br>  }<br>}</pre><p>This makes the permission description part of the project’s configuration rather than an isolated manual change.</p><p>When Expo generates the native iOS project, it can apply the configured value to the appropriate native settings.</p><p>The exact configuration depends on the permission or native capability being used.</p><h3>4. Use Config Plugins for Native Customization</h3><p>Not every native setting can be managed through app.json alone.</p><p>Some features require changes to native project files, additional configuration, or integration with third-party SDKs.</p><p>This is where Expo config plugins become useful.</p><p>A config plugin can apply supported native changes during prebuild, helping make those changes reproducible.</p><p>For example, a plugin may configure native project settings, modify an Info.plist value, or integrate a native SDK.</p><p>Instead of relying on a one-time edit in Xcode, the required change becomes part of the project’s configuration process.</p><p>For third-party libraries, I first check whether the package already provides an official Expo config plugin before creating a custom solution.</p><h3>5. Be Careful With the --clean Flag</h3><p>One command worth understanding is:</p><pre>npx expo prebuild --platform ios --clean</pre><p>The --clean flag removes and regenerates the native project for the specified platform.</p><p>This can be useful when testing whether the project’s native configuration can be recreated correctly from its declared inputs.</p><p>However, it also means that manual changes inside the generated ios directory can be lost.</p><p><strong>Important:</strong> Before running a clean prebuild, commit or back up any important native changes and verify that they are represented in your configuration or config plugins.</p><p>If your project intentionally maintains native code that is not generated from Expo configuration, you need to account for that in your workflow rather than assuming a clean prebuild will preserve it.</p><h3>6. My Updated Workflow</h3><p>After understanding this behavior, I adjusted how I manage native configuration in my React Native and Expo projects.</p><p>My approach is now:</p><ol><li><strong>Declare supported settings in Expo configuration.</strong> Keep permissions and other supported application settings in app.json or the relevant app config file.</li><li><strong>Use config plugins when necessary.</strong> Make native customizations reproducible across generated projects.</li><li><strong>Review native dependencies.</strong> Check whether installed packages require additional native setup.</li><li><strong>Test prebuild changes locally.</strong> Verify the generated iOS project before starting a release build.</li><li><strong>Inspect the resulting native project.</strong> Confirm that important settings are present after regeneration.</li><li><strong>Build and test before TestFlight.</strong> Run the app on a real device and validate critical features before uploading.</li></ol><p>This gives me a more predictable release process and reduces the risk of discovering missing native configuration late in the release cycle.</p><h3>7. Is Xcode Still Useful With Expo?</h3><p>Absolutely.</p><p>Xcode remains important for building, debugging, signing, archiving, and distributing iOS applications.</p><p>The lesson is not to avoid Xcode. It is to understand which changes belong in Xcode and which should be managed through Expo configuration.</p><p>If a project uses Continuous Native Generation, generated native files should generally be treated as outputs of the configuration process.</p><p>If a project intentionally maintains native iOS code, native changes can be appropriate — but the workflow should account for preserving and maintaining those changes.</p><p>The right approach depends on how the project is structured.</p><h3>Final Thoughts</h3><p>This experience taught me an important lesson about working with Expo:</p><p><strong>If a native configuration change needs to survive regeneration, make sure it is represented in a persistent part of your development workflow.</strong></p><p>For supported settings, that usually means Expo app configuration. For more advanced native customizations, it may mean a config plugin or a deliberate approach to maintaining native code.</p><p>Once I understood how prebuild works, I could prepare iOS builds with greater confidence and reduce unexpected changes during the release process.</p><p>Have you ever lost native configuration after running expo prebuild? How do you manage native customizations in your React Native projects?</p><p>I’d love to hear how other developers approach this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6e2d7b0df36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Free CAPTCHA to a React + EmailJS Form ]]></title>
            <link>https://rudrampanchal.medium.com/how-to-add-free-captcha-to-a-react-emailjs-form-978e9fffcac7?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/978e9fffcac7</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[captcha]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[emailjs]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 11:24:11 GMT</pubDate>
            <atom:updated>2026-10-21T11:24:11.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDzWlee2iAmlUq3j5T7nlQ.png" /></figure><p>If you have a static React website with a contact form, you might already be using EmailJS to send enquiries directly to your inbox.</p><p>But there is one important question:</p><p><strong>How can you reduce spam submissions without building a backend or paying for another service?</strong></p><p>One option is Google reCAPTCHA.</p><p>In this guide, we’ll connect Google reCAPTCHA v2 with EmailJS and cover the setup step by step.</p><h3>1. Is CAPTCHA free?</h3><p>Google provides a free reCAPTCHA option, but its current usage limits depend on the product and plan you choose.</p><p>Google Cloud currently lists up to <strong>10,000 assessments per month at no cost</strong> for reCAPTCHA Essentials. Check the latest pricing before using it in a production project.</p><p>Official pricing: <a href="https://cloud.google.com/security/products/recaptcha">https://cloud.google.com/security/products/recaptcha</a></p><p>For EmailJS specifically, its CAPTCHA integration supports <strong>reCAPTCHA v2</strong>.</p><h3>2. Create your reCAPTCHA keys</h3><p>First, open the Google reCAPTCHA setup page:</p><p><a href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha/admin/create</a></p><p>Then:</p><ol><li>Register your website.</li><li>Choose the reCAPTCHA v2 checkbox option supported by EmailJS.</li><li>Add your website domain.</li><li>Accept the terms and create the keys.</li><li>Copy your <strong>Site Key</strong> and <strong>Secret Key</strong>.</li></ol><p>Keep these two keys separate. The Site Key is intended for frontend use, while the Secret Key must remain private.</p><h3>3. Enable CAPTCHA in EmailJS</h3><p>Now open your EmailJS dashboard.</p><ol><li>Open the email template used by your React contact form.</li><li>Go to the template’s <strong>Settings</strong> tab.</li><li>Enable <strong>reCAPTCHA v2 verification</strong>.</li><li>Enter the Secret Key from your Google reCAPTCHA setup.</li><li>Save your template.</li></ol><p>EmailJS will require CAPTCHA verification before sending an email through that template.</p><p>Official instructions: <a href="https://www.emailjs.com/docs/user-guide/adding-captcha-verification/">https://www.emailjs.com/docs/user-guide/adding-captcha-verification/</a></p><h3>4. Connect CAPTCHA to your React form</h3><p>Your website must render the CAPTCHA widget and obtain a valid verification response before submitting the form.</p><p>If you are using the standard EmailJS sendForm method, follow its documented React integration and ensure the CAPTCHA response is included correctly.</p><p>React integration guide:</p><p><a href="https://www.emailjs.com/docs/examples/reactjs/">https://www.emailjs.com/docs/examples/reactjs/</a></p><p><strong>Important:</strong> Don’t assume that simply displaying a CAPTCHA checkbox protects your form. The verification must also be enabled in the EmailJS template settings.</p><h3>5. Add other security layers</h3><p>CAPTCHA is useful, but I wouldn’t rely on it alone.</p><p>For a static React website, consider these additional protections:</p><ul><li>Validate required fields and email formats.</li><li>Limit the length of user-submitted messages.</li><li>Configure EmailJS’s allowed origins.</li><li>Enable appropriate EmailJS abuse protections.</li><li>Use SDK options such as headless-browser blocking and request throttling where appropriate.</li></ul><p>Remember that client-side throttling is not a replacement for server-enforced limits. A determined attacker may bypass your website’s interface and send requests directly.</p><p>EmailJS security overview:</p><p><a href="https://www.emailjs.com/docs/faq/does-emailjs-expose-my-account-to-spam/">https://www.emailjs.com/docs/faq/does-emailjs-expose-my-account-to-spam/</a></p><h3>6. Do you need a backend?</h3><p>For a simple business contact form, React + EmailJS + CAPTCHA can be a practical solution without maintaining your own server.</p><p>However, if your application needs authentication, payments, sensitive business logic, or stronger custom abuse controls, consider moving form submission behind a backend.</p><p>The architecture would look like this:</p><p><strong>React Form → Backend/API → Email Service</strong></p><p>The backend can validate submissions and enforce server-side rules before sending emails.</p><h3>Final thoughts</h3><p>You don’t always need a backend to add basic spam protection to a static React website.</p><p>But security is not a single checkbox. CAPTCHA works best as one layer in a broader strategy.</p><p>Before deploying, test both successful submissions and rejected submissions, and check that invalid or unverified requests cannot send emails through your template.</p><p>Have you used Google reCAPTCHA with EmailJS, or do you prefer handling contact forms through your own backend?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=978e9fffcac7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add a React Contact Form with EmailJS — No Backend Required ]]></title>
            <link>https://rudrampanchal.medium.com/how-to-add-a-react-contact-form-with-emailjs-no-backend-required-a4c58cf39eec?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4c58cf39eec</guid>
            <category><![CDATA[emailjs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[captcha]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 11:17:33 GMT</pubDate>
            <atom:updated>2026-10-21T11:17:33.130Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHf486UVpL0yGcl8bXKVbw.png" /></figure><p>When building a static React website, I often need a simple contact or enquiry form.</p><p>But if the website doesn’t have a backend, how do you send those enquiries to an email inbox?</p><p>One simple option is <strong>EmailJS</strong>.</p><p>The basic flow is:</p><p><strong>React Form → EmailJS → Your Email Inbox</strong></p><p>You don’t need to build a custom backend just to send a basic contact-form email.</p><p>Here’s how I set it up.</p><h3>1. Create an EmailJS Account</h3><p>Create an account at:</p><p><a href="https://www.emailjs.com/">https://www.emailjs.com/</a></p><p>After signing in, we need three things:</p><ul><li><strong>Email Service</strong></li><li><strong>Email Template</strong></li><li><strong>Public Key</strong></li></ul><h3>Connect an Email Service</h3><p>Go to <strong>Email Services → Add New Service</strong> and connect your email provider.</p><p>After connecting it, copy the <strong>Service ID</strong>.</p><p>Official guide:</p><p><a href="https://www.emailjs.com/docs/tutorial/adding-email-service/">https://www.emailjs.com/docs/tutorial/adding-email-service/</a></p><h3>2. Create an Email Template</h3><p>Go to <strong>Email Templates → Create New Template</strong>.</p><p>For example:</p><p><strong>Subject:</strong></p><pre>New Website Enquiry from {{user_name}}</pre><p><strong>Message:</strong></p><pre>Name: {{user_name}}<br>Email: {{user_email}}<br>Subject: {{subject}}<br><br>Message:<br>{{message}}</pre><p>The {{ }} values are variables that will come from your React form.</p><p>Save the template and copy the <strong>Template ID</strong>.</p><p>Official guide:</p><p><a href="https://www.emailjs.com/docs/tutorial/creating-email-template/">https://www.emailjs.com/docs/tutorial/creating-email-template/</a></p><h3>3. Install EmailJS</h3><p>In your React project:</p><pre>npm install @emailjs/browser</pre><p>Then create your contact form:</p><pre>import { useRef } from &quot;react&quot;;<br>import emailjs from &quot;@emailjs/browser&quot;;</pre><pre>export default function ContactForm() {<br>  const formRef = useRef(null);</pre><pre>  const handleSubmit = async (e) =&gt; {<br>    e.preventDefault();</pre><pre>    try {<br>      await emailjs.sendForm(<br>        &quot;YOUR_SERVICE_ID&quot;,<br>        &quot;YOUR_TEMPLATE_ID&quot;,<br>        formRef.current,<br>        {<br>          publicKey: &quot;YOUR_PUBLIC_KEY&quot;,<br>        }<br>      );</pre><pre>      alert(&quot;Message sent!&quot;);<br>      formRef.current.reset();<br>    } catch (error) {<br>      console.error(error);<br>      alert(&quot;Something went wrong.&quot;);<br>    }<br>  };</pre><pre>  return (<br>    &lt;form ref={formRef} onSubmit={handleSubmit}&gt;<br>      &lt;input name=&quot;user_name&quot; placeholder=&quot;Name&quot; required /&gt;<br>      &lt;input name=&quot;user_email&quot; type=&quot;email&quot; placeholder=&quot;Email&quot; required /&gt;<br>      &lt;input name=&quot;subject&quot; placeholder=&quot;Subject&quot; required /&gt;<br>      &lt;textarea name=&quot;message&quot; placeholder=&quot;Message&quot; required /&gt;</pre><pre>      &lt;button type=&quot;submit&quot;&gt;<br>        Send Message<br>      &lt;/button&gt;<br>    &lt;/form&gt;<br>  );<br>}</pre><p>The important part is that the name attributes match the variables in your EmailJS template.</p><p>For example:</p><pre>name=&quot;user_name&quot;</pre><p>matches:</p><pre>{{user_name}}</pre><p>Official React guide:</p><p><a href="https://www.emailjs.com/docs/examples/reactjs/">https://www.emailjs.com/docs/examples/reactjs/</a></p><h3>4. What About the Public Key?</h3><p>This is an important security point.</p><p>The <strong>EmailJS Public Key is designed to be used in frontend applications</strong>.</p><p>So you don’t need to treat it like a backend password.</p><p>But you should <strong>never put private credentials into your React application</strong>.</p><p>For example:</p><p>❌ Database passwords<br>❌ Private server API keys<br>❌ Email-provider passwords<br>❌ reCAPTCHA Secret Key</p><p>Anything shipped to the browser can potentially be inspected.</p><h3>5. Add Google reCAPTCHA</h3><p>A public contact form can be targeted by automated scripts.</p><p>CAPTCHA can help reduce automated submissions.</p><p>Create your reCAPTCHA configuration here:</p><p><a href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha/admin/create</a></p><p>For EmailJS, follow its reCAPTCHA setup guide:</p><p><a href="https://www.emailjs.com/docs/user-guide/adding-captcha-verification/">https://www.emailjs.com/docs/user-guide/adding-captcha-verification/</a></p><p>You’ll get a <strong>Site Key</strong> and <strong>Secret Key</strong>.</p><p>The Site Key is used for the frontend CAPTCHA.</p><p>The <strong>Secret Key should not be placed inside your React code</strong>. Configure it through the EmailJS CAPTCHA settings as described in their documentation.</p><h3>6. CAPTCHA Is Not Enough</h3><p>This is the part I think is easy to overlook.</p><p>Adding CAPTCHA doesn’t mean the contact form is completely secure.</p><p>Someone can inspect a public React application and attempt to bypass the UI using tools such as cURL, Postman, Python, or their own script.</p><p>So I would consider multiple layers:</p><ul><li>Client-side validation</li><li>CAPTCHA / reCAPTCHA</li><li>EmailJS rate limits</li><li>Allowed-origin configuration</li><li>Input length limits</li><li>Headless/automated-request protection</li><li>Keeping private credentials out of the frontend</li></ul><p>EmailJS also provides SDK security options:</p><p><a href="https://www.emailjs.com/docs/sdk/options/">https://www.emailjs.com/docs/sdk/options/</a></p><h3>7. When Do You Need a Backend?</h3><p>For a simple static website, EmailJS can be enough:</p><p><strong>React → EmailJS → Email</strong></p><p>But for applications with authentication, payments, databases, sensitive business logic, or stronger server-side controls, I’d use:</p><p><strong>React → Backend → Email Service</strong></p><p>The backend can keep private credentials and perform server-side validation.</p><h3>Final Thoughts</h3><p>You don’t always need a backend just to add a contact form to a static React website.</p><p>For simple websites, <strong>EmailJS + validation + CAPTCHA + appropriate security settings</strong> can be a practical solution.</p><p>But the important lesson is:</p><p><strong>CAPTCHA is one security layer, not the entire security strategy.</strong></p><p>Choose the simplest architecture that fits the actual requirements of your project. 🚀</p><p>Have you used EmailJS in a React project, or do you prefer building your own backend?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4c58cf39eec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Every Protected API Needs This One Middleware (JWT Auth + Session Validation + Auto-Refresh)]]></title>
            <link>https://javascript.plainenglish.io/why-every-protected-api-needs-this-one-middleware-jwt-auth-session-validation-auto-refresh-241fe18a2392?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/241fe18a2392</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 13:55:28 GMT</pubDate>
            <atom:updated>2026-07-14T07:11:03.101Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfOSSqqmQs9JTfvJILhqdQ.png" /></figure><p>Most auth middleware tutorials assume one kind of user. Real apps usually don’t.</p><p>This one handles two — regular users and admins, stored in separate tables — and still hands every route the exact same clean object to work with. That’s the part worth paying attention to. Here’s how it works, piece by piece.</p><h4>1. No Token, No Entry</h4><pre>if (!token) {<br>  return res.status(401).json({ message: &quot;Token required&quot; });<br>}</pre><p>No token means no database calls, no wasted work — just an instant 401.</p><h4>2. Is the Token Real?</h4><pre>const decoded = verifyToken(token);\</pre><p>This checks the signature and decodes what’s inside. Forged or expired tokens get caught here.</p><h4>3. Is the Session Actually Still Alive?</h4><p>A valid token isn’t the same as a valid session. The user could’ve logged out elsewhere, or an admin could’ve revoked access since the token was issued. So the middleware checks the database — not just the token — for the real answer.</p><pre>const session = await findUserToken(token);<br>if (!session) {<br>  return res.status(401).json({ message: &quot;Invalid session&quot; });<br>}</pre><p>Token says yes, database says no? Database wins.</p><h4>4. Two Tables, One Shape</h4><p>Here’s the distinctive part: users and admins live in separate tables with separate logic, but no route downstream should have to know that. The middleware absorbs the difference and outputs one consistent shape:</p><pre>req.user = { id: 123, is_staff: false };<br>// or<br>req.user = { id: 456, is_staff: true, role_id: 2 };</pre><p>Every controller just reads req.user.is_staff and moves on. It never needs to know which table, which query, or which logic produced it.</p><h4>5. Refreshing Sessions Without Anyone Noticing</h4><p>If a token has just a few hours of life left, the middleware quietly issues a new one and swaps the cookie — mid-request, no user action needed.</p><pre>if (tokenIsAboutToExpire) {<br>  const newToken = signToken(userData);<br>  setAuthCookie(res, newToken);<br>}</pre><p>Stay active, stay logged in. Go idle, and the token expires on schedule. No surprise logouts, no indefinite sessions either.</p><h4>Where It Sits in the Route</h4><pre>router.post(<br>  &quot;/profile/update&quot;,<br>  authenticate,             // who is this?<br>  validateRequest,          // is their request well-formed?<br>  profileController.update  // now run the actual logic<br>);</pre><p>The order isn’t arbitrary. Validating a request body before confirming who sent it is wasted effort — and it can leak details about your validation rules to someone who hasn’t even proven they’re allowed in yet. Identity gets checked first, always.</p><h4>The Takeaway</h4><p>This middleware does three jobs that have nothing to do with each other on the surface — cryptographic verification, database-backed session checks, and silent token refresh — and unifies them into one gate that every protected route passes through the same way.</p><p>The two-table user/admin split is the detail that makes it worth a second look: most write-ups assume a single user type. Real systems rarely do.</p><h3>Before you go</h3><ul><li>Please take a moment to like the post and follow the writer!</li><li>Did you know that over 400,000 developers share what they’re building, learning, and discovering across our platforms every month? Learn how you can contribute <a href="https://plainenglish.io/write-for-us">here</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=241fe18a2392" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/why-every-protected-api-needs-this-one-middleware-jwt-auth-session-validation-auto-refresh-241fe18a2392">Why Every Protected API Needs This One Middleware (JWT Auth + Session Validation + Auto-Refresh)</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Won’t Replace Developers — But It Will Expose the Ones Who Don’t Understand Code]]></title>
            <link>https://blog.stackademic.com/ai-wont-replace-developers-but-it-will-expose-the-ones-who-don-t-understand-code-574d7731812f?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/574d7731812f</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[tech-career]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 14:58:54 GMT</pubDate>
            <atom:updated>2026-03-28T02:23:18.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57t7CsRJJxQpCQYwIAg2uw.png" /></figure><h3>✍️ Description (Medium Ready + Image Flow)</h3><p>The rise of AI tools like ChatGPT and Claude has completely changed how developers write code today. Tasks that once took hours can now be done in minutes.</p><p>But here’s the truth no one talks about enough:</p><p>👉 <strong>Using AI without understanding is dangerous.</strong></p><h3>📌 The Problem: Copy-Paste Development</h3><p>Many developers today rely heavily on AI or platforms like Stack Overflow without truly understanding what the code does. They copy, paste, and move on.</p><p>It works… until it doesn’t.</p><p>When an error occurs, or when something needs customization, they get stuck — because they never learned the fundamentals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9j1PhKnD9xM2g0G_UM_BA.png" /></figure><h3>📌 The Right Approach: Documentation First</h3><p>Instead of blindly copying, great developers always start with <strong>official documentation</strong>.</p><p>For example, if you’re working with Nodemailer, don’t just copy random code. Go to npm or official docs and understand:</p><ul><li>How configuration works</li><li>What each option does</li><li>What’s new in the latest version</li><li>Security best practices</li></ul><h3>📌 AI is a Tool — Not a Replacement</h3><p>AI is powerful. It can:</p><ul><li>Speed up development</li><li>Suggest better approaches</li><li>Help debug faster</li></ul><p>But it cannot replace <strong>thinking</strong>.</p><p>A developer who understands logic, systems, and documentation will always outperform someone who just pastes AI-generated code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1fDejwEKR2KSeyLrr5ZuA.png" /></figure><h3>📌 Real-World Reality</h3><p>Let’s be practical.</p><p>A non-technical person might use AI to create a simple app. But:</p><ul><li>Can they fix bugs? ❌</li><li>Can they scale the system? ❌</li><li>Can they handle production errors? ❌</li></ul><p>That’s where <strong>real developers are needed</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQ64Mz8Z8xyfps6qWbhIpg.png" /></figure><h3>📌 The Smart Developer Mindset</h3><p>If you want to grow as a developer:</p><ul><li>✅ Use AI — but don’t depend on it</li><li>✅ Read documentation — deeply</li><li>✅ Understand before implementing</li><li>✅ Experiment and break things</li><li>✅ Learn how systems actually work</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CPtrZbQvqnQFf0p3MFWLw.png" /></figure><h3>🚀 Final Thought</h3><p>AI is not the end of developers.</p><p>It’s the <strong>end of shallow developers</strong>.</p><p>The future belongs to those who:</p><ul><li>Understand deeply</li><li>Learn continuously</li><li>Use AI as a tool, not a shortcut</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=574d7731812f" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/ai-wont-replace-developers-but-it-will-expose-the-ones-who-don-t-understand-code-574d7731812f">AI Won’t Replace Developers — But It Will Expose the Ones Who Don’t Understand Code</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Mastering Web Scraping in Python with Requests and BeautifulSoup]]></title>
            <link>https://python.plainenglish.io/%EF%B8%8F-mastering-web-scraping-in-python-with-requests-and-beautifulsoup-691f19fce941?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/691f19fce941</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[beautifulsoup]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Sat, 20 Dec 2025 12:14:01 GMT</pubDate>
            <atom:updated>2025-12-27T07:03:58.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i3tUugP01ZoPL1YDvpn3Bg.png" /></figure><p>Web scraping is one of the most powerful ways to collect data from the internet. From tracking prices to building datasets for machine learning, Python makes web scraping simple and efficient with libraries like requests and BeautifulSoup.</p><p>In this article, we’ll explore what web scraping is, why it’s useful, and how to build a real-world scraper step by step.</p><h3>📌 What Is Web Scraping?</h3><p><strong>Web scraping</strong> is the process of automatically extracting information from websites using code instead of manually copying it.</p><p>Common use cases include:</p><ul><li>Collecting job listings or product prices</li><li>Aggregating news or quotes</li><li>Research and data analysis</li><li>Feeding data into ML/AI models</li></ul><p>Python is one of the most popular languages for this because of its simplicity and rich ecosystem.</p><h3>🔧 The Core Tools</h3><h3>1. requests — Fetching Web Pages</h3><p>The requests library is used to send HTTP requests to a website and retrieve its content.</p><p><strong>Why use it?</strong></p><ul><li>Simple API for GET/POST requests</li><li>Handles headers, cookies, and status codes</li><li>Lightweight and beginner-friendly</li></ul><pre>import requests<br>url = &quot;https://quotes.toscrape.com/tag/simile/&quot;<br>response = requests.get(url)<br>html = response.text</pre><h3>2. BeautifulSoup — Parsing and Navigating HTML</h3><p>BeautifulSoup helps parse HTML and lets you search through the page structure to extract specific elements.</p><p><strong>Why use it?</strong></p><ul><li>Easy DOM navigation</li><li>Search by tag, class, id, or CSS selector</li><li>Clean text and attribute extraction</li></ul><pre>from bs4 import BeautifulSoup<br>soup = BeautifulSoup(html, &quot;html.parser&quot;)</pre><h3>🔄 The Typical Web Scraping Workflow</h3><ol><li>Send a request to the URL</li><li>Receive the HTML response</li><li>Parse it with BeautifulSoup</li><li>Locate the required elements</li><li>Extract and store the data</li></ol><p>This simple flow powers most scraping scripts.</p><h3>🧰 Useful BeautifulSoup Methods You Should Know</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1DHKWoi6KpJFYjpaV1rJdQ.png" /></figure><h3>⚙️ Other Ways to Scrape with Python</h3><p>While requests + BeautifulSoup are perfect for static pages, other tools are useful in different scenarios:</p><ul><li><strong>Scrapy</strong> → Large-scale scraping framework</li><li><strong>Selenium</strong> → Automate browsers for JS-heavy sites</li><li><strong>Playwright</strong> → Modern browser automation</li><li><strong>lxml</strong> → Fast HTML/XML parsing</li><li><strong>pandas.read_html()</strong> → Scrape tables easily</li></ul><blockquote><em>Always respect a website’s </em><em>robots.txt and terms of service.</em></blockquote><h3>🚀 Mini Project: Scraping Quotes by Tag</h3><p>Let’s build a real scraper using this site:<br> 👉 <a href="https://quotes.toscrape.com/tag/simile/">https://quotes.toscrape.com/tag/simile/</a></p><h3>🎯 Goal</h3><p>Extract:</p><ul><li>Quote text</li><li>Author name</li><li>Author profile link</li></ul><p>Handle pagination and save everything to a CSV file.</p><h3>🛠️ Setup</h3><pre>pip install requests beautifulsoup4</pre><h3>🧪 The Complete Script</h3><pre>import requests<br>from bs4 import BeautifulSoup<br>import csv<br>BASE_URL = &quot;https://quotes.toscrape.com&quot;<br>url = BASE_URL + &quot;/tag/simile/&quot;<br>quotes_data = []<br>while url:<br>    response = requests.get(url)<br>    soup = BeautifulSoup(response.text, &quot;html.parser&quot;)<br>    quotes = soup.find_all(&quot;div&quot;, class_=&quot;quote&quot;)<br>    for q in quotes:<br>        text = q.find(&quot;span&quot;, class_=&quot;text&quot;).text<br>        author = q.find(&quot;small&quot;, class_=&quot;author&quot;).text<br>        author_link = BASE_URL + q.find(&quot;a&quot;)[&quot;href&quot;]<br>        quotes_data.append({<br>            &quot;quote&quot;: text,<br>            &quot;author&quot;: author,<br>            &quot;author_link&quot;: author_link<br>        })<br>    next_btn = soup.find(&quot;li&quot;, class_=&quot;next&quot;)<br>    if next_btn:<br>        url = BASE_URL + next_btn.find(&quot;a&quot;)[&quot;href&quot;]<br>    else:<br>        url = None<br>with open(&quot;simile_quotes.csv&quot;, &quot;w&quot;, newline=&quot;&quot;, encoding=&quot;utf-8&quot;) as f:<br>    writer = csv.DictWriter(f, fieldnames=[&quot;quote&quot;, &quot;author&quot;, &quot;author_link&quot;])<br>    writer.writeheader()<br>    writer.writerows(quotes_data)<br>print(f&quot;Scraped {len(quotes_data)} quotes successfully!&quot;)</pre><h3>📂 Output</h3><p>A CSV file named <strong>simile_quotes.csv</strong> containing all scraped quotes with authors and profile links.</p><h3>✅ What You Learn from This Project</h3><ul><li>Sending HTTP requests with requests</li><li>Parsing HTML using BeautifulSoup</li><li>Using find() and find_all() effectively</li><li>Handling pagination</li><li>Saving structured data to CSV</li></ul><h3>📝 Final Thoughts</h3><p>Web scraping is a valuable skill for any Python developer. With just requests and BeautifulSoup, you can turn unstructured web pages into clean, usable data.</p><p>Once you’re comfortable with the basics, you can explore:</p><ul><li>Error handling &amp; retries</li><li>Headers and user agents</li><li>Async scraping</li><li>Integrating scrapers into APIs or Django apps</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=691f19fce941" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/%EF%B8%8F-mastering-web-scraping-in-python-with-requests-and-beautifulsoup-691f19fce941">🕷️ Mastering Web Scraping in Python with Requests and BeautifulSoup</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to Generate APK in React Native — All Options Explained (Beginner Friendly)]]></title>
            <link>https://javascript.plainenglish.io/how-to-generate-apk-in-react-native-all-options-explained-beginner-friendly-eb1b2a193098?source=rss-42e32f0c1bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb1b2a193098</guid>
            <category><![CDATA[react-native-cli]]></category>
            <category><![CDATA[apk-generation]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[mobile-app-deployment]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Rudra]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 07:10:23 GMT</pubDate>
            <atom:updated>2025-12-16T09:02:03.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>📱 How to Generate APK in React Native — All Options Explained (Beginner Friendly)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5auSJHpRHZAZz7fIUY8ChQ.png" /></figure><h3>Introduction</h3><p>So, you’ve built an amazing React Native app 😎, and now you want to <strong>see it running on an Android device</strong> or even publish it on the Play Store.</p><p>There are many ways to create an APK, but the <strong>React Native CLI method</strong> gives you <strong>full control</strong> over your build 💪. In this guide, I’ll walk you through everything, step by step, in a simple, beginner-friendly way.</p><h3>Why Use React Native CLI?</h3><p>Using the CLI might feel a bit technical at first, but it’s <strong>the most reliable way</strong> for production apps. Here’s why:</p><ul><li>✅ You get <strong>full control</strong> over the APK build</li><li>✅ Works <strong>offline</strong> once your environment is ready</li><li>✅ Perfect for <strong>production-ready apps</strong></li><li>✅ You learn how Android builds actually work — great for future projects!</li></ul><h3>What You Need Before We Start ✅</h3><p>Make sure you have:</p><ol><li><strong>Node.js &amp; React Native CLI</strong> installed</li><li><strong>Java JDK</strong> (version 11 recommended)</li><li><strong>Android Studio + Android SDK</strong> installed (for environment setup)</li><li>A <strong>React Native project</strong> ready to build</li></ol><h3>Step 1: Navigate to Your Project Folder</h3><p>Open your terminal and go to your project directory:</p><pre>cd your-project-name</pre><p>This is where all the magic begins ✨.</p><h3>Step 2: Generate a Release Keystore 🔑</h3><p>Android requires a <strong>keystore</strong> to sign your APK. Run this command:</p><pre>keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000</pre><ul><li>my-release-key.keystore → Your keystore file name</li><li>my-key-alias → Key alias (choose any name you like)</li><li>Save the <strong>password somewhere safe</strong> 📝 — you’ll need it later!</li></ul><p>Move this keystore file into your project folder:</p><pre>your-project-name/android/app/</pre><h3>Step 3: Configure Gradle for Signing ⚙️</h3><p>Open the file:</p><pre>android/app/build.gradle</pre><p>Inside the android block, add the signing configuration:</p><pre>signingConfigs {<br>    release {<br>        storeFile file(&quot;my-release-key.keystore&quot;)<br>        storePassword &quot;your-keystore-password&quot;<br>        keyAlias &quot;my-key-alias&quot;<br>        keyPassword &quot;your-key-password&quot;<br>    }<br>}<br>buildTypes {<br>    release {<br>        signingConfig signingConfigs.release<br>        minifyEnabled false<br>        shrinkResources false<br>        proguardFiles getDefaultProguardFile(&quot;proguard-android.txt&quot;), &quot;proguard-rules.pro&quot;<br>    }<br>}</pre><blockquote><em>⚠️ Replace passwords with the ones you set while creating the keystore. Keep them safe!</em></blockquote><h3>Step 4: Clean the Project (Optional but Recommended)</h3><p>Cleaning removes old build files and prevents errors:</p><pre>cd android<br>./gradlew clean</pre><h3>Step 5: Build the Release APK 🏗️</h3><p>Now comes the exciting part — building the APK!</p><pre>./gradlew assembleRelease</pre><blockquote><em>For Windows CMD:</em></blockquote><pre>gradlew assembleRelease</pre><p>This process may take a few minutes ⏳ depending on your computer.</p><h3>Step 6: Locate Your APK 📂</h3><p>Once the build is complete, you’ll find your <strong>release APK</strong> here:</p><pre>android/app/build/outputs/apk/release/app-release.apk</pre><p>This APK is ready to install on any Android device or upload to the Play Store 🎉.</p><h3>Step 7: Install APK on Your Device</h3><p>You can install the APK in two ways:</p><ol><li><strong>Manual installation</strong> — transfer it to your Android device and install.</li><li><strong>Using ADB</strong> — connect your device and run:</li></ol><pre>adb install android/app/build/outputs/apk/release/app-release.apk</pre><blockquote><em>Make sure </em><strong><em>USB debugging</em></strong><em> is enabled on your device 🔌.</em></blockquote><h3>Tips &amp; Tricks ✨</h3><ul><li>Consider building an <strong>Android App Bundle (AAB)</strong> for Play Store — smaller size and optimized installation.</li><li>Keep your <strong>keystore safe</strong>; losing it means you <strong>cannot update your app</strong> later.</li><li>Test the APK on <strong>multiple devices</strong> to avoid surprises.</li><li>For frequent builds, automate with simple scripts — saves time ⏱️.</li></ul><h3>Conclusion 🎯</h3><p>Using <strong>React Native CLI</strong> to generate your APK gives you <strong>full control</strong> and ensures your app is <strong>production-ready</strong>.</p><p>Follow these steps carefully, and soon you’ll have a <strong>working APK</strong> to test, share, or publish 🌎.</p><p>Happy coding and happy building! 🚀💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb1b2a193098" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-to-generate-apk-in-react-native-all-options-explained-beginner-friendly-eb1b2a193098">📱 How to Generate APK in React Native — All Options Explained (Beginner Friendly)</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>