<?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 Jeremiah Egemonye on Medium]]></title>
        <description><![CDATA[Stories by Jeremiah Egemonye on Medium]]></description>
        <link>https://medium.com/@jerryislive?source=rss-1bbf7af8e1fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uoD2yAlXgtc3vC7SZgkZAQ.jpeg</url>
            <title>Stories by Jeremiah Egemonye on Medium</title>
            <link>https://medium.com/@jerryislive?source=rss-1bbf7af8e1fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:26:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jerryislive/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[Setting Up Push Notifications in React Native with Expo Notifications and FCM (A Complete…]]></title>
            <link>https://javascript.plainenglish.io/setting-up-push-notifications-in-react-native-with-expo-notifications-and-fcm-a-complete-ea02b32ca175?source=rss-1bbf7af8e1fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea02b32ca175</guid>
            <category><![CDATA[fcm-push-notification]]></category>
            <category><![CDATA[expo-notifications]]></category>
            <category><![CDATA[push-notification]]></category>
            <dc:creator><![CDATA[Jeremiah Egemonye]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 10:34:16 GMT</pubDate>
            <atom:updated>2026-10-05T18:35:56.072Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting Up Push Notifications in React Native with Expo Notifications and FCM (A Complete Walkthrough)</h3><p><em>A step-by-step guide covering everything from Firebase setup to handling notifications in the foreground, background, and killed states.</em></p><h3>Introduction</h3><p>In this article, I’ll walk through exactly how I set up push notifications for my React Native app using expo-notifications and FCM from project configuration to sending your first real notification and handling it correctly in every app state.</p><p><strong>What you’ll learn:</strong></p><ul><li>How FCM and Expo’s push service fit together</li><li>Configuring app.json/app.config.js and EAS Build for push</li><li>Registering devices and storing push tokens</li><li>Requesting permissions</li><li>Handling notifications in foreground, background, and killed states</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q7jzeinPUq09UXjo" /><figcaption>Photo by <a href="https://unsplash.com/@nsnclicks?utm_source=medium&amp;utm_medium=referral">Saravanan Narayanan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>1. Understanding the Architecture First</h3><p>Before writing any code, it helps to understand what’s actually happening:</p><pre>Your Backend → Expo Push Service → FCM (Android) / APNs (iOS) → Device</pre><p>With Expo, you don’t talk to FCM directly from your backend. Instead:</p><ol><li>Your app registers with Expo and gets an <strong>Expo Push Token</strong>.</li><li>Your backend sends notifications to <strong>Expo’s push API</strong>, not FCM directly.</li><li>Expo’s servers forward the notification to FCM (Android) or APNs (iOS) on your behalf.</li></ol><p>This is the key thing that trips people up you still need to set up FCM (because Expo uses it under the hood for Android), but your backend never calls the FCM API directly unless you opt out of Expo’s push service entirely and go fully with @react-native-firebase/messaging. This guide covers the standard Expo-managed approach.</p><h3>2. Prerequisites</h3><ul><li>An Expo project using EAS Build (not Expo Go push notifications on Android require a custom dev client or a production build, since Expo Go’s push behavior is limited)</li><li>A Firebase project</li><li>expo-notifications, expo-device, and expo-constants installed</li></ul><pre>npx expo install expo-notifications expo-device expo-constants</pre><h3>3. Setting Up Firebase Cloud Messaging</h3><h3>3.1 Create a Firebase project</h3><p>Go to the <a href="https://console.firebase.google.com/">Firebase Console</a>, create a new project (or use an existing one), and add an Android app to it. Use your app’s package name (must match android.package in app.json exactly).</p><h3>3.2 Download google-services.json</h3><p>Once the Android app is registered, download the google-services.json file and place it in your project root:</p><pre>my-app/<br>  google-services.json<br>  app.json<br>  package.json</pre><h3>3.3 Reference it in app.json</h3><pre>{<br>    &quot;android&quot;: {<br>      &quot;package&quot;: &quot;com.yourcompany.yourapp&quot;,<br>      &quot;googleServicesFile&quot;: &quot;./google-services.json&quot;<br>    },<br>    &quot;plugins&quot;: [<br>      &quot;expo-notifications&quot;<br>    ]<br>}</pre><h3>3.4 Upload your FCM Server Key / Service Account to Expo</h3><p>Expo needs credentials to send notifications to FCM on your behalf. As of the newer FCM HTTP v1 API, you’ll generate a <strong>service account key</strong>, not the old legacy server key.</p><p>In Firebase Console: <strong>Project Settings → Service Accounts → Generate new private key</strong>. This downloads a JSON file.</p><p>Upload it via EAS CLI:</p><pre>eas credentials</pre><p>Select <strong>Android → Push Notifications: Manage your FCM API Key</strong>, then upload the service account JSON. This links your Expo project to FCM so Expo’s push service can deliver notifications on your behalf.</p><h3>4. Configuring the App</h3><h3>4.1 Add notification permissions and icon config (optional)</h3><pre>{<br>  &quot;expo&quot;: {<br>    &quot;notification&quot;: {<br>      &quot;icon&quot;: &quot;./assets/notification-icon.png&quot;,<br>      &quot;color&quot;: &quot;#0F172A&quot;<br>    }<br>  }<br>}</pre><p>Android requires a monochrome, transparent-background icon for the notification tray a full-color app icon will render as a solid white square.</p><h3>4.2 Rebuild with EAS</h3><p>Any native config change requires a new build this isn’t something you can test in Expo Go.</p><pre>eas build --profile development --platform android</pre><h3>5. Registering for Push Notifications and Getting a Token</h3><p>Here’s the core registration logic. This typically lives in a hook or a utility function called once on app start.</p><pre>import * as Notifications from &#39;expo-notifications&#39;;<br>import * as Device from &#39;expo-device&#39;;<br>import Constants from &#39;expo-constants&#39;;<br>import { Platform } from &#39;react-native&#39;;</pre><pre>export async function registerForPushNotificationsAsync() {<br>  let token;<br>  if (Platform.OS === &#39;android&#39;) {<br>    await Notifications.setNotificationChannelAsync(&#39;default&#39;, {<br>      name: &#39;default&#39;,<br>      importance: Notifications.AndroidImportance.MAX,<br>      vibrationPattern: [0, 250, 250, 250],<br>      lightColor: &#39;#FF231F7C&#39;,<br>    });<br>  }<br>  const { status: existingStatus } = await Notifications.getPermissionsAsync();<br>  let finalStatus = existingStatus;<br>  if (existingStatus !== &#39;granted&#39;) {<br>    const { status } = await Notifications.requestPermissionsAsync();<br>    finalStatus = status;<br>  }<br>  if (finalStatus !== &#39;granted&#39;) {<br>    throw new Error(&#39;Permission not granted for push notifications&#39;);<br>  }<br>  const projectId = Constants.expoConfig?.extra?.eas?.projectId;<br>  token = (<br>    await Notifications.getExpoPushTokenAsync({ projectId })<br>  ).data;<br>  return token;<br>}</pre><p>Call it once, then send the token to your backend:</p><pre>// App.js<br>useEffect(() =&gt; {<br>  registerForPushNotificationsAsync()<br>    .then((token) =&gt; {<br>      // Send this token to your backend, tied to the logged-in user<br>      api.post(&#39;/users/push-token&#39;, { token });<br>    })<br>    .catch((err) =&gt; console.warn(&#39;Push registration failed:&#39;, err.message));<br>}, []);</pre><p>A few things worth calling out:</p><ul><li>getExpoPushTokenAsync needs your <strong>EAS project ID</strong>, found in app.json under extra.eas.projectId or in eas.json.</li><li>Store the token against the user account, not the device but also handle the case where the same user logs in on multiple devices (store as an array, or a separate push_tokens table keyed by user ID and device ID).</li><li>Tokens can change (app reinstall, data clear, etc.), so re-register and re-sync on every app launch, not just first install.</li></ul><h3>6. Handling Notifications in the App</h3><p>By default, iOS won’t show a notification banner while the app is in the foreground unless you tell it to. Set a notification handler early ideally at the top of your entry file, outside any component.</p><pre>// index.js or App.js (top level, runs once)<br>import * as Notifications from &#39;expo-notifications&#39;;</pre><pre>Notifications.setNotificationHandler({<br>  handleNotification: async () =&gt; ({<br>    shouldShowAlert: true,<br>    shouldPlaySound: true,<br>    shouldSetBadge: false,<br>  }),<br>});</pre><h3>6.1 Listening for notification events</h3><pre>// hooks/useNotificationListeners.ts<br>import { useEffect, useRef } from &#39;react&#39;;<br>import * as Notifications from &#39;expo-notifications&#39;;</pre><pre>export function useNotificationListeners(onNotificationTapped) {<br>  const notificationListener = useRef();<br>  const responseListener = useRef();<br>  useEffect(() =&gt; {<br>    // Fired when a notification arrives while the app is foregrounded<br>    notificationListener.current = Notifications.addNotificationReceivedListener(<br>      (notification) =&gt; {<br>        console.log(&#39;Notification received:&#39;, notification);<br>      }<br>    );<br>    // Fired when the user taps a notification (foreground, background, or killed)<br>    responseListener.current = Notifications.addNotificationResponseReceivedListener(<br>      (response) =&gt; {<br>        const data = response.notification.request.content.data;<br>        onNotificationTapped?.(data);<br>      }<br>    );<br>    return () =&gt; {<br>      notificationListener.current?.remove();<br>      responseListener.current?.remove();<br>    };<br>  }, [onNotificationTapped]);<br>}</pre><p>Use onNotificationTapped for deep linking e.g. navigating to a specific transaction screen when the notification data includes a transactionId.</p><h3>6.2 Handling a killed-app launch from a notification tap</h3><p>If the app was fully closed and the user taps a notification to open it, you need to check for the initial notification response separately:</p><pre>useEffect(() =&gt; {<br>  Notifications.getLastNotificationResponseAsync().then((response) =&gt; {<br>    if (response) {<br>      const data = response.notification.request.content.data;<br>    }<br>  });<br>}, []);</pre><p>If you run into issues, the <a href="https://docs.expo.dev/push-notifications/overview/">Expo push notifications docs</a> and the eas credentials CLI output are usually the fastest way to figure out where the chain is broken.</p><p><em>Found this useful? Drop a comment if you hit a setup issue I didn’t cover, happy to help troubleshoot.</em></p><h3>Before you go</h3><ul><li>Please take a moment to like the post and follow the writer!</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea02b32ca175" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/setting-up-push-notifications-in-react-native-with-expo-notifications-and-fcm-a-complete-ea02b32ca175">Setting Up Push Notifications in React Native with Expo Notifications and FCM (A Complete…</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[The Evolution of Build Tools: How Native ES6 Support Changed Everything]]></title>
            <link>https://jerryislive.medium.com/the-evolution-of-build-tools-how-native-es6-support-changed-everything-1a04e3720ca1?source=rss-1bbf7af8e1fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a04e3720ca1</guid>
            <category><![CDATA[scalable-applications]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[scalable-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Jeremiah Egemonye]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 13:03:10 GMT</pubDate>
            <atom:updated>2026-01-31T13:03:10.414Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Remember when we couldn’t ship modern JavaScript without a complex build process? The landscape has transformed dramatically.</em></p><p><strong>Webpack</strong> dominated for years as the comprehensive bundler. It excelled at code splitting, asset management, and creating optimized production bundles. With trade offs like configuration complexity and slower development cycles.</p><p><strong>Rollup</strong> carved its niche with superior tree-shaking and cleaner output for libraries. It produced smaller bundles but required more manual configuration for full-featured applications.</p><p><strong>Gulp and Grunt</strong> gave us task automation before bundlers became sophisticated, letting us orchestrate transpilation, minification, and asset processing through pipelines.</p><h3>The Paradigm Shift: Native ES6 Support</h3><p>Here’s what changed the game: browsers now natively support ES6 modules, async/await, arrow functions, destructuring, and modern syntax. This wasn’t true in 2015.</p><p>With the advancement in modern day browsers, now the question is: <strong>Do we still need complex transpilation?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-U3-X2_1r3KEaFwI" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The New Wave: Leveraging Native Capabilities</h3><p><strong>Vite</strong> emerged as the poster child for this new era. It serves native ES modules during development (no bundling!), resulting in near-instant server starts and lightning-fast hot module replacement. Production builds use Rollup for optimization, but the dev experience is revolutionary.</p><h3>The Modern Trade-offs</h3><p><strong>Pros of modern tools:</strong></p><ul><li>Dramatically faster development cycles</li><li>Simpler configuration (or none at all)</li><li>Leveraging native browser capabilities reduces transformation overhead</li><li>Better developer experience with instant feedback</li></ul><p><strong>Cons to consider:</strong></p><ul><li>Legacy browser support still requires transpilation</li><li>Some advanced optimizations need traditional bundlers</li><li>Migrating existing projects can be complex</li><li>The ecosystem is still maturing for certain edge cases</li></ul><h3>The Real Insight</h3><p>The evolution isn’t about newer tools being universally “better.” It’s about alignment with the platform. As browsers gained ES6+ capabilities, our tools shed layers of complexity that existed purely to bridge the gap.</p><p>We’ve moved from “transform everything” to “transform only what’s necessary.” For modern applications targeting current browsers, that’s often very little.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a04e3720ca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Main Site to Subdomain: A Blog Migration experience]]></title>
            <link>https://javascript.plainenglish.io/from-main-site-to-subdomain-a-blog-migration-experience-3f8ada93f97a?source=rss-1bbf7af8e1fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f8ada93f97a</guid>
            <category><![CDATA[blogmigration]]></category>
            <category><![CDATA[site-migration]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jeremiah Egemonye]]></dc:creator>
            <pubDate>Wed, 07 Jan 2026 14:30:38 GMT</pubDate>
            <atom:updated>2026-01-07T14:45:03.343Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*37ibiehrw3TlWjeW" /><figcaption>Photo by <a href="https://unsplash.com/@christinhumephoto?utm_source=medium&amp;utm_medium=referral">Christin Hume</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you ever inherited a task that you assumed would be difficult and tedious, only to find it unexpectedly satisfying? That was me, when I was tasked with migrating our company blog off our main website and onto its very own subdomain. What I expected to be a chore turned into a rewarding, hands-on project and I learned a ton along the way.</p><h3>Why We Needed the Move</h3><p>Our blog was crammed into the main website, sharing resources with the landing page and slowing things down. This migration was done to improve faster loading times, better SEO, and the ability to grow independently.</p><h3>Planning the Migration</h3><p>Before touching any code, I made a checklist of dependencies and links that needed to remain intact. Migrating a blog isn’t just copying files you need to carefully untangle it from the main site.</p><p>The key steps I mapped out were:</p><ol><li>Extracting the blog code and assets.</li><li>Setting up a new environment for the blog.</li><li>Making sure navigation and internal links worked seamlessly.</li><li>Deploying to a subdomain with proper DNS and SSL configurations.</li></ol><p>This upfront planning made the actual migration far smoother.</p><h3>Building the Blog on Its Own Subdomain</h3><p>I chose <strong>Next.js</strong> to rebuild the standalone blog. It’s fast, SEO-friendly, and made structuring the blog much easier than trying to shoehorn it into the existing site.</p><p>The setup felt like designing a brand-new room. I could organize components, optimize performance, and ensure the user experience stayed consistent. The blog now had its own layout, faster load times, and cleaner architecture.</p><h3>Connecting Everything</h3><p>Migration doesn’t end at deployment you need smooth navigation between the main site and the blog. I rewrote the menus and navigation logic so that switching between the main site and subdomain felt seamless.</p><p>Think of it as matching the interior design across two rooms: different spaces, same cohesive experience.</p><h3>Deployment and DNS Setup</h3><p>Finally, I deployed the blog to Hostinger and configured it to run on a subdomain. This included:</p><ul><li>Updating DNS records</li><li>Setting up SSL certificates</li><li>Testing cross-browser and mobile compatibility</li></ul><p>Watching the blog go live independently was incredibly satisfying. No errors, just a clean, fast-loading site that could grow without restrictions.</p><h3>The Payoff</h3><p>The migration was a success. Our blog now loads faster, ranks better on Google, and can be updated without touching the main website. It’s easier for developers to work on, and the whole experience is smoother for readers.</p><p>What started as a mundane task turned into a genuinely enjoyable project. If you’re facing a similar migration, embrace it it’s challenging, but seeing everything click into place is incredibly rewarding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f8ada93f97a" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/from-main-site-to-subdomain-a-blog-migration-experience-3f8ada93f97a">From Main Site to Subdomain: A Blog Migration experience</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>