<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hugo Rus</title>
    <description>The latest articles on DEV Community by Hugo Rus (@hugo_rus_630dd942fcf7cc62).</description>
    <link>https://dev.to/hugo_rus_630dd942fcf7cc62</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4004016%2F5d302419-e375-4c77-b600-eeb065755471.png</url>
      <title>DEV Community: Hugo Rus</title>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hugo_rus_630dd942fcf7cc62"/>
    <language>en</language>
    <item>
      <title>9 Animated React Native Screens You Can Paste Into Your AI Agent (a Tour of gluestack Patterns)</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Wed, 02 Dec 2026 14:10:08 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/9-animated-react-native-screens-you-can-paste-into-your-ai-agent-a-tour-of-gluestack-patterns-7f6</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/9-animated-react-native-screens-you-can-paste-into-your-ai-agent-a-tour-of-gluestack-patterns-7f6</guid>
      <description>&lt;p&gt;gluestack.io quietly became something new over the weekend.&lt;/p&gt;

&lt;p&gt;The homepage used to be gluestack-ui, the component library. As of November 29 it's &lt;strong&gt;Patterns&lt;/strong&gt;: a catalog of complete mobile screens for Expo and React Native that you copy as a prompt and paste into your AI agent.&lt;/p&gt;

&lt;p&gt;Below are the screens worth knowing about, with one idea from each you can borrow for your own UI. First, the quick facts.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: &lt;a href="https://gluestack.io/blogs/introducing-the-new-gluestack?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=gluestack-patterns-launch&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;The new gluestack.io: mobile app designs your AI agent can copy&lt;/a&gt; by Sanket Sahu.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;68 screens&lt;/strong&gt;: 30 free, 38 Pro, across &lt;strong&gt;18 categories&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One file per screen&lt;/strong&gt;: plain React Native with Reanimated, safe-area insets, react-native-svg, lucide icons and (in most) expo-linear-gradient&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Light and dark mode&lt;/strong&gt; on every screen, edge to edge, and no UI kit required&lt;/li&gt;
&lt;li&gt;Type-checks on &lt;strong&gt;RN 0.85 and 0.88&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Works with &lt;strong&gt;Claude Code, Cursor, Codex, Lovable and RapidNative&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;gluestack-ui is still free and MIT licensed&lt;/strong&gt;; it just moved to &lt;code&gt;/ui&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How a screen gets into your app
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gluestack.io/patterns
        │
        ▼
  Browse → tap through the live demo (free screens)
        │
        ▼
  Copy prompt  ← packages + full source + fit-in notes
        │
        ▼
  Paste into your agent
        │
        ├─ installs dependencies
        ├─ writes the screen file
        ├─ renders it from a route
        └─ swaps sample data for yours
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The prompt also tells the agent to &lt;strong&gt;restyle the screen to match your project&lt;/strong&gt; while keeping the layout and animations. In gluestack's tests with Claude Code, a NativeWind app got Tailwind classes on its own tokens, a plain Expo app got its &lt;code&gt;useTheme&lt;/code&gt; hook and &lt;code&gt;ThemedText&lt;/code&gt;, and a gluestack-ui app got &lt;code&gt;Input&lt;/code&gt;, &lt;code&gt;Button&lt;/code&gt; and &lt;code&gt;Heading&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Without that line, the agent kept the screen's original styles. That's a useful prompting lesson even if you never use the catalog.&lt;/p&gt;

&lt;p&gt;Now for the tour.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Welcome carousel (free)
&lt;/h2&gt;

&lt;p&gt;Three slides driven by your swipe, not a timer. The illustrations parallax, the background gradient cross-fades per slide, and the Next button &lt;strong&gt;widens into "Get started"&lt;/strong&gt; on the last slide.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Steal this idea:&lt;/em&gt; tie animation progress to the gesture position, not to a timeout.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Sign in (free)
&lt;/h2&gt;

&lt;p&gt;This is the screen agents usually make worst, done properly. Labels float up as fields focus, the email field &lt;strong&gt;ticks when valid&lt;/strong&gt;, a wrong entry &lt;strong&gt;shakes the form&lt;/strong&gt;, and the button spins, then confirms.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Steal this idea:&lt;/em&gt; every state (focus, valid, error, loading, success) gets its own visual answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Boarding pass (free)
&lt;/h2&gt;

&lt;p&gt;A wallet-style pass that &lt;strong&gt;flips in 3D&lt;/strong&gt; to its back, with a drawn QR stub, a live boarding countdown, and a gate change that &lt;strong&gt;rolls the gate number&lt;/strong&gt; like a departures board.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Steal this idea:&lt;/em&gt; animate the data change itself, not just the container.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Wallet home (Pro)
&lt;/h2&gt;

&lt;p&gt;The balance &lt;strong&gt;rolls in digit by digit&lt;/strong&gt;, cards tilt toward your finger, and the weekly spending bars grow in.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Product detail (Pro)
&lt;/h2&gt;

&lt;p&gt;A full-bleed gallery that runs &lt;strong&gt;under the status bar&lt;/strong&gt;, a sliding size picker, and a buy bar where the bag badge bumps when you add an item.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Social feed (Pro)
&lt;/h2&gt;

&lt;p&gt;Story rings, a photo carousel, and &lt;strong&gt;double-tap to like&lt;/strong&gt; with a heart burst, the interaction every user expects and most generated feeds forget.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Fitness today (Pro)
&lt;/h2&gt;

&lt;p&gt;Three activity rings that sweep in while their numbers count up, a &lt;strong&gt;self-drawing ECG trace&lt;/strong&gt;, and a weekly chart you can inspect.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Streaming browse (Pro)
&lt;/h2&gt;

&lt;p&gt;A billboard hero with a slow drift, a top bar that &lt;strong&gt;turns solid as you scroll&lt;/strong&gt;, Top 10 rows with outlined numerals, and a preview sheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Ride booking (Pro)
&lt;/h2&gt;

&lt;p&gt;A drawn city map where &lt;strong&gt;the route draws itself in&lt;/strong&gt;, ride options in a draggable sheet, and a driver that drives to you once matched.&lt;/p&gt;

&lt;h2&gt;
  
  
  The full category list
&lt;/h2&gt;

&lt;p&gt;Authentication · onboarding · AI and chat · commerce · social feeds · media and entertainment · travel · food and delivery · health and fitness · lifestyle · learning · dashboards · finance · profile and settings · paywalls · lists and search · productivity · feedback states&lt;/p&gt;

&lt;h2&gt;
  
  
  "Wait, what about gluestack-ui?"
&lt;/h2&gt;

&lt;p&gt;It's still there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Free and MIT licensed&lt;/li&gt;
&lt;li&gt;Home page moved to &lt;code&gt;/ui&lt;/code&gt;; docs still live at &lt;code&gt;/ui/docs&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Every docs URL and old redirect still works&lt;/li&gt;
&lt;li&gt;Installs and the CLI are unchanged&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Patterns don't need gluestack-ui, but each pattern page lists the gluestack-ui components that can stand in for its primitives. Same team too: GeekyAnts builds gluestack-ui, NativeBase and RapidNative, and gluestack-ui was installed more than 240,000 times in the week before launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free:&lt;/strong&gt; the 30 free screens plus all gluestack-ui components&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro:&lt;/strong&gt; $6/month billed yearly ($72) for every Pro screen&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team:&lt;/strong&gt; $7.50 per seat per month, billed yearly&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Start with the three free ones above at &lt;a href="https://gluestack.io/patterns?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=gluestack-patterns-launch&amp;amp;utm_content=cta" rel="noopener noreferrer"&gt;gluestack.io/patterns&lt;/a&gt;. Free screens run live on their pages, so you can feel the animations before you copy anything.&lt;/p&gt;

&lt;p&gt;🚀 &lt;strong&gt;gluestack is launching on Product Hunt tomorrow (December 3).&lt;/strong&gt; If one of these screens saves you an afternoon, look for gluestack on Product Hunt and share your feedback.&lt;/p&gt;

&lt;p&gt;Which screen do you rebuild from scratch in every project? The team takes requests on GitHub, and I'm curious what everyone would ask for 👇&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Migrating an App Off Rocket.new (or Any AI App Builder): The Technical Checklist</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Mon, 30 Nov 2026 05:38:49 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/migrating-an-app-off-rocketnew-or-any-ai-app-builder-the-technical-checklist-5gmb</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/migrating-an-app-off-rocketnew-or-any-ai-app-builder-the-technical-checklist-5gmb</guid>
      <description>&lt;p&gt;AI app builders get you from idea to working app fast. Moving that app somewhere else is a different job: store identity, signing, user accounts, data, push notifications and in-app purchases all have to come across without your users noticing.&lt;/p&gt;

&lt;p&gt;This is the technical checklist for that move. I use Rocket.new as the example because people ask about it, but nothing here depends on one platform's internals, and I don't make claims about what any particular platform exports. Check your own account for that.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Export code, data, files and secrets &lt;strong&gt;before&lt;/strong&gt; you cancel anything.&lt;/li&gt;
&lt;li&gt;Your App Store and Google Play identity (bundle ID, package name, signing) decides whether you ship an &lt;strong&gt;update&lt;/strong&gt; (users, reviews and subscriptions stay) or a &lt;strong&gt;new app&lt;/strong&gt; (you start from zero).&lt;/li&gt;
&lt;li&gt;Passwords usually can't be exported in a usable form. Plan for password hash import, an email sign-in link on first login, or lazy migration.&lt;/li&gt;
&lt;li&gt;Remap IDs when you import data, keep a &lt;code&gt;legacy_id&lt;/code&gt; column, and verify row counts.&lt;/li&gt;
&lt;li&gt;Push tokens change when the app changes, so re-register on first launch.&lt;/li&gt;
&lt;li&gt;Release with TestFlight or internal testing, then a phased release or staged rollout, and keep the old backend running until enough users have updated.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. What should you export first?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Everything, before you change or cancel anything.&lt;/strong&gt; Treat this like a backup before surgery.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; if your plan allows it, download the full project export. Even code you won't run is a useful reference for business logic and edge cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; a full export of every table (SQL dump, CSV or JSON). Include tables you think you don't need, like audit logs and soft-deleted rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File storage:&lt;/strong&gt; every uploaded file, plus a mapping of each file's old URL to its record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth users:&lt;/strong&gt; whatever the platform allows, such as emails, user IDs, providers, created-at dates, and verification status.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets and integrations:&lt;/strong&gt; a list of every API key, webhook, OAuth app and third-party service. You'll rotate keys later, but you need the list now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshots of every screen and state:&lt;/strong&gt; empty states, errors, loading and permission prompts. They're your test cases for the rebuild.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Store metadata:&lt;/strong&gt; bundle ID, package name, current version and build numbers, in-app purchase product IDs, and deep link domains.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. How do you keep your App Store and Google Play identity?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ship the rebuilt app with the same bundle ID and package name, signed correctly, with higher build numbers. Then it's an update, not a new app.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Who owns the listing?
&lt;/h3&gt;

&lt;p&gt;If the app lives in &lt;strong&gt;your&lt;/strong&gt; Apple and Google developer accounts, you're in control. If it was published under someone else's account (the builder's or an agency's), request an app transfer to your own account first. Apple and Google both support transfers between developer accounts, and both have requirements, so start this early.&lt;/p&gt;

&lt;h3&gt;
  
  
  iOS
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bundle identifier must match&lt;/strong&gt; the live app exactly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signing:&lt;/strong&gt; the distribution certificate and provisioning profile come from &lt;em&gt;your&lt;/em&gt; Apple developer account. New certificates under the same account are fine. The bundle ID and team are what matter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;CFBundleVersion&lt;/code&gt; (build number) must be higher&lt;/strong&gt; than the latest build uploaded to App Store Connect, and &lt;code&gt;CFBundleShortVersionString&lt;/code&gt; is your user-facing version.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Android
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Package name must match&lt;/strong&gt; the live app exactly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signing:&lt;/strong&gt; if the app uses Play App Signing, Google holds the app signing key, and you sign uploads with an upload key. If you don't have the upload keystore, Google Play support can reset the upload key. If the app does &lt;strong&gt;not&lt;/strong&gt; use Play App Signing, you need the original keystore, or you can't publish updates to that listing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;versionCode&lt;/code&gt; must be higher&lt;/strong&gt; than the highest one ever uploaded.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  In an Expo project
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;app.json&lt;/strong&gt; (excerpt):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"expo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Your App"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"ios"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"bundleIdentifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"com.yourcompany.yourapp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"buildNumber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"120"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"android"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"package"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"com.yourcompany.yourapp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"versionCode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set &lt;code&gt;buildNumber&lt;/code&gt; and &lt;code&gt;versionCode&lt;/code&gt; above whatever is currently in the stores. If you build with EAS, you can let Expo manage build numbers remotely. The remote version starts from the value in your local config, so set it high enough first:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;eas.json&lt;/strong&gt; (excerpt):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"cli"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"appVersionSource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"remote"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"production"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"autoIncrement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To sign with credentials you already have (for example, the existing Android keystore), point EAS at them with a &lt;code&gt;credentials.json&lt;/code&gt; and keep the file out of git:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;credentials.json&lt;/strong&gt; (add it to &lt;code&gt;.gitignore&lt;/code&gt; and never commit it):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"android"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"keystore"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"keystorePath"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"android/keystores/release.keystore"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"keystorePassword"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"KEYSTORE_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"keyAlias"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"KEY_ALIAS"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"keyPassword"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"KEY_PASSWORD"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run &lt;code&gt;eas credentials&lt;/code&gt; to sync them to Expo's servers if you want EAS to manage them from then on.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. How do you move user accounts?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Decide early, because it's the part users feel most.&lt;/strong&gt; Your options depend on where accounts live.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Same auth provider, owned by you.&lt;/strong&gt; If the old app used an auth project in &lt;em&gt;your&lt;/em&gt; account (for example, your own Supabase or Firebase project), point the new app at it. Users don't notice anything. This is the best case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Password hash import.&lt;/strong&gt; Some providers let you export users with password hashes and import them elsewhere with the right hash settings (Firebase's CLI has &lt;code&gt;auth:export&lt;/code&gt; and &lt;code&gt;auth:import&lt;/code&gt;, for example). It only works if the old platform gives you hashes and the new provider supports that hash algorithm.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email sign-in link on first login.&lt;/strong&gt; Import emails and profiles, and have users confirm their email the first time they open the new version. It's the simplest and most reliable approach, at the cost of one extra step for users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lazy migration.&lt;/strong&gt; On first login, the new backend checks the credentials against the old system, and if they're valid, creates the account with a new password hash. This only works while the old system is still running, so it can't be your only plan if the old platform may go away.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Whichever you choose, &lt;strong&gt;existing sessions won't carry over.&lt;/strong&gt; Expect every user to sign in once after the update, and say so in your release notes and an in-app message.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. How do you migrate the data safely?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Import parents before children, remap IDs, keep the old IDs, and verify.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your new database will create new IDs, so every foreign key needs remapping. Keeping the old ID in a &lt;code&gt;legacy_id&lt;/code&gt; column makes debugging and re-runs much easier. Here's a backend-agnostic script that handles ordering, remapping and broken references. Plug in your own &lt;code&gt;insertRow()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/import-export.ts&lt;/span&gt;
&lt;span class="c1"&gt;// Usage: npx tsx scripts/import-export.ts --dry-run   (then without --dry-run)&lt;/span&gt;
&lt;span class="c1"&gt;// Imports exported JSON tables into a new backend, parents before children,&lt;/span&gt;
&lt;span class="c1"&gt;// remapping old IDs to new IDs and keeping the old ID in a legacy_id column.&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;readFile&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:fs/promises"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;TableSpec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;foreignKeys&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// column -&amp;gt; referenced table&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Order matters: a table must come after every table it references.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;TableSpec&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"users"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"export/users.json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"classes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"export/classes.json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"bookings"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"export/bookings.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;foreignKeys&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"users"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;class_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"classes"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Replace with your new backend's insert call. It must return the new row's ID.&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;insertRow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`insertRow() is not implemented yet (table: ${table}, keys: ${Object.keys(row).join(", ")})`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"--dry-run"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;idMap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// table -&amp;gt; oldId -&amp;gt; newId&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;main&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;tables&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Row&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"utf8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;idMap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;broken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;oldId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;refTable&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;foreignKeys&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;oldRef&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oldRef&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;oldRef&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;newRef&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;idMap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;refTable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oldRef&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;newRef&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;broken&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${oldId}.${column} -&amp;gt; ${refTable}:${String(oldRef)}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;newRef&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;continue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;newId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;DRY_RUN&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="sb"&gt;`dry-${oldId}`&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;insertRow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;legacy_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;oldId&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oldId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${table.name}: ${map.size}/${rows.length} rows ${DRY_RUN ? "would be " : ""}imported`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;broken&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`  ${broken.length} row(s) skipped with broken references, e.g. ${broken.slice(0, 3).join("; ")}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it with &lt;code&gt;--dry-run&lt;/code&gt; first. It reports how many rows would be imported per table and flags orphaned references, which old data almost always has.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Also check:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Files:&lt;/strong&gt; re-upload to the new storage and rewrite URL columns using your old-to-new mapping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timestamps and time zones:&lt;/strong&gt; confirm they're stored in the same time zone and format.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counts and spot checks:&lt;/strong&gt; compare row counts per table, then open real records in the app, including ones with images, links and related rows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run against a staging database first,&lt;/strong&gt; then production.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  5. What happens to push notifications?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Device tokens from the old app won't be valid for the new setup, so re-register on first launch.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;iOS:&lt;/strong&gt; an APNs key belongs to your Apple developer account and can be reused by the new build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android:&lt;/strong&gt; if you keep the same Firebase project, your Firebase Cloud Messaging configuration carries over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tokens:&lt;/strong&gt; if you change how the app handles notifications (for example, moving to Expo's push service), every device needs a new token. Request permission and register on first launch of the new version, and don't send critical messages until tokens have come back in.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  6. How do in-app purchases and payments carry over?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;In-app purchases belong to the store listing, so if you ship an update to the same listing with the same product IDs, subscribers stay subscribed.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the &lt;strong&gt;same product IDs&lt;/strong&gt; in the new build.&lt;/li&gt;
&lt;li&gt;Point any &lt;strong&gt;server-side receipt validation, store server notifications and webhooks&lt;/strong&gt; at your new backend.&lt;/li&gt;
&lt;li&gt;If you use a subscription service such as RevenueCat, keep the same project, and existing subscribers come with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Card payments&lt;/strong&gt; for physical goods or services (for example, through Stripe) stay in your own Stripe account. Update webhook endpoints and confirm which keys the new app uses.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. Do universal links and app links keep working?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Only if the files on your domain match the new build.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;iOS universal links:&lt;/strong&gt; the &lt;code&gt;apple-app-site-association&lt;/code&gt; file on your domain must list your team ID and bundle ID. If both stay the same, links keep working.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android App Links:&lt;/strong&gt; &lt;code&gt;assetlinks.json&lt;/code&gt; must list your package name and the SHA-256 fingerprint of the certificate Google uses to sign the app. With Play App Signing, that's Google's app signing key, not your upload key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom URL schemes:&lt;/strong&gt; use the same scheme in the new build so existing links in emails and QR codes still open the app.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  8. Should you continue from the exported code or rebuild?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Look at the export honestly before deciding.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Continue from the exported code if it's in a standard framework your team knows, it builds without the old platform's tooling, and the business logic is readable.&lt;/p&gt;

&lt;p&gt;Rebuild if the code depends on platform-specific SDKs or runtimes, won't build outside the platform, or would take longer to untangle than to recreate from your screenshots and data model.&lt;/p&gt;

&lt;p&gt;If you rebuild, an AI builder can get you a first version quickly. With RapidNative, for example, you upload screenshots of your existing screens, or describe the app, and get a React Native and Expo app with navigation, a database, sign-in, file storage and live updates. You test it on a real device by scanning a QR code, and on paid plans you can download the full Expo project as standard code with no proprietary runtime. That means you can set the bundle ID and package name from section 2 and build and ship it with your own EAS setup. If you'd rather not handle store submission yourself, its sister service LetsDeploy.It does that.&lt;/p&gt;

&lt;p&gt;Whatever you use, check the exit path &lt;em&gt;before&lt;/em&gt; you build: can you get standard code out, and does it run without the platform? That's the lesson most migrations teach.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. How do you release the new version without breaking things?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Test with real users first, roll out gradually, and keep the old backend running.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Beta:&lt;/strong&gt; TestFlight on iOS and an internal or closed testing track on Google Play. Include users with old accounts, active subscriptions and lots of data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phased release / staged rollout:&lt;/strong&gt; App Store phased release and Google Play staged rollout let you ship to a portion of users first. Watch crash reports, sign-in success rate and support emails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the old backend alive&lt;/strong&gt; until most active users are on the new version. Users who don't update straight away still need the old app to work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan a minimum-version check&lt;/strong&gt; in the new app, so you can ask users to update later if you need to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can't roll back a store release.&lt;/strong&gt; If something breaks, you fix it forward with a new build, which is another reason to roll out gradually.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  A checklist for choosing your next platform
&lt;/h2&gt;

&lt;p&gt;Before committing to any builder, ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Can I export &lt;strong&gt;standard code&lt;/strong&gt; that builds without the platform?&lt;/li&gt;
&lt;li&gt;[ ] Is there &lt;strong&gt;no proprietary runtime&lt;/strong&gt; my app depends on?&lt;/li&gt;
&lt;li&gt;[ ] Can I publish under &lt;strong&gt;my own&lt;/strong&gt; Apple and Google developer accounts?&lt;/li&gt;
&lt;li&gt;[ ] Do I own my &lt;strong&gt;data and auth&lt;/strong&gt;, with exports in standard formats?&lt;/li&gt;
&lt;li&gt;[ ] Can I bring my &lt;strong&gt;own signing credentials&lt;/strong&gt; and bundle IDs?&lt;/li&gt;
&lt;li&gt;[ ] What happens to my app if I &lt;strong&gt;stop paying&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;[ ] Can I test on &lt;strong&gt;real devices&lt;/strong&gt; during development?&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Will rebuilding my app reset my App Store reviews?&lt;/strong&gt;&lt;br&gt;
Not if you ship it as an update to the same listing: same bundle ID and package name, correct signing, and higher build numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I recover a lost Android keystore?&lt;/strong&gt;&lt;br&gt;
If your app uses Play App Signing, Google Play support can reset your upload key. If it doesn't, you can't publish updates to that listing without the original keystore.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do users need to sign in again after a migration?&lt;/strong&gt;&lt;br&gt;
Almost always, yes. Sessions don't carry over. With the same auth provider or a password hash import they use their existing password, otherwise they confirm by email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do subscriptions survive a rebuild?&lt;/strong&gt;&lt;br&gt;
Yes, if the new build is an update to the same listing and uses the same product IDs. Update your server-side validation and webhooks to the new backend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I use the exported code or rebuild?&lt;/strong&gt;&lt;br&gt;
Use the export if it's standard, builds independently and is readable. Rebuild if it depends on platform-specific runtimes. Either way, store identity and data migration work the same.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>mobile</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Why Your Supabase RLS Policies Are Slow (and 7 Fixes That Actually Work)</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:37:18 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/why-your-supabase-rls-policies-are-slow-and-7-fixes-that-actually-work-34i6</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/why-your-supabase-rls-policies-are-slow-and-7-fixes-that-actually-work-34i6</guid>
      <description>&lt;p&gt;RLS policies run as part of every query, so a policy that's fine on 1,000 rows can crawl on 1,000,000. The usual culprits: &lt;code&gt;auth.uid()&lt;/code&gt; evaluated once per row, missing indexes on the columns policies filter by, queries without explicit filters, policies that apply to roles they don't need to, joins inside policies and several overlapping permissive policies. Measure with &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt; as a real user, then apply the fixes below. Most are one-line changes.&lt;/p&gt;

&lt;p&gt;RLS is the right way to secure Supabase. But because policies are invisible in your queries, their cost is invisible too, until a list screen that took 50 ms in development takes seconds in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do RLS policies affect query performance?
&lt;/h2&gt;

&lt;p&gt;Postgres adds your policy's &lt;code&gt;using&lt;/code&gt; expression to every query on the table, like an extra &lt;code&gt;WHERE&lt;/code&gt; clause. That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The expression is evaluated as the query runs, potentially &lt;strong&gt;once per row&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Whatever it filters on needs an &lt;strong&gt;index&lt;/strong&gt;, like any &lt;code&gt;WHERE&lt;/code&gt; clause.&lt;/li&gt;
&lt;li&gt;Subqueries and joins inside policies run &lt;strong&gt;as part of every query&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the same rules that make SQL fast apply to policies. You just can't see them in your application code.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I measure RLS performance?
&lt;/h2&gt;

&lt;p&gt;Run the query &lt;strong&gt;as a real user&lt;/strong&gt;, because RLS doesn't apply to the &lt;code&gt;postgres&lt;/code&gt; role you use in the SQL editor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;begin&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="k"&gt;local&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="k"&gt;local&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jwt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;claims&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="s1"&gt;'{"sub":"USER-UUID","role":"authenticated"}'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;explain&lt;/span&gt; &lt;span class="k"&gt;analyze&lt;/span&gt;
&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="k"&gt;desc&lt;/span&gt; &lt;span class="k"&gt;limit&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;rollback&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for &lt;strong&gt;sequential scans&lt;/strong&gt; on large tables and for functions evaluated on every row. Also check Supabase's &lt;strong&gt;Performance Advisor&lt;/strong&gt; in the dashboard: it flags several of the problems below automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: Wrap &lt;code&gt;auth.uid()&lt;/code&gt; in a select
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Slow: auth.uid() can be called for every row&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;-- Fast: evaluated once per query and cached&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wrapping the function in &lt;code&gt;(select ...)&lt;/code&gt; lets Postgres treat the result as a constant for the whole query (an "initPlan"). The same applies to &lt;code&gt;auth.jwt()&lt;/code&gt; and to your own functions that don't depend on the row. This is the single most common fix, and the Performance Advisor flags it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: Index the columns your policies use
&lt;/h2&gt;

&lt;p&gt;If a policy filters on &lt;code&gt;user_id&lt;/code&gt;, &lt;code&gt;team_id&lt;/code&gt; or &lt;code&gt;org_id&lt;/code&gt;, that column needs an index, or every query scans the whole table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;index&lt;/span&gt; &lt;span class="n"&gt;projects_user_id_idx&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;index&lt;/span&gt; &lt;span class="n"&gt;projects_team_id_idx&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;team_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your app usually sorts or filters on other columns too, a composite index like &lt;code&gt;(user_id, created_at desc)&lt;/code&gt; can serve both the policy and the query.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 3: Add explicit filters to your queries
&lt;/h2&gt;

&lt;p&gt;Even though RLS already restricts rows, add the same filter in your query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Relies only on RLS&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'projects'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'*'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Faster: gives the planner a clear, indexable condition&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'projects'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'*'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'user_id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It looks redundant, but it helps the query planner pick the index instead of relying on the policy alone. RLS still protects the data either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 4: Specify roles in every policy
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Read own projects"&lt;/span&gt;
  &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt;
  &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;
  &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without &lt;code&gt;to authenticated&lt;/code&gt;, the policy applies to every role, including &lt;code&gt;anon&lt;/code&gt;, and is evaluated for requests that could never match. Naming the role skips it entirely for others.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 5: Rewrite joins inside policies
&lt;/h2&gt;

&lt;p&gt;Team-based policies often join the membership table to the row being checked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Slow: correlated subquery evaluated per row&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_members&lt;/span&gt;
    &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;team_members&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;projects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_id&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Flip it so the subquery runs once and produces a small set to match against:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Faster: get the user's teams once, then filter&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_members&lt;/span&gt;
    &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure &lt;code&gt;team_members&lt;/code&gt; has an index on &lt;code&gt;user_id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 6: Use a security definer function for complex checks
&lt;/h2&gt;

&lt;p&gt;When a check needs other RLS-protected tables, the nested policies run too, and they can be expensive or even recursive. A small &lt;code&gt;security definer&lt;/code&gt; function can do the check once without triggering them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="k"&gt;replace&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;user_team_ids&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;returns&lt;/span&gt; &lt;span class="n"&gt;setof&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt;
&lt;span class="n"&gt;language&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;
&lt;span class="n"&gt;stable&lt;/span&gt;
&lt;span class="n"&gt;security&lt;/span&gt; &lt;span class="n"&gt;definer&lt;/span&gt;
&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="n"&gt;search_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;
&lt;span class="k"&gt;as&lt;/span&gt; $$
  &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_members&lt;/span&gt;
  &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
$$&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Members read team projects"&lt;/span&gt;
  &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;
  &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;user_team_ids&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep these functions tiny, always set &lt;code&gt;search_path = ''&lt;/code&gt;, and make them answer questions only about the &lt;strong&gt;current&lt;/strong&gt; user, since they bypass RLS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 7: Merge overlapping permissive policies
&lt;/h2&gt;

&lt;p&gt;Policies are permissive by default: if a table has three &lt;code&gt;select&lt;/code&gt; policies for the same role, Postgres evaluates all three and allows the row if any passes. Each one adds cost to every query.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Three separate policies for the same role and action...&lt;/span&gt;
&lt;span class="c1"&gt;-- "Owners can read", "Team members can read", "Public projects are readable"&lt;/span&gt;

&lt;span class="c1"&gt;-- ...can often become one:&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Read projects"&lt;/span&gt;
  &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;projects&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;
  &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt;
    &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="n"&gt;is_public&lt;/span&gt;
    &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="n"&gt;team_id&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;user_team_ids&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Performance Advisor flags multiple permissive policies on the same table, role and action.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick RLS performance checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;auth.uid()&lt;/code&gt;, &lt;code&gt;auth.jwt()&lt;/code&gt; and row-independent functions wrapped in &lt;code&gt;(select ...)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Indexes on every column policies filter by.&lt;/li&gt;
&lt;li&gt;Explicit filters in client queries that match the policy.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;to authenticated&lt;/code&gt; (or the right role) on every policy.&lt;/li&gt;
&lt;li&gt;Subqueries that fetch the user's IDs once, not per row.&lt;/li&gt;
&lt;li&gt;Security definer helpers for checks across protected tables.&lt;/li&gt;
&lt;li&gt;One permissive policy per table, role and action where possible.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt; run as a real user on your heaviest screens.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Don't trade security for speed
&lt;/h2&gt;

&lt;p&gt;The tempting "fix" for a slow policy is loosening it, or using the service role key in the app. Both remove the protection RLS exists for. Every fix above keeps the same security rules and only changes how efficiently Postgres checks them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Slow RLS is almost always ordinary SQL performance in disguise: functions evaluated per row, missing indexes, unhelpful query shapes and too many policies. Measure as a real user, apply the seven fixes and re-run &lt;code&gt;EXPLAIN ANALYZE&lt;/code&gt;. Your policies stay just as strict, and your queries get fast again.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What was the slowest RLS policy you've fixed, and what was the cause? Share it in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>supabase</category>
      <category>postgres</category>
      <category>performance</category>
      <category>database</category>
    </item>
    <item>
      <title>ITMS-91053 Missing API Declaration: How to Add a Privacy Manifest to Your Expo App</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Fri, 20 Nov 2026 16:06:31 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/itms-91053-missing-api-declaration-how-to-add-a-privacy-manifest-to-your-expo-app-dpp</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/itms-91053-missing-api-declaration-how-to-add-a-privacy-manifest-to-your-expo-app-dpp</guid>
      <description>&lt;p&gt;ITMS-91053 means your app uses iOS APIs that Apple calls &lt;strong&gt;"required reason APIs"&lt;/strong&gt; (like &lt;code&gt;UserDefaults&lt;/code&gt; or file timestamps) without declaring &lt;em&gt;why&lt;/em&gt; in a &lt;strong&gt;privacy manifest&lt;/strong&gt; (&lt;code&gt;PrivacyInfo.xcprivacy&lt;/code&gt;). React Native apps almost always use some of them, through React Native itself or your dependencies. In Expo, you declare them under &lt;code&gt;ios.privacyManifests&lt;/code&gt; in your app config, choose the reason code that matches your real use, update dependencies that ship their own manifests and rebuild.&lt;/p&gt;

&lt;p&gt;You upload a build to App Store Connect, and an email arrives:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ITMS-91053: Missing API declaration - Your app's code in the "MyApp" file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app's privacy manifest...&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Apple has been enforcing this since May 2024, so a missing declaration can now stop a submission. The fix is configuration, and it takes a few minutes once you know where it goes.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;From &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=itms-91053&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, where we fix submission errors for AI-built and Expo apps.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a privacy manifest?
&lt;/h2&gt;

&lt;p&gt;A privacy manifest is a file in your iOS app (&lt;code&gt;PrivacyInfo.xcprivacy&lt;/code&gt;) that tells Apple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Which "required reason" APIs&lt;/strong&gt; your app uses, and &lt;strong&gt;why&lt;/strong&gt; (&lt;code&gt;NSPrivacyAccessedAPITypes&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What data&lt;/strong&gt; the app collects (&lt;code&gt;NSPrivacyCollectedDataTypes&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whether the app tracks users&lt;/strong&gt; and which domains are used for tracking (&lt;code&gt;NSPrivacyTracking&lt;/code&gt;, &lt;code&gt;NSPrivacyTrackingDomains&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;ITMS-91053 is about the first part.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are "required reason" APIs?
&lt;/h2&gt;

&lt;p&gt;These are iOS APIs that could be misused to fingerprint devices, so Apple requires you to state an approved reason for using them. The four categories React Native apps hit most often:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;API category&lt;/th&gt;
&lt;th&gt;Example use&lt;/th&gt;
&lt;th&gt;Common reason code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;NSPrivacyAccessedAPICategoryUserDefaults&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Storing app settings (AsyncStorage on iOS, many SDKs)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CA92.1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;NSPrivacyAccessedAPICategoryFileTimestamp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reading file creation or modification dates&lt;/td&gt;
&lt;td&gt;&lt;code&gt;C617.1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;NSPrivacyAccessedAPICategorySystemBootTime&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Measuring elapsed time&lt;/td&gt;
&lt;td&gt;&lt;code&gt;35F9.1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;NSPrivacyAccessedAPICategoryDiskSpace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Checking free space before writing files&lt;/td&gt;
&lt;td&gt;&lt;code&gt;E174.1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each reason code has a specific meaning. &lt;code&gt;CA92.1&lt;/code&gt;, for example, means "access user defaults to read and write information only accessible to the app itself". &lt;strong&gt;Pick the code that matches what your app actually does&lt;/strong&gt;, using Apple's list of required reason APIs in its documentation. Don't copy codes blindly; the declaration is a statement about your app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does my React Native app use these APIs?
&lt;/h2&gt;

&lt;p&gt;You probably never called &lt;code&gt;UserDefaults&lt;/code&gt; yourself. But:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React Native itself&lt;/strong&gt; uses several of these APIs internally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Popular libraries&lt;/strong&gt; (storage, device info, analytics, crash reporting) use them too.&lt;/li&gt;
&lt;li&gt;Apple scans the &lt;strong&gt;compiled app&lt;/strong&gt;, so any code in the binary counts, whoever wrote it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's why almost every React Native app needs at least a few declarations.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I add a privacy manifest in Expo?
&lt;/h2&gt;

&lt;p&gt;You don't create the &lt;code&gt;.xcprivacy&lt;/code&gt; file by hand. Add an &lt;code&gt;ios.privacyManifests&lt;/code&gt; section to &lt;code&gt;app.json&lt;/code&gt; (or &lt;code&gt;app.config&lt;/code&gt;), and Expo writes the manifest into the native project at build time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"expo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"ios"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"privacyManifests"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"NSPrivacyAccessedAPITypes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
          &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPIType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NSPrivacyAccessedAPICategoryUserDefaults"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPITypeReasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CA92.1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPIType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NSPrivacyAccessedAPICategoryFileTimestamp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPITypeReasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"C617.1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPIType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NSPrivacyAccessedAPICategorySystemBootTime"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPITypeReasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"35F9.1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPIType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NSPrivacyAccessedAPICategoryDiskSpace"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nl"&gt;"NSPrivacyAccessedAPITypeReasons"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"E174.1"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Only include the categories listed in your ITMS-91053 email&lt;/strong&gt; (or that you know your app uses), each with the reason that applies to you. Then rebuild:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;eas build --platform ios --profile production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A privacy manifest is native configuration, so it can't be delivered as an over-the-air update.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I check the generated manifest?
&lt;/h2&gt;

&lt;p&gt;Generate the native project locally and look at the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx expo prebuild --clean --platform ios
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;ios/&amp;lt;YourApp&amp;gt;/PrivacyInfo.xcprivacy&lt;/code&gt;. It should contain the entries from your config. (If your &lt;code&gt;ios/&lt;/code&gt; folder isn't committed, delete it again afterwards.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What about third-party SDKs?
&lt;/h2&gt;

&lt;p&gt;Apple maintains a list of &lt;strong&gt;commonly used third-party SDKs&lt;/strong&gt; that must include their &lt;strong&gt;own&lt;/strong&gt; privacy manifest (and, for some, a signature) inside the SDK. If an SDK on that list is outdated, your submission can be flagged even if your app's manifest is complete.&lt;/p&gt;

&lt;p&gt;The fix:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Update your dependencies.&lt;/strong&gt; Most maintained libraries added privacy manifests in 2024.&lt;/li&gt;
&lt;li&gt;In Expo projects, use &lt;code&gt;npx expo install --fix&lt;/code&gt; to move Expo-managed packages to versions that match your SDK.&lt;/li&gt;
&lt;li&gt;For anything still flagged, check the library's issues and release notes for privacy manifest support, or replace it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Is this the same as App Privacy labels?
&lt;/h2&gt;

&lt;p&gt;No, and it's easy to mix them up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The privacy manifest&lt;/strong&gt; lives inside your app binary and declares API reasons, data collection and tracking at the code level.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App Privacy labels&lt;/strong&gt; are the answers you fill in on App Store Connect, shown to users on your store page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They should tell the same story. If your manifest says you collect crash data for app functionality, your App Privacy answers should say so too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Still getting ITMS-91053 after adding the manifest:&lt;/strong&gt; you're likely uploading an old build. Check the build number and that the build was made after the config change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The email names a category you didn't declare:&lt;/strong&gt; add that category with the matching reason and rebuild.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The email mentions a specific SDK:&lt;/strong&gt; update or replace that dependency; your app-level manifest can't fix another SDK's missing one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not sure which reason fits:&lt;/strong&gt; read the reason descriptions in Apple's documentation for that category and choose the one that matches your real use.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Read which API categories the ITMS-91053 email lists.&lt;/li&gt;
&lt;li&gt;Add each category to &lt;code&gt;ios.privacyManifests&lt;/code&gt; with the correct reason code.&lt;/li&gt;
&lt;li&gt;Update dependencies (&lt;code&gt;npx expo install --fix&lt;/code&gt; for Expo packages).&lt;/li&gt;
&lt;li&gt;Rebuild with EAS and upload the new build.&lt;/li&gt;
&lt;li&gt;Confirm the next processing email has no missing API declarations.&lt;/li&gt;
&lt;li&gt;Make sure your App Privacy answers in App Store Connect tell the same story.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;ITMS-91053 looks alarming, but it's a declaration problem, not a code problem. React Native apps use a handful of "required reason" APIs, and Expo lets you declare them in a few lines of app config. Choose honest reasons, keep your dependencies current and rebuild.&lt;/p&gt;

&lt;p&gt;If you'd rather hand submission issues off, &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=itms-91053&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; takes Expo and AI-built apps through App Store and Google Play review until they're approved.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Which API category showed up in your ITMS-91053 email? Share it in the comments, along with the library that caused it if you found it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ios</category>
      <category>expo</category>
      <category>reactnative</category>
      <category>privacy</category>
    </item>
    <item>
      <title>OTA Update UX in Expo: How to Tell Users an Update Is Ready (Without Annoying Them)</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:35:48 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/ota-update-ux-in-expo-how-to-tell-users-an-update-is-ready-without-annoying-them-p0k</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/ota-update-ux-in-expo-how-to-tell-users-an-update-is-ready-without-annoying-them-p0k</guid>
      <description>&lt;p&gt;shipping an over-the-air update is only half the job. The other half is deciding &lt;strong&gt;when users actually get it&lt;/strong&gt;. Use silent updates on next launch for most changes, an "update ready" banner for meaningful fixes, and a forced update only when old versions are genuinely broken. The &lt;code&gt;useUpdates()&lt;/code&gt; hook from &lt;code&gt;expo-updates&lt;/code&gt; gives you everything you need to build all three.&lt;/p&gt;

&lt;p&gt;By default, &lt;code&gt;expo-updates&lt;/code&gt; checks for an update when the app launches, downloads it in the background, and applies it on the &lt;strong&gt;next&lt;/strong&gt; launch. That's safe and invisible, and it's also why your urgent fix seems to take forever to reach users: many people keep apps open in the background for days.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three strategies
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Silent (the default)
&lt;/h3&gt;

&lt;p&gt;The update downloads quietly and applies the next time the app starts fresh.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use it for:&lt;/strong&gt; copy changes, small fixes, styling, anything that can wait.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; zero interruption. &lt;strong&gt;Cons:&lt;/strong&gt; slow to reach people who rarely restart the app.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. "Update ready" banner
&lt;/h3&gt;

&lt;p&gt;When an update has downloaded, show a small, dismissible banner: "A new version is ready. Tap to restart." The user chooses when.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use it for:&lt;/strong&gt; bug fixes users would want, small features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt; fast for people who tap, never interrupts anyone mid-task.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Forced update
&lt;/h3&gt;

&lt;p&gt;Block the app until it restarts with the new version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use it for:&lt;/strong&gt; broken flows, security fixes, or a backend change old versions can't handle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt; it interrupts people. Use it rarely, or users learn to dread opening your app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check when the app comes back to the foreground
&lt;/h2&gt;

&lt;p&gt;The default check only runs at launch. Add a check when the app returns to the foreground, so long-running sessions also find updates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/updates/useForegroundUpdateCheck.ts&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'react'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;AppState&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'react-native'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'expo-updates'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;MIN_INTERVAL_MS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// at most every 15 minutes&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;useForegroundUpdateCheck&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;lastCheck&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useRef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;useEffect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__DEV__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// updates don't run in development&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AppState&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'change'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'active'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;lastCheck&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;MIN_INTERVAL_MS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;lastCheck&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;checkForUpdateAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isAvailable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchUpdateAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Never let an update check break the app&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The throttle matters: users switch apps constantly, and you don't need to hit the update server every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reusable update banner
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;useUpdates()&lt;/code&gt; tells you when an update is downloaded and waiting (&lt;code&gt;isUpdatePending&lt;/code&gt;). That's all a banner needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/updates/UpdateBanner.tsx&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useState&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'react'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Pressable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;View&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'react-native'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'expo-updates'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;UpdateBanner&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;isUpdatePending&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;useUpdates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;dismissed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;setDismissed&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;isUpdatePending&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;dismissed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;View&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"absolute bottom-6 left-4 right-4 flex-row items-center rounded-2xl bg-gray-900 p-4"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"flex-1 text-white"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="no"&gt;A&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Pressable&lt;/span&gt; &lt;span class="n"&gt;onPress&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setDismissed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"px-3 py-2"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text-gray-400"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Later&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Pressable&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Pressable&lt;/span&gt; &lt;span class="n"&gt;onPress&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Updates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reloadAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"rounded-xl bg-white px-3 py-2"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font-semibold text-gray-900"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nc"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Pressable&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;View&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Render it once in your root layout, together with the foreground check. If the user taps "Later", the update still applies on their next launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forced updates, done carefully
&lt;/h2&gt;

&lt;p&gt;A forced update needs a signal that says "this one is critical". Two common approaches:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A minimum version from your backend.&lt;/strong&gt; Your API returns the minimum supported app version or update ID. If the running app is older, show a blocking screen with one button that fetches and reloads. This also works for native store updates, where the button opens the store instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update metadata.&lt;/strong&gt; Include a marker in your update's message or metadata and read it when the update is available.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The backend approach is more flexible, because you can turn it on and off without publishing anything, and it works even when the problem is in a version that can't receive updates.&lt;/p&gt;

&lt;p&gt;Whatever you choose, keep the blocking screen honest and short: "This version needs an update to keep working. It takes a few seconds." and one button.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules of thumb
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Default to silent.&lt;/strong&gt; Most updates don't deserve the user's attention.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never reload without consent&lt;/strong&gt; unless the current version is broken.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't interrupt critical moments.&lt;/strong&gt; Hide the banner during checkout, recording or form entry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Throttle checks&lt;/strong&gt; on foreground.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Log the running update ID&lt;/strong&gt; in your crash reporting, so you know which update a problem came from.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Over-the-air updates are fast only if users actually receive them. Check on foreground, show a gentle banner for updates worth having, keep forced updates for genuine emergencies, and let everything else apply silently.&lt;/p&gt;

&lt;p&gt;If your app is built with &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=ota-update-ux&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt;, the exported Expo project supports &lt;code&gt;expo-updates&lt;/code&gt;, so you can drop these components straight in.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How does your app handle updates today: silent, banner or forced? Tell us in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>expo</category>
      <category>reactnative</category>
      <category>ux</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Native Google and Apple Sign-In in Expo with Supabase (No Browser Redirects)</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:16:00 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/native-google-and-apple-sign-in-in-expo-with-supabase-no-browser-redirects-1lag</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/native-google-and-apple-sign-in-in-expo-with-supabase-no-browser-redirects-1lag</guid>
      <description>&lt;p&gt;the smoothest social login in an Expo + Supabase app doesn't open a browser at all. Use the native sign-in sheet on each platform (&lt;code&gt;expo-apple-authentication&lt;/code&gt; for Apple, the Google Sign-In SDK for Google), take the &lt;strong&gt;ID token&lt;/strong&gt; it returns, and pass it to &lt;code&gt;supabase.auth.signInWithIdToken()&lt;/code&gt;. Most of the work is configuration: client IDs in Supabase, the right SHA-1 fingerprints on Android, and one setting for nonce errors on iOS.&lt;/p&gt;

&lt;p&gt;There are two ways to add Google or Apple login to a mobile app with Supabase:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Browser-based OAuth:&lt;/strong&gt; open a web page, sign in, redirect back to the app with a deep link.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native ID token sign-in:&lt;/strong&gt; show the platform's own sign-in UI, get an ID token, exchange it for a Supabase session.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first works, but users see a browser pop up, sometimes have to sign in again, and redirects can fail in ways that are hard to debug. The second feels like part of your app: a Face ID sheet for Apple, a native account picker for Google. This guide covers the second.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An Expo app using &lt;strong&gt;development builds&lt;/strong&gt; (both sign-in libraries include native code, so they won't run in Expo Go).&lt;/li&gt;
&lt;li&gt;A Supabase project with the client set up for mobile (session stored on device, &lt;code&gt;detectSessionInUrl: false&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;An Apple Developer account and a Google Cloud project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Part 1: Sign in with Apple
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Configure
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;In the Apple Developer portal, enable &lt;strong&gt;Sign in with Apple&lt;/strong&gt; for your app's identifier.&lt;/li&gt;
&lt;li&gt;In Supabase, open &lt;strong&gt;Authentication → Providers → Apple&lt;/strong&gt;, enable it and add your app's bundle identifier to the client IDs.&lt;/li&gt;
&lt;li&gt;Install the library and enable the capability:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx expo install expo-apple-authentication
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"expo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"ios"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"bundleIdentifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"com.yourcompany.yourapp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"usesAppleSignIn"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"plugins"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"expo-apple-authentication"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sign in
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/auth/apple.ts&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'expo-apple-authentication'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@/lib/supabase'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;signInWithApple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signInAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;requestedScopes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthenticationScope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;FULL_NAME&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthenticationScope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;EMAIL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;identityToken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'No identity token from Apple'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signInWithIdToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'apple'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;identityToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Apple only returns the name on the FIRST sign-in. Save it now or lose it.&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;given&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fullName&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;givenName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;given&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fullName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;given&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fullName&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;familyName&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Boolean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fullName&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Apple's official button so it matches Apple's guidelines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthenticationButton&lt;/span&gt;
  &lt;span class="n"&gt;buttonType&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthenticationButtonType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SIGN_IN&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;buttonStyle&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AppleAuthenticationButtonStyle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;BLACK&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;cornerRadius&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;styles&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;appleButton&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;onPress&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;signInWithApple&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The button needs an explicit height and width, so give it a style from &lt;code&gt;StyleSheet.create&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Android:&lt;/strong&gt; native Sign in with Apple is an iOS feature. On Android, either hide the Apple button or fall back to Supabase's browser-based Apple OAuth. Apple's requirement to offer it applies to your iOS app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Part 2: Native Google Sign-In
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Configure Google Cloud
&lt;/h3&gt;

&lt;p&gt;In Google Cloud Console, under &lt;strong&gt;APIs &amp;amp; Services → Credentials&lt;/strong&gt;, create OAuth client IDs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web client:&lt;/strong&gt; used by Supabase to verify tokens. You'll pass its ID to the SDK as &lt;code&gt;webClientId&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS client:&lt;/strong&gt; with your bundle identifier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android client:&lt;/strong&gt; with your package name and the &lt;strong&gt;SHA-1 fingerprint&lt;/strong&gt; of every key that signs your app (more on this below).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Supabase, open &lt;strong&gt;Authentication → Providers → Google&lt;/strong&gt;, enable it, and add the web client ID and secret, plus the iOS and Android client IDs in the authorized client IDs field.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx expo install @react-native-google-signin/google-signin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"expo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"plugins"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s2"&gt;"@react-native-google-signin/google-signin"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"iosUrlScheme"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"com.googleusercontent.apps.YOUR-IOS-CLIENT-ID"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;iosUrlScheme&lt;/code&gt; is your iOS client ID reversed, as shown in Google Cloud. Rebuild your development build after adding the plugin.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sign in
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/auth/google.ts&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;GoogleSignin&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@react-native-google-signin/google-signin'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@/lib/supabase'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;GoogleSignin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;configure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;webClientId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;iosClientId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;signInWithGoogle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;GoogleSignin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasPlayServices&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;GoogleSignin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Recent versions return { type, data }; check the version you installed&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// user cancelled&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;idToken&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;idToken&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;idToken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'No ID token from Google'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signInWithIdToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'google'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;idToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Older versions of the library return the user info directly (with &lt;code&gt;idToken&lt;/code&gt; at the top level). If you're upgrading, check the library's migration notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The errors everyone hits (and the fixes)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;DEVELOPER_ERROR&lt;/code&gt; on Android
&lt;/h3&gt;

&lt;p&gt;This almost always means the &lt;strong&gt;SHA-1 fingerprint&lt;/strong&gt; of the key that signed this build isn't registered on your Android OAuth client. The catch: your app may be signed by several keys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your &lt;strong&gt;local debug&lt;/strong&gt; key when running locally.&lt;/li&gt;
&lt;li&gt;Your &lt;strong&gt;EAS upload key&lt;/strong&gt; for builds from EAS (see it with &lt;code&gt;eas credentials&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Google Play's &lt;strong&gt;app signing key&lt;/strong&gt; for apps installed from Play (find it in Play Console under app integrity).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Register the SHA-1 for each one you use. A login that works in development and fails only after installing from Google Play is the classic sign that the Play signing key is missing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Nonce errors on iOS with Google
&lt;/h3&gt;

&lt;p&gt;On iOS, the Google SDK can include a nonce in the ID token, and Supabase's token verification may reject it. Supabase's Google provider settings include an option to skip the nonce check for this case. Read the security note in Supabase's docs before enabling it, and only enable it if you see this specific error.&lt;/p&gt;

&lt;h3&gt;
  
  
  "Unacceptable audience in id_token"
&lt;/h3&gt;

&lt;p&gt;The token was issued for a client ID that Supabase doesn't know. Add every client ID you use (web, iOS, Android) to the Google provider in Supabase.&lt;/p&gt;

&lt;h3&gt;
  
  
  Apple name is empty
&lt;/h3&gt;

&lt;p&gt;Apple only shares the name on the very first sign-in for your app. If you didn't save it then, the user can remove your app from their Apple ID's "Sign in with Apple" settings to make it ask again during testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Linking accounts
&lt;/h2&gt;

&lt;p&gt;If someone signs in with Google one day and Apple the next, using the same verified email, Supabase can link both identities to one user automatically. Two things break that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hide My Email.&lt;/strong&gt; Apple users who hide their email get a private relay address, so it won't match their Google email. They'll get a separate account unless you add manual linking in settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unverified emails.&lt;/strong&gt; Automatic linking relies on verified emails, which protects against account takeover.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If one account per person matters for your app, offer a "connected accounts" section in settings where signed-in users can link their other provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sign in with Apple is required on iOS&lt;/strong&gt; if you offer Google or other social login, and its button should be at least as prominent as Google's.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account deletion&lt;/strong&gt; must be available in the app. For users who signed in with Apple, revoke their Apple tokens as part of deleting the account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private relay emails:&lt;/strong&gt; if you send email, register your sending domain with Apple's private email relay service so messages reach "Hide My Email" users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test on real devices&lt;/strong&gt; with fresh accounts, including a build installed from TestFlight and from Google Play's internal testing track (that's where signing-key problems show up).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Native social sign-in is one of the biggest UX upgrades you can give an Expo app: no browser, no redirects, one tap. The code is short: get an ID token from the native SDK and pass it to &lt;code&gt;signInWithIdToken&lt;/code&gt;. The real work is configuration, so register every client ID and every signing key's SHA-1, save Apple's name on the first sign-in, and test from store builds before launch.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Which error cost you the most time: DEVELOPER_ERROR, nonce or audience? Share your fix in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>expo</category>
      <category>supabase</category>
      <category>reactnative</category>
      <category>authentication</category>
    </item>
    <item>
      <title>App Rejected Under Guideline 4.3 Spam? Why AI-Built and Template Apps Get It, and How to Fix It</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Tue, 17 Nov 2026 15:20:04 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/app-rejected-under-guideline-43-spam-why-ai-built-and-template-apps-get-it-and-how-to-fix-it-4cip</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/app-rejected-under-guideline-43-spam-why-ai-built-and-template-apps-get-it-and-how-to-fix-it-4cip</guid>
      <description>&lt;p&gt;a Guideline 4.3 rejection means Apple thinks your app is too similar to apps that already exist, or to other apps you submitted. It hits apps built from templates and AI app generators more often, because their code, design and descriptions can look like hundreds of others. The fix isn't to tweak a color. It's to make the app clearly distinct in what it does, how it looks and how it's described, make sure the right account submits it, and explain the differences to App Review.&lt;/p&gt;

&lt;p&gt;Few rejections feel as unfair as this one. Your app works. It has no bugs. And the review note says something like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Guideline 4.3(a) - Design - Spam&lt;/p&gt;

&lt;p&gt;We noticed your app shares a similar binary, metadata, and/or concept as apps submitted to the App Store by other developers, with only minor differences.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you built your app with an AI generator, a purchased template or a "no-code app in 5 minutes" service, this guide explains what's going on and what actually fixes it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this guide is from &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-3-spam&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, where we take AI-built apps through App Store review.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Guideline 4.3 actually says
&lt;/h2&gt;

&lt;p&gt;Guideline 4.3 is Apple's spam rule. In short:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;4.3(a):&lt;/strong&gt; don't submit several versions of the same app under different bundle IDs. If you have variations (one per city, team or client), Apple wants one app that handles the variations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4.3(b):&lt;/strong&gt; don't pile into a category that's already saturated with near-identical apps unless you bring something genuinely new.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reviewers also apply 4.3 when an app looks like a copy of apps from &lt;strong&gt;other&lt;/strong&gt; developers: the same code, the same screens, the same descriptions with a new name.&lt;/p&gt;

&lt;p&gt;There's a closely related rule, &lt;strong&gt;Guideline 4.2.6&lt;/strong&gt;: apps created from a commercialized template or an app generation service can be rejected unless they're submitted directly by the provider of the app's content. In plain English, Apple wants the business behind an app to publish it, not a template reseller publishing many near-identical apps for different clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why AI-built and template apps get it
&lt;/h2&gt;

&lt;p&gt;Apple's review combines automated checks and people, and both look for similarity. Template and generator apps are more likely to match because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The code is shared.&lt;/strong&gt; Many apps from the same template or generator have nearly identical binaries, frameworks and file structures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The design is default.&lt;/strong&gt; Untouched starter screens, color schemes and icons look like every other app from the same source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The metadata is generic.&lt;/strong&gt; AI-written descriptions like "the ultimate app to manage your tasks with ease" read like thousands of others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The concept is crowded.&lt;/strong&gt; Another to-do list, habit tracker, flashlight, quote app or AI chatbot with nothing new.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Someone else's history.&lt;/strong&gt; If a template or codebase was previously used by accounts Apple removed for spam, apps sharing that code can be flagged too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to fix a 4.3 rejection
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Make the app genuinely different
&lt;/h3&gt;

&lt;p&gt;This is the real fix. Ask yourself what your app does that the others don't, and make that obvious in the first minute of use. Strong differentiators:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A specific audience ("habit tracker for shift workers" instead of "habit tracker").&lt;/li&gt;
&lt;li&gt;A feature others don't have, front and center, not buried in settings.&lt;/li&gt;
&lt;li&gt;Your own content, data or service that only your business offers.&lt;/li&gt;
&lt;li&gt;Real integration with something specific: your hardware, your business, your community.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can't name a meaningful difference, Apple's reviewer can't either.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Remove the template fingerprints
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Redesign the screens:&lt;/strong&gt; your own layout, typography, colors, icon and onboarding. Don't ship the template's default screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete unused template features,&lt;/strong&gt; sample data and placeholder screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rename and restructure&lt;/strong&gt; generic code and assets that came with the starter, especially anything with the template's name in it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Changing a color or the app name isn't enough. Reviewers look at the whole app.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Rewrite your metadata by hand
&lt;/h3&gt;

&lt;p&gt;Rewrite your app name, subtitle, description and keywords in your own words, focused on your specific audience and differentiator. Take new screenshots that show your distinct features. Generic, AI-sounding descriptions are one of the easiest similarity signals to fix.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Make sure the right account submits it
&lt;/h3&gt;

&lt;p&gt;If you're publishing an app for a business, Guideline 4.2.6 means the &lt;strong&gt;business itself&lt;/strong&gt; should usually submit it, from its own Apple Developer account (ideally an organization account in the business's name). Agencies and freelancers can do the work, but the app should be published under the content owner's account, with the agency added as a team member.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Combine near-duplicate apps
&lt;/h3&gt;

&lt;p&gt;If you've submitted several similar apps (one per location, client or theme), combine them into one app that lets users choose, or that loads the right content per account. Several near-identical apps from one account is the core case 4.3 exists for.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reply to App Review
&lt;/h2&gt;

&lt;p&gt;After making real changes, reply in App Store Connect and explain them specifically. Reviewers respond much better to concrete differences than to "our app is unique".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A reply you can adapt:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Thank you for the review. We've made substantial changes to address Guideline 4.3:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[App name] is built specifically for [audience], and its core feature, [feature], is not offered by similar apps. It's now the first thing users see after sign-up.&lt;/li&gt;
&lt;li&gt;We redesigned all screens, the app icon and onboarding, and removed unused template features and sample content.&lt;/li&gt;
&lt;li&gt;We rewrote the description and screenshots to reflect the app's specific purpose.&lt;/li&gt;
&lt;li&gt;The app is published by [business name], the owner of its content and service.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We'd be happy to provide more detail or a walkthrough if helpful.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you believe the rejection was a genuine mistake, for example your app is the original that others copied, you can appeal to the &lt;strong&gt;App Review Board&lt;/strong&gt;. Include evidence: your launch history, your business and what's unique. Appeals work best when the app really is distinct.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to avoid 4.3 from the start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Start from your audience and differentiator,&lt;/strong&gt; not from a template category.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat templates and AI output as a starting point,&lt;/strong&gt; not a finished design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write your own copy&lt;/strong&gt; for the store listing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Publish under the content owner's account.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship one app with variations,&lt;/strong&gt; never many clones.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I use an AI app builder or template at all?&lt;/strong&gt; Yes. Thousands of approved apps started that way. The rejection is about the final app being too similar to others, not about how it was built.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will changing the app name and icon fix it?&lt;/strong&gt; Rarely. Reviewers look at functionality, design and metadata together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long does a 4.3 fix take?&lt;/strong&gt; It depends on how different the app needs to become. Metadata and design changes can take days; rethinking a crowded concept takes longer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Google Play have a similar rule?&lt;/strong&gt; Yes. Google Play's spam and minimum functionality policies can also reject repetitive or template-like apps, so the same fixes apply there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Guideline 4.3 isn't about how you built your app. It's about whether it's clearly different from what's already in the store. Give it a specific audience and a real differentiator, remove template fingerprints, write your own metadata, publish from the right account and explain the changes clearly. That turns "spam" back into "approved".&lt;/p&gt;

&lt;p&gt;If you'd rather have help, &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-3-spam&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; takes AI-built apps through App Store review and handles rejections until they're approved.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Got a 4.3 rejection right now? Share (anonymized) what your app does in the comments, and we'll suggest how to make it stand out.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ios</category>
      <category>appstore</category>
      <category>mobile</category>
      <category>ai</category>
    </item>
    <item>
      <title>App Store Screenshots and ASO for AI-Built Apps: A Developer's Guide to Listings That Convert</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Thu, 12 Nov 2026 12:56:49 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/app-store-screenshots-and-aso-for-ai-built-apps-a-developers-guide-to-listings-that-convert-30e7</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/app-store-screenshots-and-aso-for-ai-built-apps-a-developers-guide-to-listings-that-convert-30e7</guid>
      <description>&lt;p&gt;your store listing does more selling than your app does, because most people decide from the first three screenshots without ever opening it. Capture screenshots from a simulator or emulator with a clean status bar and realistic data, give each one a short benefit caption, put your strongest feature first, and use every character of your title, subtitle and keyword fields without repeating words. Keep everything accurate to the real app, or review will send it back.&lt;/p&gt;

&lt;p&gt;You spent weeks building the app with AI and an afternoon on the listing. That's the usual ratio, and it's backwards for the first month after launch: until you have reviews and word of mouth, the listing is almost the only thing deciding whether people download.&lt;/p&gt;

&lt;p&gt;This guide is the developer's version of App Store Optimization (ASO): concrete specs, scripts to capture screenshots consistently, and the metadata rules that actually affect ranking.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this guide is from &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=aso-screenshots&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, where we prepare store listings as part of publishing AI-built apps.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How people actually see your listing
&lt;/h2&gt;

&lt;p&gt;On both stores, people meet your app in &lt;strong&gt;search results&lt;/strong&gt; first. There they see your icon, name, rating and, on the App Store, usually the first three portrait screenshots or your preview video. Most never scroll further.&lt;/p&gt;

&lt;p&gt;That means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Screenshot 1 must explain the app on its own.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screenshots 1 to 3 do most of the work.&lt;/strong&gt; The rest are for people already interested.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your title is doing double duty:&lt;/strong&gt; it's what people read and one of the strongest search signals.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The specs you need (and where to confirm them)
&lt;/h2&gt;

&lt;p&gt;Store requirements change with new devices, so treat these as a starting point and check what App Store Connect and Play Console show for your app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;App Store&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Up to 10 screenshots per device size and language.&lt;/li&gt;
&lt;li&gt;iPhone screenshots for the largest display size App Store Connect asks for; smaller sizes can be scaled from them.&lt;/li&gt;
&lt;li&gt;iPad screenshots too, if your app runs on iPad.&lt;/li&gt;
&lt;li&gt;Optional app previews (short videos), up to 3 per device size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Google Play&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2 to 8 phone screenshots (and tablet screenshots if you target tablets).&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;feature graphic&lt;/strong&gt;, 1024×500, required.&lt;/li&gt;
&lt;li&gt;An icon, 512×512.&lt;/li&gt;
&lt;li&gt;An optional promo video via YouTube.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Capturing clean screenshots from the command line
&lt;/h2&gt;

&lt;p&gt;Hand-made screenshots from your own phone show your real battery level, notifications and carrier. Capture from a simulator or emulator instead, with a fixed status bar and the same data every time.&lt;/p&gt;

&lt;h3&gt;
  
  
  iOS Simulator
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Boot the device you want (pick the size App Store Connect requires)&lt;/span&gt;
xcrun simctl boot &lt;span class="s2"&gt;"iPhone 16 Pro Max"&lt;/span&gt;
open -a Simulator

&lt;span class="c"&gt;# Clean status bar: 9:41, full battery, full signal&lt;/span&gt;
xcrun simctl status_bar booted override \
  --time &lt;span class="s2"&gt;"9:41"&lt;/span&gt; --batteryState charged --batteryLevel 100 \
  --cellularMode active --cellularBars 4 --wifiBars 3

&lt;span class="c"&gt;# Capture&lt;/span&gt;
xcrun simctl io booted screenshot ./screens/ios/01-home.png

&lt;span class="c"&gt;# Check the size before uploading&lt;/span&gt;
sips -g pixelWidth -g pixelHeight ./screens/ios/01-home.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Android Emulator
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Enable demo mode for a clean status bar&lt;/span&gt;
adb shell settings put global sysui_demo_allowed 1
adb shell am broadcast -a com.android.systemui.demo -e &lt;span class="nb"&gt;command&lt;/span&gt; enter
adb shell am broadcast -a com.android.systemui.demo -e &lt;span class="nb"&gt;command&lt;/span&gt; clock -e hhmm 0941
adb shell am broadcast -a com.android.systemui.demo -e &lt;span class="nb"&gt;command&lt;/span&gt; battery -e level 100 -e plugged &lt;span class="kc"&gt;false&lt;/span&gt;
adb shell am broadcast -a com.android.systemui.demo -e &lt;span class="nb"&gt;command&lt;/span&gt; notifications -e visible &lt;span class="kc"&gt;false&lt;/span&gt;

&lt;span class="c"&gt;# Capture&lt;/span&gt;
adb exec-out screencap -p &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ./screens/android/01-home.png

&lt;span class="c"&gt;# Exit demo mode afterwards&lt;/span&gt;
adb shell am broadcast -a com.android.systemui.demo -e &lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Make the data look real
&lt;/h3&gt;

&lt;p&gt;Empty states and "Test User 1" make an app look unfinished, and placeholder content is itself a common reason for rejection. Create a dedicated demo account with realistic names, photos and numbers, and capture every screenshot from it. Bonus: the same account doubles as the demo login App Review asks for.&lt;/p&gt;

&lt;p&gt;If you update screenshots often, automate the flow with an end-to-end tool like Maestro or fastlane's snapshot, so every release can regenerate them in the same states.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designing screenshots that convert
&lt;/h2&gt;

&lt;p&gt;Raw screenshots rarely convert as well as designed ones: a caption, a background and the screenshot inside a device frame or on its own. You can build them in Figma with a template, or with a screenshot generator.&lt;/p&gt;

&lt;h3&gt;
  
  
  One idea per screenshot
&lt;/h3&gt;

&lt;p&gt;Each screenshot should show &lt;strong&gt;one&lt;/strong&gt; benefit with &lt;strong&gt;one&lt;/strong&gt; short caption. A good sequence for a typical app:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The core promise:&lt;/strong&gt; the main screen with your main benefit. "Plan a week of dinners in 2 minutes."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it works:&lt;/strong&gt; the key action. "Pick what you like, we build the list."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The payoff:&lt;/strong&gt; the result. "Your shopping list, sorted by aisle."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A differentiator:&lt;/strong&gt; what competitors don't do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust or detail:&lt;/strong&gt; sync, privacy, widgets, dark mode.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Caption rules
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Benefits, not features.&lt;/strong&gt; "Never forget a bill" beats "Push notifications".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Short.&lt;/strong&gt; Aim for a few words people can read at thumbnail size in search results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Big text.&lt;/strong&gt; If you can't read it at the size of a search result on a phone, it's too small.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistent.&lt;/strong&gt; Same font, color, position and frame across all screenshots.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stay accurate
&lt;/h3&gt;

&lt;p&gt;App Review checks that screenshots show the app in use. Captions, backgrounds and frames are fine; mockups of features that don't exist, fake reviews or misleading claims are not. Don't show other platforms' devices or names in your App Store screenshots either.&lt;/p&gt;

&lt;h2&gt;
  
  
  Metadata: the fields that affect search
&lt;/h2&gt;

&lt;h3&gt;
  
  
  App Store
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App name (30 characters):&lt;/strong&gt; your brand plus your main keyword, such as "Mealy: Weekly Meal Planner". The strongest search field.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subtitle (30 characters):&lt;/strong&gt; a second keyword phrase that reads like a benefit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyword field (100 characters):&lt;/strong&gt; comma-separated, no spaces after commas, no words already in the name or subtitle (they're indexed already), no competitor brand names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Promotional text (170 characters):&lt;/strong&gt; shown above the description and editable without a new review, which makes it ideal for launches and updates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Description:&lt;/strong&gt; written for people, not search. Lead with the benefit and keep the first lines strong; most readers only see those before "more".&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Google Play
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Title (30 characters):&lt;/strong&gt; brand plus main keyword, as on iOS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Short description (80 characters):&lt;/strong&gt; shown prominently on the listing; make it a clear benefit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full description (4,000 characters):&lt;/strong&gt; Google uses this text for search, so include your main keywords naturally a few times. Don't stuff them; it reads badly and can violate Play's metadata policy.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Finding keywords
&lt;/h3&gt;

&lt;p&gt;Start with how real users describe the problem, not how you describe the product. Your support emails, reviews of competing apps and the store's own search suggestions (type a word into the store search and note the autocomplete) are free keyword research. Pick specific phrases you can realistically rank for over broad ones like "productivity".&lt;/p&gt;

&lt;h2&gt;
  
  
  After launch: test and iterate
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Test your screenshots.&lt;/strong&gt; Apple's product page optimization and Google's store listing experiments let you A/B test icons, screenshots and descriptions with real traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Localize.&lt;/strong&gt; Translating the listing (even before the app) can open new markets cheaply.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update with every meaningful release.&lt;/strong&gt; New feature, new screenshot. Outdated screenshots hurt conversion and accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch conversion, not just downloads.&lt;/strong&gt; Both consoles show how many listing visitors install. That's the number your screenshots control.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Listing mistakes that cause rejections or hurt installs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Screenshots with placeholder content or "lorem ipsum".&lt;/li&gt;
&lt;li&gt;Screenshots of features that aren't in the submitted build.&lt;/li&gt;
&lt;li&gt;Competitor names or trademarks in your keywords or title.&lt;/li&gt;
&lt;li&gt;Keywords repeated across the name, subtitle and keyword field (wasted characters).&lt;/li&gt;
&lt;li&gt;A first screenshot that's a logo or splash screen instead of the app.&lt;/li&gt;
&lt;li&gt;Tiny captions that are unreadable in search results.&lt;/li&gt;
&lt;li&gt;No iPad screenshots when the app runs on iPad.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A pre-submission checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Screenshots captured with a clean status bar and a realistic demo account.&lt;/li&gt;
&lt;li&gt;First three screenshots explain the app on their own.&lt;/li&gt;
&lt;li&gt;One benefit and one short caption per screenshot, consistent design.&lt;/li&gt;
&lt;li&gt;Required sizes for every device the app supports.&lt;/li&gt;
&lt;li&gt;Google Play feature graphic ready.&lt;/li&gt;
&lt;li&gt;Name and subtitle include your main keywords; keyword field has no repeats.&lt;/li&gt;
&lt;li&gt;Description leads with the benefit; Play description includes keywords naturally.&lt;/li&gt;
&lt;li&gt;Everything accurate to the build you're submitting.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The rest of what the stores require, from privacy forms to account deletion, is in our &lt;a href="https://letsdeploy.it/guides/lovable-launch-checklist-and-costs?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=aso-screenshots&amp;amp;utm_content=launch-checklist" rel="noopener noreferrer"&gt;launch checklist&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need a designer for store screenshots?&lt;/strong&gt; No. A template and the five-screenshot structure above get most apps a professional result. Spend the effort on screenshot 1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I use device frames?&lt;/strong&gt; It's a style choice. Frames look polished; frameless, full-bleed screenshots show more of the app. Pick one and stay consistent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I change screenshots after launch?&lt;/strong&gt; Yes. On the App Store, new screenshots go live with a new version or through product page optimization tests; on Google Play, you can update the listing anytime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the iOS description affect search ranking?&lt;/strong&gt; Apple relies mainly on the name, subtitle and keyword field for search. Write the description for people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Your listing is your app's landing page, and for most people it's the only part of your app they'll ever see. Capture clean, realistic screenshots with scripts you can rerun, lead with your strongest benefit, use every metadata character well and keep it all accurate to the build.&lt;/p&gt;

&lt;p&gt;If you'd rather hand off the listing along with the rest of the launch, &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=aso-screenshots&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; prepares screenshots, metadata and store requirements as part of taking AI-built apps through both stores. See &lt;a href="https://letsdeploy.it/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=aso-screenshots&amp;amp;utm_content=pricing" rel="noopener noreferrer"&gt;plans&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drop a link to your app's listing in the comments, and we'll suggest one improvement to your first screenshot.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ios</category>
      <category>android</category>
      <category>mobile</category>
      <category>marketing</category>
    </item>
    <item>
      <title>Mobile App Development Platform (MADP): The 2026 Guide</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Mon, 02 Nov 2026 05:56:32 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/mobile-app-development-platform-madp-the-2026-guide-24km</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/mobile-app-development-platform-madp-the-2026-guide-24km</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.rapidnative.com/blogs/mobile-app-development-platform?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=originally-published" rel="noopener noreferrer"&gt;rapidnative.com&lt;/a&gt; by Sanket Sahu.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What a mobile app development platform is, how the category went from MEAP to MADP to low-code to AI, and the eight questions that separate a good platform from an expensive detour.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you have ever sat through an enterprise software review, you have heard someone ask which mobile app development platform the company should standardize on. The question sounds simple. The answers rarely are, because the category has been renamed four times in fifteen years, and the tools sold under the label range from visual workflow builders to raw frameworks to, now, AI that writes the whole app from a paragraph of text.&lt;/p&gt;

&lt;p&gt;This guide untangles it. It covers what a mobile app development platform (MADP) actually is, where the term came from, the five kinds of platforms you will meet in 2026, and the questions that tell a good one from an expensive detour. We build &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt;, an AI mobile app builder, so we have a point of view, and we will be clear about where it fits and where it doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a mobile app development platform?
&lt;/h2&gt;

&lt;p&gt;A mobile app development platform (MADP) is a set of tools and services for designing, building, testing, publishing and maintaining mobile apps for iOS and Android from one place. A typical MADP combines a front-end builder or framework, backend services, integrations with existing systems, security controls, and a way to distribute and update apps once they are in people's hands.&lt;/p&gt;

&lt;p&gt;The key word is &lt;em&gt;platform&lt;/em&gt;. A framework like React Native or Flutter is one ingredient. A platform wraps the ingredients into a lifecycle: you start a project, connect data, give it to testers, ship it to the App Store and Google Play (or to employees' managed devices), and keep it updated, without assembling a dozen separate products yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  From MEAP to MADP to MXDP to LCAP: a short history
&lt;/h2&gt;

&lt;p&gt;Most of the vocabulary comes from analyst firms, chiefly Gartner, whose Magic Quadrant reports shaped how enterprises shopped for mobile tools. The names changed as the market did.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Era&lt;/th&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th&gt;What it described&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2008 to early 2010s&lt;/td&gt;
&lt;td&gt;MEAP, mobile enterprise application platform&lt;/td&gt;
&lt;td&gt;Middleware and tools to build and run internal apps for employees, often across BlackBerry, Windows Mobile and early iPhone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Around 2010&lt;/td&gt;
&lt;td&gt;MCAP, mobile consumer application platform&lt;/td&gt;
&lt;td&gt;The customer-facing sibling of MEAP, a short-lived separate category&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2012 to 2018&lt;/td&gt;
&lt;td&gt;MADP, mobile app development platform&lt;/td&gt;
&lt;td&gt;One category for employee and customer apps, as smartphones went mainstream&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2019 to early 2020s&lt;/td&gt;
&lt;td&gt;MXDP, multiexperience development platform&lt;/td&gt;
&lt;td&gt;Apps across mobile, web, wearables, chat and voice from one toolset&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2019 onward&lt;/td&gt;
&lt;td&gt;LCAP, enterprise low-code application platform&lt;/td&gt;
&lt;td&gt;Visual, model-driven platforms where mobile is one output among many&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2023 onward&lt;/td&gt;
&lt;td&gt;AI app builders&lt;/td&gt;
&lt;td&gt;Platforms that generate the app from natural language&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few details are worth knowing. Gartner coined MEAP in a 2008 Magic Quadrant, along with a "rule of three": a MEAP made sense once a company had three or more mobile apps, three or more mobile operating systems, or three or more backend systems to connect. The category was later renamed MADP to reflect that mobile had gone mainstream. In July 2019 Gartner published its first Magic Quadrant for Multiexperience Development Platforms, which superseded the MADP report. Its leaders were mostly low-code vendors: OutSystems, Mendix, Salesforce, Oracle, Progress and Kony.&lt;/p&gt;

&lt;p&gt;The vendors themselves moved too. Kony was acquired by Temenos in 2019, and its non-banking platform was licensed to HCL and relaunched as HCL Volt MX. OutSystems bought Ionic, the team behind Capacitor. Today most of the old MADP leaders are evaluated as enterprise low-code platforms, and "MADP" survives mainly as a search term and an RFP line item. That is useful to know: when someone asks you for a MADP, they usually mean "one supported way to build our mobile apps", not a specific product category.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a mobile app development platform includes
&lt;/h2&gt;

&lt;p&gt;Whatever the label, buyers expect a MADP to cover the full lifecycle of an app. In practice that breaks into six layers.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Front-end development.&lt;/strong&gt; How screens get built: visual drag and drop, a code framework, generated code, or a mix. This decides how the app looks and feels and how fast your team can change it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend services.&lt;/strong&gt; Data storage, sign-in, file storage, push notifications and realtime updates, often called mobile backend as a service (MBaaS). Some platforms bundle their own; others connect to Firebase, Supabase or your existing APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integration.&lt;/strong&gt; Connectors to the systems an enterprise already runs: identity providers, ERP and CRM, internal REST or GraphQL APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security and management.&lt;/strong&gt; Single sign-on, role-based access, data encryption, and support for mobile device management (MDM) or mobile application management (MAM) so IT can control company data on phones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing and distribution.&lt;/strong&gt; Previewing on real devices, beta testing, and publishing to the App Store and Google Play, or privately to employees through Apple Business Manager and managed Google Play.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lifecycle and updates.&lt;/strong&gt; Over-the-air updates, crash reporting, analytics, and a way to keep the app current as iOS and Android change every year.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No platform is best at all six. The useful question is which layers you want the platform to own, and which you want to keep in your own hands.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five types of mobile app development platforms in 2026
&lt;/h2&gt;

&lt;p&gt;The market has split into five approaches. They differ less in features than in two things: what they output, and what you are left holding if you leave.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;th&gt;What you get&lt;/th&gt;
&lt;th&gt;Who it suits&lt;/th&gt;
&lt;th&gt;The catch&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Native SDKs&lt;/td&gt;
&lt;td&gt;Xcode with Swift, Android Studio with Kotlin&lt;/td&gt;
&lt;td&gt;Two separate native codebases&lt;/td&gt;
&lt;td&gt;Teams with dedicated iOS and Android engineers&lt;/td&gt;
&lt;td&gt;Two of everything: code, bugs, hiring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cross-platform frameworks&lt;/td&gt;
&lt;td&gt;React Native, Flutter, Kotlin Multiplatform&lt;/td&gt;
&lt;td&gt;One codebase, native apps&lt;/td&gt;
&lt;td&gt;Product teams with mobile developers&lt;/td&gt;
&lt;td&gt;You still assemble backend, CI, distribution yourself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise low-code (LCAP)&lt;/td&gt;
&lt;td&gt;OutSystems, Mendix, Microsoft Power Apps, HCL Volt MX&lt;/td&gt;
&lt;td&gt;Visual apps on the vendor's runtime&lt;/td&gt;
&lt;td&gt;Large IT teams building many internal apps&lt;/td&gt;
&lt;td&gt;Per-user pricing and runtime lock-in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No-code builders&lt;/td&gt;
&lt;td&gt;FlutterFlow, Adalo, Glide&lt;/td&gt;
&lt;td&gt;Apps assembled visually, some with code export&lt;/td&gt;
&lt;td&gt;Small teams and simple apps&lt;/td&gt;
&lt;td&gt;Hand-building every screen; limits on custom logic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI app builders&lt;/td&gt;
&lt;td&gt;RapidNative for native mobile; Lovable, Bolt and v0 for web&lt;/td&gt;
&lt;td&gt;An app generated from a description&lt;/td&gt;
&lt;td&gt;Teams that want working software in days&lt;/td&gt;
&lt;td&gt;Quality depends on the output being real, ownable code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two observations from building in this space.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, the framework layer has been commoditized.&lt;/strong&gt; In 2012 a MADP's main job was solving cross-platform: write once, run on iOS, Android and BlackBerry. React Native and Flutter solved that for free. What a platform sells today is everything around the framework: speed, backend, governance, and the last mile into the stores.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, runtime lock-in is the real dividing line.&lt;/strong&gt; Many low-code and no-code platforms run your app inside their own engine. That is fine until pricing changes, a feature you need sits on their roadmap, or the company is acquired. Platforms that output standard source code give you an exit. We wrote more about this in our guide to avoiding vendor lock-in on the RapidNative blog.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to evaluate a mobile app development platform: 8 questions
&lt;/h2&gt;

&lt;p&gt;Feature matrices all look the same. These questions don't.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Is the output a native app or a website in a frame?
&lt;/h3&gt;

&lt;p&gt;Many tools that call themselves mobile platforms produce a web app wrapped in a web view. Users notice the scrolling, the keyboard, the lack of native gestures. Apple notices too: App Store Review Guideline 4.2 rejects apps that are "a repackaged website". Ask for a build on a real phone, not a desktop browser preview. For the longer version of this argument, see our post on native vs hybrid app development.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Can you leave with working source code?
&lt;/h3&gt;

&lt;p&gt;"Export" can mean a zip that still calls the vendor's runtime. Ask for the exported project, hand it to a developer who has never used the platform, and see whether they can build and run it with standard tools. If they can't, you are renting, not owning.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Where does the data live, and can you point it elsewhere?
&lt;/h3&gt;

&lt;p&gt;A bundled backend is great for speed. Check you can also connect your own database, identity provider and APIs, and that data can be exported in a standard format.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. How does it handle identity and device management?
&lt;/h3&gt;

&lt;p&gt;For internal apps: SSO through your identity provider, role-based access, and compatibility with your MDM or MAM tooling. For customer apps: sign-in methods, account deletion (which both stores now require), and privacy labels.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. How do apps reach users?
&lt;/h3&gt;

&lt;p&gt;Publishing is where many projects stall. Certificates, provisioning profiles, store listings, screenshots, privacy policies and review rejections take weeks if nobody on the team has done it. Ask the vendor to walk you through the path from "done" to "live in both stores", and to private distribution if you need it.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. How are updates shipped?
&lt;/h3&gt;

&lt;p&gt;Can you push a fix without a full store review? Frameworks like Expo support over-the-air updates for JavaScript changes within the store rules. Native changes still go through review.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Who on your team can use it?
&lt;/h3&gt;

&lt;p&gt;If only certified specialists can work in the tool, it becomes a bottleneck. The best platforms let a product manager or designer make real progress while engineers stay in control of the codebase.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. What does it cost at 10x the users?
&lt;/h3&gt;

&lt;p&gt;Per-user licensing that looks cheap for a 50-person pilot can be the biggest line item at 5,000 employees, or impossible for a consumer app. Model the price at the scale you are hoping for, not the scale you start at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where AI fits in mobile app development platforms
&lt;/h2&gt;

&lt;p&gt;The newest entrant changes the economics of question 7 and question 2 at the same time.&lt;/p&gt;

&lt;p&gt;Low-code made building faster by replacing code with visual blocks, at the cost of ownership. AI app builders make building faster by writing the code for you, which means the speed and the ownership no longer have to trade off. The catch is that most AI app builders generate web apps. For mobile, the output has to be a real native project, or you are back to the web-view problem in question 1.&lt;/p&gt;

&lt;p&gt;This is the gap we built &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=ai-section" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt; to fill. You describe the app, or upload a sketch, a screenshot or a product requirements document, and it generates a full-stack React Native and Expo app: screens, navigation, a database, sign-in, file storage and realtime updates. You scan a QR code to run it on your own phone while you build, and change it by chatting or by clicking an element and describing the change. On paid plans you download the complete Expo project, written in TypeScript with Expo Router and NativeWind, with no proprietary runtime. When the app is ready, &lt;a href="https://letsdeploy.it?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=rapidnative-madp-guide" rel="noopener noreferrer"&gt;LetsDeploy.It&lt;/a&gt;, our sister service, handles the App Store and Google Play submission.&lt;/p&gt;

&lt;p&gt;Mapped against the six layers above, that covers front-end, backend, testing and publishing, with your own Supabase or APIs plugged in where you need them. Teams also use it alongside an existing stack: generate the first version in days, then move the exported project into their own repository and CI. Larger teams can bring their design system so generated screens match their brand.&lt;/p&gt;

&lt;p&gt;It is not the right tool for everything. If you need to model hundreds of approval workflows across an ERP, an enterprise low-code platform with built-in process automation will serve you better. If you have a mature native team, a cross-platform framework and your existing CI may be all you need. AI-generated code is a starting point you own, not a replacement for engineering judgment on security and scale.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is MADP still the right term?
&lt;/h2&gt;

&lt;p&gt;Strictly, no. The analyst category moved on in 2019. But the need it named hasn't changed: one supported, governed way to get good mobile apps built and shipped. If an RFP asks for a MADP, answer the underlying questions above rather than the acronym. For the full list of acronyms you will run into (MEAP, MBaaS, LCAP, MXDP, MDM, MAM and the rest), see our enterprise mobile glossary and our enterprise mobile app development guide on the RapidNative blog.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;A mobile app development platform is less a product category than a promise: build once, ship to both stores, keep it running. Over fifteen years that promise has been sold as middleware, as cross-platform tooling, as low-code and now as AI. The best choice in 2026 is the one that gets a real native app on a real phone fastest, while leaving you holding source code you can take anywhere.&lt;/p&gt;

&lt;p&gt;The quickest way to judge any platform is to build one real screen of your own app with it. If you want to try that with RapidNative, &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=free-plan" rel="noopener noreferrer"&gt;start from a prompt on the free plan&lt;/a&gt;. Read the &lt;a href="https://www.rapidnative.com/blogs/mobile-app-development-platform?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=madp-guide&amp;amp;utm_content=end-cta" rel="noopener noreferrer"&gt;full guide on RapidNative&lt;/a&gt; for links to everything mentioned here.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>reactnative</category>
      <category>ai</category>
      <category>lowcode</category>
    </item>
    <item>
      <title>How to Turn Your App Idea Into a Real Mobile App With AI (Step-by-Step Guide for 2026) 📱✨</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Fri, 30 Oct 2026 13:01:27 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/how-to-turn-your-app-idea-into-a-real-mobile-app-with-ai-step-by-step-guide-for-2026-2k3d</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/how-to-turn-your-app-idea-into-a-real-mobile-app-with-ai-step-by-step-guide-for-2026-2k3d</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;You have an app idea. Maybe it's a habit tracker, a booking app for your business, or a tool your friends keep asking for. A few years ago, the next step was hiring a developer or spending months learning to code.&lt;/p&gt;

&lt;p&gt;In 2026, you can describe your app to an AI and have a working mobile app on your phone the same day. But "describe your app" hides a lot of small decisions, and those decisions are what separate an app that looks like a demo from one people actually use.&lt;/p&gt;

&lt;p&gt;This guide walks through the whole path, from a rough idea to an app in the App Store and Google Play, using &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=idea-to-mobile-app-ai&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt;, an AI app builder that creates real React Native mobile apps.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this guide is from the RapidNative team. The steps apply whichever tool you use.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Mobile app or web app? Decide first
&lt;/h2&gt;

&lt;p&gt;Before anything else, decide whether you need a mobile app or a website. Many popular AI builders, like Lovable, Bolt and v0, create web apps. They're great in a browser, but putting them in the App Store means converting them into native apps later.&lt;/p&gt;

&lt;p&gt;If you want people to download your app, get notifications and open it from their home screen, start with a builder that makes mobile apps from day one. RapidNative creates React Native apps built on Expo, the same technology many professional mobile teams use, so there's nothing to rebuild when it's time to launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Shrink your idea to one main job
&lt;/h2&gt;

&lt;p&gt;The most common reason AI-built apps feel messy is that the idea is too big. Before you write a single prompt, finish this sentence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"My app helps &lt;strong&gt;[who]&lt;/strong&gt; to &lt;strong&gt;[do one thing]&lt;/strong&gt;."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For example: "My app helps dog walkers keep track of which dogs they walked today and send owners a quick update."&lt;/p&gt;

&lt;p&gt;Everything else, like chat, payments or social features, can come later. A focused first version is faster to build, easier for the AI to get right and easier for your first users to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: List your screens
&lt;/h2&gt;

&lt;p&gt;Next, write down the 3 to 6 screens your app needs for that one job. For the dog walker app, that might be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Today:&lt;/strong&gt; the list of dogs to walk today.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Walk:&lt;/strong&gt; a timer and a button to mark the walk done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update:&lt;/strong&gt; a quick note and photo to send to the owner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dogs:&lt;/strong&gt; all dogs with owner contact details.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settings:&lt;/strong&gt; profile and notifications.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You don't need to design them. A rough sketch on paper, or even a screenshot of an app you like, gives the AI a much clearer picture. RapidNative can start from a sketch or screenshot as well as from words.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Write a prompt that gives the AI what it needs
&lt;/h2&gt;

&lt;p&gt;A good first prompt has four parts: who the app is for, the main job, the screens, and the look and feel. Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Build a mobile app for professional dog walkers.

Main job: keep track of today's walks and send owners a quick update.

Screens:
1. Today – list of dogs scheduled today, with photo, name and walk time
2. Walk – a big start/stop timer and a "Mark as done" button
3. Update – add a short note and a photo, then send to the owner
4. Dogs – all dogs with breed, owner name and phone number
5. Settings – profile and notification settings

Use a bottom tab bar for Today, Dogs and Settings.
Style: friendly and clean, white background, green accents, rounded cards, large buttons that are easy to tap while walking.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice what the prompt includes: real content, clear navigation and a style. The more specific you are, the less you'll need to fix later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Generate the first version
&lt;/h2&gt;

&lt;p&gt;Paste your prompt into &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=idea-to-mobile-app-ai&amp;amp;utm_content=step-4" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt; and let it build. In a few minutes you'll have your screens, navigation and styling as a working React Native app.&lt;/p&gt;

&lt;p&gt;Don't expect perfection on the first try. Think of it as a first draft from a fast designer and developer working together. Your job now is to review it like a user would.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Improve it one screen at a time
&lt;/h2&gt;

&lt;p&gt;The best way to refine an AI-built app is with small, specific requests, one change at a time. Compare these two:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Too vague:&lt;/strong&gt; "Make it better."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Specific:&lt;/strong&gt; "On the Today screen, show the walk time on the right side of each card and make the dog's name bold."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few more tips that save a lot of back and forth:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fix navigation first, then layout, then colors.&lt;/strong&gt; Moving screens around later can undo styling work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use real example content.&lt;/strong&gt; Real dog names and times reveal layout problems that "Lorem ipsum" hides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check every screen on a small phone.&lt;/strong&gt; Text that fits on a large screen often wraps badly on smaller ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 6: Connect real data
&lt;/h2&gt;

&lt;p&gt;So far your app shows example content. To make it work for real users, it needs somewhere to store data and a way for people to sign in. Many builders use a backend service like Supabase or Firebase for accounts, data and photo storage.&lt;/p&gt;

&lt;p&gt;Because RapidNative gives you standard React Native code, you can connect the backend you prefer, and export the code to keep working in your own editor or with a developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Test it on your own phone
&lt;/h2&gt;

&lt;p&gt;Nothing replaces holding your app in your hand. Because RapidNative apps are built on Expo, you can run them on a real phone during development. Use the app the way your users would: outside, one-handed, in a hurry.&lt;/p&gt;

&lt;p&gt;Then hand it to three or four people who match your "who" from Step 1. Watch them use it without explaining anything. Wherever they hesitate, there's something to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Prepare for the App Store and Google Play
&lt;/h2&gt;

&lt;p&gt;Launching takes a little paperwork, and planning for it early avoids surprises:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer accounts:&lt;/strong&gt; Apple's costs $99 a year and Google Play's costs $25 once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Store screenshots:&lt;/strong&gt; these sell your app before anyone opens it. &lt;a href="https://www.rapidnative.com/blogs/introducing-appshots-ai-app-store-screenshot-generator?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=idea-to-mobile-app-ai&amp;amp;utm_content=appshots" rel="noopener noreferrer"&gt;AppShots&lt;/a&gt; generates App Store screenshots with AI from your app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A privacy policy&lt;/strong&gt; describing what data you collect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account deletion&lt;/strong&gt; inside the app, if people can sign up. Both Apple and Google require it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sign in with Apple&lt;/strong&gt;, if you offer Google or other social login on iPhone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A closed test on Google Play:&lt;/strong&gt; new personal developer accounts need 12 testers for 14 days before they can publish.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 9: Launch, listen and update
&lt;/h2&gt;

&lt;p&gt;Your first version is a starting point. Once real people are using it, their feedback will tell you what to build next far better than any plan. Add one improvement at a time, using the same small, specific prompts from Step 5, and ship updates regularly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes to avoid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Building every feature at once.&lt;/strong&gt; Start with one main job and add the rest after launch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompting without screens in mind.&lt;/strong&gt; A list of screens turns a vague idea into a clear plan for the AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choosing a web builder when you need a mobile app.&lt;/strong&gt; Converting later costs time; starting mobile saves it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skipping real-phone testing.&lt;/strong&gt; Apps feel very different in your hand than in a preview.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Leaving store requirements until the end.&lt;/strong&gt; Account deletion and Sign in with Apple are much easier to add early.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I build a mobile app with AI without knowing how to code?&lt;/strong&gt; Yes. AI app builders like RapidNative let you create the screens, navigation and design by describing them. Some steps, like connecting a backend or publishing, are easier with a little technical help, but you can get a working app on your phone without writing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long does it take to build an app with AI?&lt;/strong&gt; A first working version can take an afternoon. A polished app ready for the stores usually takes a few days to a few weeks, depending on features and testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does it cost to build an app with AI?&lt;/strong&gt; Most AI builders have free plans or credits to start, plus paid plans for more usage. To publish, you'll also pay Apple $99 a year and Google $25 once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need a Mac to publish to the App Store?&lt;/strong&gt; Not necessarily. Expo's cloud build service can build and submit iPhone apps without a Mac.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I keep the code?&lt;/strong&gt; With RapidNative, yes. You get standard React Native and Expo code you can export and keep building on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Turning an idea into a real mobile app has never been more achievable. Keep the first version focused, plan your screens, write specific prompts, and test on a real phone before you launch. If your goal is an app people download from the App Store and Google Play, &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=idea-to-mobile-app-ai&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;start building with RapidNative&lt;/a&gt; and go from idea to app on your phone today.&lt;/p&gt;

&lt;p&gt;What app are you planning to build? Share your idea in the comments, and we'll suggest a first prompt for it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mobile</category>
      <category>beginners</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>App Rejected Under Guideline 4.8? How to Fix Login for AI-Built Apps</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Thu, 29 Oct 2026 12:57:39 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/app-rejected-under-guideline-48-how-to-fix-login-for-ai-built-apps-3hnp</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/app-rejected-under-guideline-48-how-to-fix-login-for-ai-built-apps-3hnp</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; your app lets people sign in with Google (or Facebook, GitHub, X) but doesn't offer a login option that keeps their data private. Apple's Guideline 4.8 says that if you offer a third-party login, you must also offer one that limits what you collect. Sign in with Apple is the quickest way to meet it, and for apps built with Lovable, Bolt, Base44 or v0 it usually takes an afternoon.&lt;/p&gt;

&lt;p&gt;AI app builders make it easy to add "Continue with Google". It works on the web, so nobody thinks about it again until the App Store review note arrives:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Guideline 4.8 - Design - Login Services&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Nothing in your app is broken. Apple just wants iPhone users to have a login option that doesn't hand their data to another company.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does Guideline 4.8 ask for?
&lt;/h2&gt;

&lt;p&gt;If your app uses a third-party or social login service to set up or sign in to the main account, you must also offer another login option with all three of these features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It only collects the person's name and email address.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It lets people keep their email address private&lt;/strong&gt; from everyone, including you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It doesn't track people for advertising&lt;/strong&gt; without their consent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sign in with Apple has all three built in. Since early 2024, Apple accepts any login service that meets them, but Sign in with Apple is still the one reviewers expect, and the only one that comes ready-made on every iPhone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do I have to use Sign in with Apple?
&lt;/h2&gt;

&lt;p&gt;Not strictly. Apple's wording asks for "another login service" with the three features above, so another provider that meets them counts. In practice, Sign in with Apple is the safest choice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reviewers recognize it immediately, so there's nothing to argue about.&lt;/li&gt;
&lt;li&gt;It uses Face ID or Touch ID, so it's the fastest login on an iPhone.&lt;/li&gt;
&lt;li&gt;Supabase, which most AI-built apps use for login, supports it out of the box.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Does email and password login count?
&lt;/h2&gt;

&lt;p&gt;Usually not as the fix. Your own email and password sign-up is your account system, not a login service with private email built in. The exemption for your own accounts only applies when your app &lt;strong&gt;only&lt;/strong&gt; uses them. Once you add Google login, Apple expects a private third-party option next to it. If you want to avoid Guideline 4.8 entirely, the other route is removing social login and keeping email and password only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which apps don't need it?
&lt;/h2&gt;

&lt;p&gt;Guideline 4.8 doesn't apply if your app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only uses your own email and password accounts, with no social login.&lt;/li&gt;
&lt;li&gt;Is an education or enterprise app where people sign in with an existing school or work account.&lt;/li&gt;
&lt;li&gt;Uses a government or industry-backed identity system, such as a national e-ID.&lt;/li&gt;
&lt;li&gt;Is a client for a specific third-party service, where people sign in to that service directly (for example, an app that reads their Google Drive files).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If none of those fit and you have Google login, plan on adding Sign in with Apple.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to add Sign in with Apple to a Supabase app
&lt;/h2&gt;

&lt;p&gt;Most apps built with Lovable, Bolt, Base44 or v0 store their users in Supabase, so here's the path for a native React Native and Expo app with Supabase.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Turn on the capability.&lt;/strong&gt; In your Apple Developer account, open Identifiers, select your app's App ID and enable &lt;strong&gt;Sign in with Apple&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn on the Apple provider in Supabase.&lt;/strong&gt; In Authentication, then Providers, enable Apple and add your app's bundle ID (for example &lt;code&gt;it.letsdeploy.myapp&lt;/code&gt;) to the Client IDs. If you also want Apple login on your website, create a Services ID and a signing key in Apple Developer and add those too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add the Expo package.&lt;/strong&gt; Install &lt;code&gt;expo-apple-authentication&lt;/code&gt; and set &lt;code&gt;"usesAppleSignIn": true&lt;/code&gt; under &lt;code&gt;ios&lt;/code&gt; in your &lt;code&gt;app.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add the button and sign in.&lt;/strong&gt; Show Apple's own button, then pass the token Apple gives you to Supabase:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="kd"&gt;as &lt;/span&gt;&lt;span class="nx"&gt;AppleAuthentication&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;expo-apple-authentication&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./supabase&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;signInWithApple&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;credential&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signInAsync&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;requestedScopes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="nx"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AppleAuthenticationScope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;FULL_NAME&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nx"&gt;AppleAuthentication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;AppleAuthenticationScope&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;EMAIL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;identityToken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;No identity token from Apple&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;signInWithIdToken&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;apple&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;identityToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Apple only sends the name the first time, so save it now&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;givenName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;supabase&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateUser&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
      &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;givenName&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;credential&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;familyName&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Test on a real iPhone&lt;/strong&gt; with a fresh Apple ID: sign in, choose "Hide My Email", and check the new user appears in Supabase.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On the web, Supabase handles Apple login with a redirect, the same way it does Google, so your Lovable or Bolt web version can keep working as it does.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mistakes that get apps rejected again
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Apple button is hidden or smaller.&lt;/strong&gt; Put Sign in with Apple at least as high and as large as Google on the login screen. Use Apple's official button style, not a custom one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The name is lost.&lt;/strong&gt; Apple sends the person's name only on the first sign-in. If you don't save it then, you'll never get it again, and your profile screens show blanks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Emails to "Hide My Email" users bounce.&lt;/strong&gt; People who hide their email get an address ending in &lt;code&gt;privaterelay.appleid.com&lt;/code&gt;. To send them emails (password resets, receipts), register your sending domain in Apple Developer under the private email relay settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account deletion doesn't revoke Apple tokens.&lt;/strong&gt; If you offer Sign in with Apple, Apple expects you to revoke the person's tokens when they delete their account. Our &lt;a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=account-deletion-guide" rel="noopener noreferrer"&gt;account deletion guide&lt;/a&gt; covers the full deletion flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to write back to App Review
&lt;/h2&gt;

&lt;p&gt;When you resubmit, add a short note in App Store Connect so the reviewer doesn't have to hunt:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Where it is:&lt;/strong&gt; "Sign in with Apple is now on the login screen, above Continue with Google."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What it offers:&lt;/strong&gt; "It collects only name and email and supports Hide My Email."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A demo account&lt;/strong&gt; in the App Review information, if parts of the app need a login to review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Apps rejected under 4.8 are often rejected for something else in the same review. The &lt;a href="https://letsdeploy.it/guides/lovable-app-rejected-guideline-4-2?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=guideline-4-2-guide" rel="noopener noreferrer"&gt;Guideline 4.2 guide&lt;/a&gt; covers the most common one for AI-built apps, and the &lt;a href="https://letsdeploy.it/guides/lovable-launch-checklist-and-costs?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=launch-checklist" rel="noopener noreferrer"&gt;launch checklist&lt;/a&gt; lists everything else Apple and Google ask for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can you fix it yourself?
&lt;/h2&gt;

&lt;p&gt;Yes. If you can edit your app's login screen and your Apple Developer settings, most people fix this in an afternoon.&lt;/p&gt;

&lt;p&gt;It gets harder when login touches several places: the native app, the web version, Supabase, the private email relay and account deletion. That's part of the store work we do when we convert an app to native, with steps for &lt;a href="https://letsdeploy.it/lovable-to-app-store?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=lovable" rel="noopener noreferrer"&gt;Lovable&lt;/a&gt;, &lt;a href="https://letsdeploy.it/bolt-new-to-app-store?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=bolt-new" rel="noopener noreferrer"&gt;Bolt.new&lt;/a&gt;, &lt;a href="https://letsdeploy.it/base44-to-app-store?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=base44" rel="noopener noreferrer"&gt;Base44&lt;/a&gt; and &lt;a href="https://letsdeploy.it/v0-to-app-store?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=v0" rel="noopener noreferrer"&gt;v0&lt;/a&gt;. See &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=how-it-works" rel="noopener noreferrer"&gt;how it works&lt;/a&gt; or our &lt;a href="https://letsdeploy.it/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=guideline-4-8-sign-in-with-apple&amp;amp;utm_content=pricing" rel="noopener noreferrer"&gt;plans&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is Sign in with Apple required if I only have email and password login?
&lt;/h3&gt;

&lt;p&gt;No. Guideline 4.8 only applies when you offer a third-party or social login, such as Google, Facebook or GitHub.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Sign in with Apple on Android too?
&lt;/h3&gt;

&lt;p&gt;No. Guideline 4.8 is an App Store rule. You can show the Apple button only on iOS and keep Google login on Android.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use Google login and nothing else?
&lt;/h3&gt;

&lt;p&gt;Not on the App Store, unless your app fits one of the exemptions. You need at least one login option with the three privacy features next to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will Apple reject a custom-styled Apple button?
&lt;/h3&gt;

&lt;p&gt;It can. Apple's design guidelines ask you to use their official button styles, and &lt;code&gt;expo-apple-authentication&lt;/code&gt; gives you those buttons ready-made.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Lovable add Sign in with Apple automatically?
&lt;/h3&gt;

&lt;p&gt;No. Lovable, Bolt, Base44 and v0 build web apps and usually add email and Google login. Sign in with Apple needs Apple Developer setup and, in a native app, the native sign-in sheet.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I fix this without a new build?
&lt;/h3&gt;

&lt;p&gt;No. Adding a login option changes the app, so you need a new build and a new submission. Expo's EAS Build makes that a single command once the code is in.&lt;/p&gt;

</description>
      <category>ios</category>
      <category>appstore</category>
      <category>supabase</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>The Complete Guide to Offline Storage in React Native (2026)</title>
      <dc:creator>Hugo Rus</dc:creator>
      <pubDate>Fri, 16 Oct 2026 11:57:33 +0000</pubDate>
      <link>https://dev.to/hugo_rus_630dd942fcf7cc62/the-complete-guide-to-offline-storage-in-react-native-2026-2bb8</link>
      <guid>https://dev.to/hugo_rus_630dd942fcf7cc62/the-complete-guide-to-offline-storage-in-react-native-2026-2bb8</guid>
      <description>&lt;p&gt;Pick the wrong storage library in React Native and your app stalls on launch. Pick the right one and it feels instant on a subway with no signal. Here's the 2026 landscape: what each option is good at, when to combine them, and the architecture that makes writes survive airplane mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  The six options, by job
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;AsyncStorage&lt;/strong&gt;: the classic default. A simple async key-value store. Fine for a handful of small preferences; slow for anything large, because every call is asynchronous and values are stored as serialized strings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MMKV&lt;/strong&gt;: Tencent's key-value engine, exposed to JavaScript through JSI with synchronous reads. Its README claims it's about 30x faster than AsyncStorage, and it supports optional encryption. For a new project in 2026, it's the go-to key-value store.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createMMKV&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-native-mmkv&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// v4 API&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;storage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createMMKV&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;prefs&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="nx"&gt;storage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;onboarded&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;onboarded&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;storage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getBoolean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;onboarded&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// synchronous&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;On MMKV v3, the equivalent is &lt;code&gt;new MMKV({ id: 'prefs' })&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Expo SecureStore&lt;/strong&gt;: a thin wrapper over the iOS Keychain and Android Keystore, encrypted by the OS. Slower than the others and meant for small values. Use it for refresh tokens and secrets only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;expo-sqlite&lt;/strong&gt;: full relational SQLite with a synchronous API. Indexes, joins, transactions. Comfortably handles large datasets on a modern phone.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;SQLite&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;expo-sqlite&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;SQLite&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;openDatabaseSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;app.db&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`
  CREATE TABLE IF NOT EXISTS notes (
    id TEXT PRIMARY KEY,
    body TEXT,
    updated_at INTEGER
  )
`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;since&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAllSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;SELECT * FROM notes WHERE updated_at &amp;gt; ?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;since&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;WatermelonDB&lt;/strong&gt;: an ORM on top of SQLite with reactive queries and a sync protocol. Reach for it when you have tens of thousands of records and two-way sync.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Realm&lt;/strong&gt;: a reactive object database with its own engine. It still works well locally, but MongoDB ended Atlas Device Sync in September 2025, so don't plan on hosted sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Need&lt;/th&gt;
&lt;th&gt;Pick&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Secrets, tokens&lt;/td&gt;
&lt;td&gt;Expo SecureStore&lt;/td&gt;
&lt;td&gt;OS-level encryption&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preferences, flags, hot reads&lt;/td&gt;
&lt;td&gt;MMKV&lt;/td&gt;
&lt;td&gt;Fast synchronous reads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Structured, queryable records&lt;/td&gt;
&lt;td&gt;expo-sqlite&lt;/td&gt;
&lt;td&gt;SQL, indexes, joins&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Large offline-first data with sync&lt;/td&gt;
&lt;td&gt;WatermelonDB&lt;/td&gt;
&lt;td&gt;Reactive queries + sync&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reactive object DB, local only&lt;/td&gt;
&lt;td&gt;Realm&lt;/td&gt;
&lt;td&gt;Clean object API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most production apps use three at once: &lt;strong&gt;SecureStore + MMKV + SQLite&lt;/strong&gt;. They don't conflict; each owns a different concern.&lt;/p&gt;

&lt;h2&gt;
  
  
  The offline-first architecture (the part everyone skips)
&lt;/h2&gt;

&lt;p&gt;Picking a library is the easy part. The architecture around it is what makes an app work offline.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Hydrate from local storage on launch, refresh in the background
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;cached&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;storage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;home_feed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;hydrateFeed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;refreshFeedInBackground&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Users should never see a blank screen because of a network request.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Queue writes while offline
&lt;/h3&gt;

&lt;p&gt;On every change, store two things: the local row (so the UI updates instantly) and an entry in a sync queue.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;EXISTS&lt;/span&gt; &lt;span class="n"&gt;mutation_queue&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="nb"&gt;INTEGER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;attempts&lt;/span&gt; &lt;span class="nb"&gt;INTEGER&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Drain the queue when the network is really back
&lt;/h3&gt;

&lt;p&gt;Check &lt;code&gt;isInternetReachable&lt;/code&gt;, not just &lt;code&gt;isConnected&lt;/code&gt;: a captive portal Wi-Fi reports "connected" while nothing actually loads.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;NetInfo&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@react-native-community/netinfo&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;API_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;EXPO_PUBLIC_API_URL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;draining&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;NetInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;state&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;state&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;isInternetReachable&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;draining&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;draining&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pending&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAllSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;SELECT * FROM mutation_queue ORDER BY created_at ASC&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;pending&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;API_URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;application/json&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Idempotency-Key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;},&lt;/span&gt;
          &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;
        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`HTTP &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;status&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;runSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;DELETE FROM mutation_queue WHERE id = ?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;runSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;UPDATE mutation_queue SET attempts = attempts + 1 WHERE id = ?&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// keep order; retry on the next reconnect&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;draining&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three details matter here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Idempotency-Key&lt;/code&gt;&lt;/strong&gt;: without it, a flaky network creates duplicates whenever a request succeeds on the server but the response never arrives. Your server must store and honor the key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;draining&lt;/code&gt; flag&lt;/strong&gt;: NetInfo can fire several events in a row. Without a guard, two loops send the same mutations at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checking &lt;code&gt;res.ok&lt;/code&gt;&lt;/strong&gt;: &lt;code&gt;fetch&lt;/code&gt; only throws on network failure, not on a 500. Without the check, failed writes get deleted from the queue.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Resolve conflicts explicitly
&lt;/h3&gt;

&lt;p&gt;Three strategies:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Last write wins&lt;/strong&gt;: compare timestamps. Simple, but can lose data. Fine for most single-user apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server-authoritative merge&lt;/strong&gt;: the server applies changes in order and returns the canonical state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CRDTs (Yjs, Automerge)&lt;/strong&gt;: needed for real-time collaborative editing. Heavier, but correct.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Five pitfalls to avoid
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Serializing giant arrays into AsyncStorage.&lt;/strong&gt; A classic cause of slow launches. Move large data to SQLite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard-coding an MMKV &lt;code&gt;encryptionKey&lt;/code&gt;.&lt;/strong&gt; Encryption is opt-in, and a key in your source code is readable by anyone. Generate a random key on first launch and keep it in SecureStore.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trusting &lt;code&gt;isConnected&lt;/code&gt;.&lt;/strong&gt; Use &lt;code&gt;isInternetReachable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retrying without idempotency keys.&lt;/strong&gt; You'll create duplicate records.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loading huge tables with &lt;code&gt;getAllSync&lt;/code&gt;.&lt;/strong&gt; Synchronous reads block the JS thread. Paginate, add indexes, or use the async API for large queries.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Want this scaffolded for you?
&lt;/h2&gt;

&lt;p&gt;If you're starting a new React Native app and want SecureStore + MMKV + SQLite pre-wired with hydration on launch and a sync queue skeleton, &lt;a href="https://www.rapidnative.com/?utm_source=devto&amp;amp;utm_medium=content&amp;amp;utm_campaign=offline-storage-react-native" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt; generates it from a plain-English prompt and lets you export the full Expo project.&lt;/p&gt;

&lt;p&gt;Everything in this guide is a pattern you can copy by hand too; the whole stack is open source and well documented. Pick the engines that match your access patterns, wrap them in an offline-first architecture, and your app will feel instant whether the network is there or not.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>mobile</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
