<?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: Jules Sarah</title>
    <description>The latest articles on DEV Community by Jules Sarah (@jules_sarah_0718e958f0d24).</description>
    <link>https://dev.to/jules_sarah_0718e958f0d24</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%2F4004010%2Ff34f3a46-3625-4d59-a933-3e49876494b9.png</url>
      <title>DEV Community: Jules Sarah</title>
      <link>https://dev.to/jules_sarah_0718e958f0d24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jules_sarah_0718e958f0d24"/>
    <language>en</language>
    <item>
      <title>Sending Push Notifications from Supabase to an Expo App: Database Webhooks, Edge Functions and Receipts</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:57:36 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/sending-push-notifications-from-supabase-to-an-expo-app-database-webhooks-edge-functions-and-18o5</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/sending-push-notifications-from-supabase-to-an-expo-app-database-webhooks-edge-functions-and-18o5</guid>
      <description>&lt;p&gt;most push notification tutorials stop once the app has a token. The other half lives on the server: store tokens in a table protected by RLS, fire a &lt;strong&gt;database webhook&lt;/strong&gt; when something happens (a new message, an order status change), send the notification from a &lt;strong&gt;Supabase Edge Function&lt;/strong&gt; through Expo's push API in batches, then check &lt;strong&gt;push receipts&lt;/strong&gt; later and delete tokens for uninstalled apps. This guide builds that pipeline end to end.&lt;/p&gt;

&lt;p&gt;Getting an Expo push token on the device is well documented. What usually isn't: how a real event in your database turns into a notification on the right person's phone, reliably, without spamming and without keeping dead tokens forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSERT into public.messages
        │  database webhook
        ▼
Edge Function "notify-message"
        │  look up recipient's tokens (service role)
        │  POST batches to Expo push API
        ▼
Expo Push Service ──► APNs / FCM ──► recipient's phone
        │
        └─ tickets saved ──► scheduled job checks receipts ──► delete dead tokens
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 1: A table for push tokens
&lt;/h2&gt;

&lt;p&gt;One user can have several devices, so store one row per token:&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;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;push_tokens&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="kt"&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="n"&gt;user_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&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="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="k"&gt;cascade&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;platform&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;updated_at&lt;/span&gt; &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&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="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;push_tokens_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;push_tokens&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;alter&lt;/span&gt; &lt;span class="k"&gt;table&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;push_tokens&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="n"&gt;security&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;"Users manage own tokens"&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;push_tokens&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;all&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="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&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;The token is the primary key, so if a phone changes hands (a new user signs in on the same device), an upsert moves the token to the new user instead of notifying both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Save the token from the app
&lt;/h2&gt;

&lt;p&gt;After getting permission and the Expo push token on the device (with &lt;code&gt;expo-notifications&lt;/code&gt;), upsert it:&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Platform&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="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;saveToken&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="kt"&gt;string&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="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="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;'push_tokens'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;(&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;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="n"&gt;platform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Platform&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;OS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;updated_at&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&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;toISOString&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;On sign-out, delete the device's token so a signed-out phone stops receiving that user's notifications:&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="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;'push_tokens'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&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;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'token'&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="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: The event that triggers a notification
&lt;/h2&gt;

&lt;p&gt;We'll notify users about new chat messages:&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;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="kt"&gt;bigint&lt;/span&gt; &lt;span class="n"&gt;generated&lt;/span&gt; &lt;span class="n"&gt;always&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;identity&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="n"&gt;conversation_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;sender_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&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="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;recipient_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;references&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;users&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="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&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="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any table works: orders changing to "ready", a booking reminder row, a new follower.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Create the Edge Function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// supabase/functions/notify-message/index.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;createClient&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;'npm:@supabase/supabase-js@2'&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;admin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nc"&gt;Deno&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'SUPABASE_URL'&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="nc"&gt;Deno&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'SUPABASE_SERVICE_ROLE_KEY'&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="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;EXPO_PUSH_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://exp.host/--/api/v2/push/send'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nc"&gt;Deno&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;serve&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;req&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="c1"&gt;// Shared secret configured on the webhook&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;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&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="s1"&gt;'x-webhook-secret'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nc"&gt;Deno&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'WEBHOOK_SECRET'&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="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Unauthorized'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;401&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;payload&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;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;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="c1"&gt;// { type, table, schema, record, old_record }&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;payload&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;'INSERT'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ignored'&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;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Don't notify people about their own messages&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;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sender_id&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;recipient_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ignored'&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;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;tokens&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;admin&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;'push_tokens'&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;'token'&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;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;recipient_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;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;tokens&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'no tokens'&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;messages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tokens&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&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="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;t&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;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'New message'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&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="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="n"&gt;sound&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'default'&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;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`/conversations/${message.conversation_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;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Expo accepts up to 100 messages per request&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tickets&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;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;100&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;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;EXPO_PUSH_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&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;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;100&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;json&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;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;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;tickets&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="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;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&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="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;// Save ticket IDs so a scheduled job can check receipts later&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tickets&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ticket&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&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="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ticket&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;messages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to&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;filter&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;ticket&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;ticket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'ok'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&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;ticket&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="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="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ticket_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ticket&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;token&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;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&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;admin&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;'push_tickets'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;(&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="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sent'&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;A few details worth keeping:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Truncate the body.&lt;/strong&gt; Long messages get cut off by the OS anyway, and you don't want to send whole private conversations through push.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put a route in &lt;code&gt;data&lt;/code&gt;.&lt;/strong&gt; The app can open the right screen when the notification is tapped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you enable Expo's enhanced push security,&lt;/strong&gt; add your Expo access token as an &lt;code&gt;Authorization: Bearer&lt;/code&gt; header on the request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Respect preferences.&lt;/strong&gt; Before sending, check a &lt;code&gt;notification_settings&lt;/code&gt; table so users who muted message notifications don't get them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5: Connect the database webhook
&lt;/h2&gt;

&lt;p&gt;In the Supabase dashboard, open &lt;strong&gt;Database → Webhooks&lt;/strong&gt; and create a webhook:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Table:&lt;/strong&gt; &lt;code&gt;public.messages&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Events:&lt;/strong&gt; Insert&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Type:&lt;/strong&gt; Supabase Edge Function (or HTTP request to its URL)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Header:&lt;/strong&gt; &lt;code&gt;x-webhook-secret&lt;/code&gt; with the same value as your function's &lt;code&gt;WEBHOOK_SECRET&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Deploy the function so it doesn't require a user JWT, since the database calls it directly; the shared secret protects it. Now every new message row triggers the function.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Check receipts and remove dead tokens
&lt;/h2&gt;

&lt;p&gt;A ticket with status "ok" only means Expo accepted the message. Whether Apple or Google delivered it shows up later in a &lt;strong&gt;receipt&lt;/strong&gt;. The receipt also tells you when a token is dead, typically with the error &lt;code&gt;DeviceNotRegistered&lt;/code&gt;, meaning the app was uninstalled.&lt;/p&gt;

&lt;p&gt;Store tickets:&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;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;push_tickets&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;ticket_id&lt;/span&gt; &lt;span class="kt"&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="n"&gt;token&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="kt"&gt;timestamptz&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nb"&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="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;table&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;push_tickets&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="n"&gt;security&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;-- No policies: only the service role reads and writes this table&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then a second function checks receipts for tickets that are at least 15 minutes old:&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;// supabase/functions/check-receipts/index.ts (core logic)&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="n"&gt;pending&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;admin&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;'push_tickets'&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;'ticket_id, token'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'created_at'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&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="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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toISOString&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;limit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1000&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;ids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pending&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="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&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;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ticket_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;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&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;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://exp.host/--/api/v2/push/getReceipts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&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;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;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;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;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;receipts&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;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;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="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;p&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;pending&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;receipt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;receipts&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;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ticket_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;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;receipt&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;receipt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'DeviceNotRegistered'&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;admin&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;'push_tokens'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&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;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'token'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&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="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="n"&gt;admin&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;'push_tickets'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&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="s1"&gt;'ticket_id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it on a schedule, for example every 30 minutes, with Supabase's cron scheduling calling the function. Your token table stays clean, and you stop sending to phones that no longer have the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Test the pipeline
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sign in as user A on a real device (push doesn't work on most simulators) and confirm a row appears in &lt;code&gt;push_tokens&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;As user B, insert a message to user A.&lt;/li&gt;
&lt;li&gt;Check the function logs for "sent" and the notification on A's phone.&lt;/li&gt;
&lt;li&gt;Tap the notification and confirm it opens the conversation.&lt;/li&gt;
&lt;li&gt;Uninstall the app on a test device, send another message, wait for the receipt job and confirm the token row is deleted.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No RLS on the token table,&lt;/strong&gt; letting anyone read every user's push tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sending from the client.&lt;/strong&gt; Anyone could send notifications to anyone. Always send from the server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Notifying the sender&lt;/strong&gt; of their own action.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never cleaning up tokens,&lt;/strong&gt; so you keep sending to uninstalled apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One request per notification&lt;/strong&gt; instead of batches of up to 100.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No user preferences,&lt;/strong&gt; which leads people to disable notifications entirely.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The device side of push notifications is only half the job. A database webhook, an Edge Function that sends batches through Expo's push API, a protected token table and a receipt job that removes dead tokens give you a pipeline that's reliable, secure and quiet when it should be.&lt;/p&gt;

&lt;p&gt;If you're starting a new app, &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=supabase-push-pipeline&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt; generates Expo and Supabase projects you can export and add this pipeline to.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What triggers push notifications in your app: database events, a backend queue or something else? Share your setup in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>expo</category>
      <category>supabase</category>
      <category>reactnative</category>
      <category>notifications</category>
    </item>
    <item>
      <title>AI Wrote Half Your React Native Codebase. These Automated Checks Catch Its Most Common Mistakes</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:59:25 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/ai-wrote-half-your-react-native-codebase-these-automated-checks-catch-its-most-common-mistakes-3kln</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/ai-wrote-half-your-react-native-codebase-these-automated-checks-catch-its-most-common-mistakes-3kln</guid>
      <description>&lt;p&gt;code review doesn't scale when an AI agent writes hundreds of lines an hour. The fix is to let machines check the machine. AI-generated code has predictable failure modes: dead code, duplication, &lt;code&gt;any&lt;/code&gt; escapes, floating promises, broken hook dependencies, architecture drift, tests that test nothing, unnecessary or invented packages, leaked secrets and database tables without security rules. Each one has a tool that catches it. Put them in CI, and reviewers can spend their time on what tools can't judge.&lt;/p&gt;

&lt;p&gt;AI coding tools are good enough that the bottleneck is now review. A human can carefully read maybe a few hundred lines an hour. An agent can produce thousands. Something has to give, and it's usually review quality.&lt;/p&gt;

&lt;p&gt;The good news: the mistakes AI makes are not random. They repeat, and most of them can be detected automatically. Here are the ten most common in React Native and TypeScript projects, with the check that catches each.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Dead code and unused dependencies
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; agents create helpers "just in case", leave old versions of components behind after a refactor and install packages they end up not using.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; &lt;a href="https://knip.dev" rel="noopener noreferrer"&gt;Knip&lt;/a&gt; finds unused files, exports and dependencies in TypeScript projects.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx knip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it weekly at minimum. Every unused file is something the next agent session might read, copy or "fix".&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Duplicated logic
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; each prompt is solved fresh, so you end up with three date formatters and two slightly different &lt;code&gt;useUser&lt;/code&gt; hooks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; jscpd detects copy-pasted code across the project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx jscpd src --min-tokens 50 --threshold 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--threshold 3&lt;/code&gt; fails if more than 3% of the code is duplicated. Start with a threshold that matches today's codebase, then lower it over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Type escapes with &lt;code&gt;any&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; when types get hard, agents reach for &lt;code&gt;any&lt;/code&gt;, &lt;code&gt;as unknown as&lt;/code&gt;, or &lt;code&gt;// @ts-ignore&lt;/code&gt;, which hides exactly the bugs TypeScript exists to catch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; strict TypeScript plus lint rules that forbid the escape hatches.&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;"compilerOptions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"strict"&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="nl"&gt;"noUncheckedIndexedAccess"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;@typescript-eslint/no-explicit-any&lt;/code&gt; and the &lt;code&gt;no-unsafe-*&lt;/code&gt; rules from typescript-eslint's type-checked configs (see the ESLint config below), and ban &lt;code&gt;@ts-ignore&lt;/code&gt; with &lt;code&gt;@typescript-eslint/ban-ts-comment&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Floating promises
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; generated code calls async functions without &lt;code&gt;await&lt;/code&gt; or error handling. It works in the demo and fails silently in production when the network does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; &lt;code&gt;@typescript-eslint/no-floating-promises&lt;/code&gt;, which requires type-aware linting:&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="c1"&gt;// eslint.config.js (adapt to your setup; Expo's default ESLint config is a good base)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tseslint&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'typescript-eslint'&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;reactHooks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'eslint-plugin-react-hooks'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tseslint&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;config&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;tseslint&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;configs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;recommendedTypeChecked&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;languageOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;parserOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;projectService&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="n"&gt;tsconfigRootDir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;__dirname&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;plugins&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s1"&gt;'react-hooks'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;reactHooks&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="s1"&gt;'@typescript-eslint/no-explicit-any'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s1"&gt;'@typescript-eslint/no-floating-promises'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s1"&gt;'@typescript-eslint/ban-ts-comment'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s1"&gt;'react-hooks/rules-of-hooks'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s1"&gt;'react-hooks/exhaustive-deps'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'error'&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;h2&gt;
  
  
  5. Broken hook dependencies
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; &lt;code&gt;useEffect&lt;/code&gt; with missing dependencies (stale data) or object dependencies that change every render (infinite fetch loops). Agents frequently silence the warning instead of fixing it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; &lt;code&gt;react-hooks/exhaustive-deps&lt;/code&gt; as an &lt;strong&gt;error&lt;/strong&gt;, not a warning, plus a rule in your agent instructions: never disable this rule with a comment.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Architecture drift
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; the agent imports whatever works. Screens import other screens' internals, features reach into each other and the folder structure stops meaning anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; encode your boundaries as rules. The simplest version is ESLint's &lt;code&gt;no-restricted-imports&lt;/code&gt;:&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="s1"&gt;'no-restricted-imports'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;patterns&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;group&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'@/features/*/internal/*'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Import from the feature index instead.'&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;For larger apps, dependency-cruiser lets you write rules like "features can't import from other features" and "screens can't import from the data layer directly". Then check for cycles, which agents also introduce:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx madge --circular --extensions ts,tsx src
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Tests that test nothing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; agents write many tests, and coverage looks great. But many tests assert the implementation ("the function was called") rather than behavior ("the user sees an error when sign-in fails"). They pass even when the feature is broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The check:&lt;/strong&gt; coverage can't detect this. &lt;strong&gt;Mutation testing&lt;/strong&gt; can: it makes small changes to your code (flipping a condition, removing a line) and checks whether any test fails. If no test notices, the tests aren't really testing that code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx stryker run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mutation testing is slow, so run it on critical modules (auth, payments, data access) rather than the whole app, and on a schedule rather than every commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Unnecessary or invented packages
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; agents add a dependency for a five-line function, pick a web-only library in a React Native app, or occasionally suggest a package name that doesn't exist. That last one is a real supply-chain risk: attackers register commonly hallucinated package names, hoping someone installs them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The checks:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Review every &lt;code&gt;package.json&lt;/code&gt; change&lt;/strong&gt; in pull requests, even when the rest of the diff looks fine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify new packages exist and are established&lt;/strong&gt; (downloads, maintainers, repository) before installing.&lt;/li&gt;
&lt;li&gt;In Expo projects, &lt;strong&gt;&lt;code&gt;npx expo install --check&lt;/code&gt;&lt;/strong&gt; flags native packages whose versions don't match your SDK.&lt;/li&gt;
&lt;li&gt;Knip (check 1) catches dependencies that were added and never used.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  9. Secrets in code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; to "make it work", agents paste API keys into source files or put server secrets into &lt;code&gt;EXPO_PUBLIC_&lt;/code&gt; variables, which are bundled into the app and readable by anyone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The checks:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gitleaks detect --source .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run a secret scanner like gitleaks in CI and as a pre-commit hook, and add a simple custom check that fails if names like &lt;code&gt;SERVICE_ROLE&lt;/code&gt; or &lt;code&gt;SECRET&lt;/code&gt; appear in any &lt;code&gt;EXPO_PUBLIC_&lt;/code&gt; variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Database tables without security rules
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens:&lt;/strong&gt; if your app uses Supabase, the anon key ships in the app, and Row Level Security is what protects data. Agents create tables in migrations and forget to enable RLS, or loosen a policy to &lt;code&gt;using (true)&lt;/code&gt; to make an error disappear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The checks:&lt;/strong&gt;&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;-- Tables in exposed schemas without RLS: should return zero rows&lt;/span&gt;
&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_tables&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;rowsecurity&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it in CI against a local database built from your migrations, and search new migrations for &lt;code&gt;using (true)&lt;/code&gt;. Supabase's dashboard Security Advisor also flags common problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting it together in CI
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;quality&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;pull_request&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;checks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx tsc --noEmit&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx eslint .&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx knip&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx jscpd src --min-tokens 50 --threshold 3&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx madge --circular --extensions ts,tsx src&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx expo install --check&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm test&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the secret scan and the database check as separate jobs, and run mutation testing on a schedule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Introduce the checks gradually.&lt;/strong&gt; Turning everything on at once in an existing codebase produces hundreds of failures and gets the whole setup ignored. Start with the checks that matter most for your app (often types, floating promises and secrets), fix the existing issues, then add the next one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feed the results back to the agent
&lt;/h2&gt;

&lt;p&gt;The final step is what makes this compound: when a check fails, the agent should fix it, and when the same failure happens twice, add a rule to your agent's instruction file (&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt; or your tool's equivalent):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Never use &lt;code&gt;any&lt;/code&gt;; define a type."&lt;/li&gt;
&lt;li&gt;"Never disable &lt;code&gt;react-hooks/exhaustive-deps&lt;/code&gt;."&lt;/li&gt;
&lt;li&gt;"Check that a package exists and is maintained before adding it."&lt;/li&gt;
&lt;li&gt;"Every new table enables RLS in the same migration."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most AI coding tools can run these commands themselves. Tell the agent to run the type-check and linter before it reports a task as done, and it will catch many of its own mistakes before you ever see them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the checks can't do
&lt;/h2&gt;

&lt;p&gt;Automated checks catch the predictable mistakes. They can't tell you whether the feature solves the right problem, whether the UX makes sense on a small Android phone or whether the data model will hold up next year. That's where human review should go, and with the mechanical issues automated, there's finally time for it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Which AI code smell shows up most in your codebase? Share it, and the check you use for it, in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>reactnative</category>
      <category>typescript</category>
      <category>codequality</category>
    </item>
    <item>
      <title>ITMS-90683 Missing Purpose String in Info.plist: How to Fix It in an Expo or React Native App</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:26:11 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/itms-90683-missing-purpose-string-in-infoplist-how-to-fix-it-in-an-expo-or-react-native-app-2723</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/itms-90683-missing-purpose-string-in-infoplist-how-to-fix-it-in-an-expo-or-react-native-app-2723</guid>
      <description>&lt;p&gt;ITMS-90683 means your app's binary references a protected iOS API (camera, photos, location, microphone and so on) without the matching &lt;strong&gt;purpose string&lt;/strong&gt; in &lt;code&gt;Info.plist&lt;/code&gt; explaining why. It often appears for permissions your app never asks for, because a library you installed links that API. In Expo, fix it by setting the permission text through each library's config plugin or &lt;code&gt;ios.infoPlist&lt;/code&gt; in &lt;code&gt;app.json&lt;/code&gt;, write strings that explain the real reason, remove packages you don't use, and rebuild.&lt;/p&gt;

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

&lt;blockquote&gt;
&lt;p&gt;ITMS-90683: Missing purpose string in Info.plist - Your app's code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the "MyApp.app" bundle should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Depending on the case, this can block the build from being submitted, or show up as a warning you'll be rejected for later. Either way, it's quick to fix once you know where purpose strings come from in an Expo project.&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=itms-90683&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, where we fix submission errors like this for AI-built apps.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What a purpose string is
&lt;/h2&gt;

&lt;p&gt;On iOS, every sensitive permission needs a sentence explaining why your app wants it. iOS shows that sentence in the permission prompt ("MyApp Would Like to Access Your Camera… &lt;em&gt;Used to scan receipts&lt;/em&gt;"). The sentence lives in &lt;code&gt;Info.plist&lt;/code&gt; under a specific key.&lt;/p&gt;

&lt;p&gt;The most common keys:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;NSCameraUsageDescription&lt;/code&gt;: camera&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSPhotoLibraryUsageDescription&lt;/code&gt;: reading photos&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSPhotoLibraryAddUsageDescription&lt;/code&gt;: saving photos&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSMicrophoneUsageDescription&lt;/code&gt;: microphone&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSLocationWhenInUseUsageDescription&lt;/code&gt;: location while using the app&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSLocationAlwaysAndWhenInUseUsageDescription&lt;/code&gt;: background location&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSContactsUsageDescription&lt;/code&gt;: contacts&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSFaceIDUsageDescription&lt;/code&gt;: Face ID&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSBluetoothAlwaysUsageDescription&lt;/code&gt;: Bluetooth&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;NSUserTrackingUsageDescription&lt;/code&gt;: App Tracking Transparency&lt;/li&gt;
&lt;li&gt;Calendar and reminders keys, which changed in recent iOS versions (check Apple's docs for the current names)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why it appears for permissions you don't use
&lt;/h2&gt;

&lt;p&gt;Apple scans your compiled app for references to protected APIs. If &lt;strong&gt;any&lt;/strong&gt; code in the binary references the camera API, you need the camera purpose string, even if your own code never opens the camera.&lt;/p&gt;

&lt;p&gt;That code usually comes from a dependency:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A package that supports both camera and photo library (for example, an image picker) references both APIs.&lt;/li&gt;
&lt;li&gt;An "all-in-one" SDK includes location or Bluetooth features you never call.&lt;/li&gt;
&lt;li&gt;AI app builders and templates often install packages "just in case".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the error is really asking: &lt;em&gt;does your app need this library?&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: Set purpose strings with config plugins (recommended)
&lt;/h2&gt;

&lt;p&gt;In an Expo app, you don't edit &lt;code&gt;Info.plist&lt;/code&gt; by hand; the native project is generated from your config. Most Expo libraries that need permissions accept the text as config plugin options:&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;"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;"expo-camera"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"cameraPermission"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to scan receipts so you can add expenses without typing."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"microphonePermission"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to record audio when you film a video note."&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="s2"&gt;"expo-image-picker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"photosPermission"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to attach photos of your receipts to expenses."&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="s2"&gt;"expo-location"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"locationWhenInUsePermission"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to show stores near you."&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;Option names differ per library, so check each package's documentation for its plugin options. The advantage of this approach is that the library's plugin also sets anything else it needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: Set keys directly with &lt;code&gt;ios.infoPlist&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;For libraries without a config plugin, or to override a value, set the key directly:&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;"infoPlist"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"NSCameraUsageDescription"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to scan receipts so you can add expenses without typing."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"NSPhotoLibraryUsageDescription"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Used to attach photos of your receipts to expenses."&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;Rebuild with EAS after either change. A purpose string is native configuration, so it can't be delivered as an over-the-air update.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 3: Remove what you don't need
&lt;/h2&gt;

&lt;p&gt;If the API comes from a package you don't use, the cleanest fix is removing the package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm uninstall some-unused-package
npx expo install --check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fewer packages also means a smaller app, fewer permission prompts and fewer questions on Apple's privacy form.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find out which package is responsible
&lt;/h2&gt;

&lt;p&gt;Generate the native project locally and look at the result:&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;/Info.plist&lt;/code&gt; to see which keys are set, and search your dependencies for the API mentioned in the email:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -rl &lt;span class="s2"&gt;"AVCaptureDevice"&lt;/span&gt; node_modules --include=*.m --include=*.mm --include=*.swift &lt;span class="o"&gt;|&lt;/span&gt; head
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;AVCaptureDevice&lt;/code&gt; with the relevant framework or class (for example &lt;code&gt;CLLocationManager&lt;/code&gt; for location, &lt;code&gt;CNContactStore&lt;/code&gt; for contacts). The package folders in the results tell you which dependency references it. If your &lt;code&gt;ios/&lt;/code&gt; folder isn't committed, delete it again afterwards.&lt;/p&gt;

&lt;p&gt;You can also inspect the final config Expo will use, including what plugins changed:&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 config --type introspect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Write strings that pass review
&lt;/h2&gt;

&lt;p&gt;Fixing ITMS-90683 with a placeholder like "This app needs the camera" swaps one problem for another: Apple can reject vague purpose strings under Guideline 5.1.1. A good purpose string:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Says what the feature does for the user:&lt;/strong&gt; "Used to scan receipts so you can add expenses without typing."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matches what the app actually does.&lt;/strong&gt; Reviewers check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is specific to your app,&lt;/strong&gt; not copied from a template.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is localized&lt;/strong&gt; if your app is.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Weak examples to avoid: "Needed for the app to work", "Camera access", "We use your location".&lt;/p&gt;

&lt;p&gt;And ask for permissions at the moment the feature is used, not on launch. That's better for users and for review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't forget Android
&lt;/h2&gt;

&lt;p&gt;Android has a similar problem in a different shape: libraries can add permissions to your manifest that you don't use, and Google Play asks you to justify sensitive ones. In Expo, you can list the permissions you need in &lt;code&gt;android.permissions&lt;/code&gt; and remove ones added by libraries with &lt;code&gt;android.blockedPermissions&lt;/code&gt;:&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;"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;"blockedPermissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"android.permission.RECORD_AUDIO"&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;Only block permissions you're sure your app doesn't need; blocking one a feature relies on will break that feature at runtime.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Read which key the ITMS-90683 email names.&lt;/li&gt;
&lt;li&gt;Decide: does the app use this feature?&lt;/li&gt;
&lt;li&gt;If yes, set a specific purpose string via the library's config plugin or &lt;code&gt;ios.infoPlist&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If no, remove the package that references the API.&lt;/li&gt;
&lt;li&gt;Rebuild and upload. Check the next processing email is clean.&lt;/li&gt;
&lt;li&gt;Make sure your App Privacy answers match the permissions you now declare.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;ITMS-90683 isn't about your code doing something wrong; it's about your binary referencing protected APIs without explaining why. In Expo, the fix is configuration: set clear purpose strings through config plugins or &lt;code&gt;ios.infoPlist&lt;/code&gt;, remove packages you don't need and rebuild. Write the strings for real users, and the same fix protects you from a 5.1.1 rejection later.&lt;/p&gt;

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

&lt;p&gt;&lt;em&gt;Which purpose string surprised you the most? Share which library added it in the comments; it'll save someone else a build.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ios</category>
      <category>expo</category>
      <category>reactnative</category>
      <category>appstore</category>
    </item>
    <item>
      <title>Why Your EAS Build Failed: A Field Guide to the Most Common Expo Build Errors</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:50:30 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/why-your-eas-build-failed-a-field-guide-to-the-most-common-expo-build-errors-1f88</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/why-your-eas-build-failed-a-field-guide-to-the-most-common-expo-build-errors-1f88</guid>
      <description>&lt;p&gt;most failed EAS builds come from a handful of causes: package versions that don't match your Expo SDK, config plugins that break during prebuild, credentials or capabilities that don't match, environment variables missing for the build profile, and Node or lockfile differences between your machine and the build server. Read the log from the &lt;strong&gt;first&lt;/strong&gt; failing phase, reproduce it locally with &lt;code&gt;npx expo prebuild --clean&lt;/code&gt; or &lt;code&gt;eas build --local&lt;/code&gt;, and fix the cause rather than retrying.&lt;/p&gt;

&lt;p&gt;A red "Build failed" in the Expo dashboard is rarely random. EAS runs your build in clean, repeatable phases, and each phase fails for its own predictable reasons. Learn the phases and the error stops being mysterious.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the right part of the log
&lt;/h2&gt;

&lt;p&gt;An EAS build log is split into phases: installing dependencies, prebuild (generating the native projects from your config), installing pods on iOS, running Gradle or Xcode, and uploading. &lt;strong&gt;The first phase that fails is the one that matters.&lt;/strong&gt; Errors further down are usually consequences.&lt;/p&gt;

&lt;p&gt;Inside a failed phase, search for &lt;code&gt;error:&lt;/code&gt; or &lt;code&gt;FAILURE:&lt;/code&gt; and read upwards a few lines. The real cause is usually just above the summary.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Package versions don't match your SDK
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; Gradle or Xcode compile errors inside a library, "duplicate class", "undefined symbol", or a native module that "cannot be found".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; a package with native code was installed with plain &lt;code&gt;npm install&lt;/code&gt; and pulled a version built for a different Expo SDK.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt;&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 install --check   &lt;span class="c"&gt;# lists packages that don't match your SDK&lt;/span&gt;
npx expo install --fix     &lt;span class="c"&gt;# installs the compatible versions&lt;/span&gt;
npx expo-doctor            &lt;span class="c"&gt;# checks the project for common problems&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make &lt;code&gt;npx expo install&lt;/code&gt; the only way native packages enter your project.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A config plugin breaks prebuild
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; the build fails in the prebuild phase with an error mentioning a plugin, &lt;code&gt;app.json&lt;/code&gt; or &lt;code&gt;app.config.js&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; a plugin is misconfigured, outdated or incompatible with your SDK, or your dynamic config throws when an environment variable is missing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; reproduce it locally. Prebuild is the same step EAS runs:&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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it fails on your machine, you can debug it in seconds instead of waiting for a cloud build. (If your &lt;code&gt;ios/&lt;/code&gt; and &lt;code&gt;android/&lt;/code&gt; folders aren't committed, delete them again afterwards.)&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Credentials or capabilities don't match
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms (iOS):&lt;/strong&gt; "Provisioning profile doesn't include the … capability" or "doesn't match the entitlements".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; you added a feature that needs an Apple capability, such as push notifications, Sign in with Apple or associated domains, and the provisioning profile predates it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; let EAS regenerate or sync the profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;eas credentials
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select the iOS profile and regenerate the provisioning profile. With EAS-managed credentials, capabilities are usually synced on the next build, but an old manually uploaded profile won't update itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Symptoms (Android):&lt;/strong&gt; "Keystore was tampered with" or signing errors usually mean the keystore or its passwords changed. Check the keystore in &lt;code&gt;eas credentials&lt;/code&gt; and never replace an existing app's upload key casually.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Environment variables missing for this profile
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; the build succeeds, but the app crashes on launch or calls the wrong API. Or your dynamic config throws during prebuild.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; the variable exists on your machine (in &lt;code&gt;.env&lt;/code&gt;) but not for the EAS build profile.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; set variables per environment and attach the environment to the profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;eas env:list --environment production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember that &lt;code&gt;EXPO_PUBLIC_&lt;/code&gt; variables are inlined at build time, so a variable added after a build only takes effect in the next one.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Node or lockfile differences
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; dependency installation fails on EAS but works locally, or behaves differently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; a different Node version, a missing or out-of-date lockfile, or a mix of package managers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; commit one lockfile, use one package manager, and pin the Node version in your build profile so EAS matches your machine:&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;"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;"node"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"20.18.0"&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;h2&gt;
  
  
  6. CocoaPods failures on iOS
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; the "Install pods" phase fails with version conflicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cause:&lt;/strong&gt; two packages need incompatible versions of the same native dependency, often after upgrading one package but not another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; align versions with &lt;code&gt;npx expo install --fix&lt;/code&gt;, then retry with a clean cache:&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 --clear-cache
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. It builds, but crashes on launch
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Symptoms:&lt;/strong&gt; the store or preview build installs and immediately closes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common causes:&lt;/strong&gt; a native module used in JavaScript that isn't in this build (it worked in a development build with a different module set), a missing environment variable, or an error thrown at startup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; reproduce a release build locally and read the native logs:&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 run:ios --configuration Release
npx expo run:android --variant release
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding crash reporting to every build turns "it crashes" into a stack trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce any build locally
&lt;/h2&gt;

&lt;p&gt;When a failure doesn't make sense, run the same build process on your machine:&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 android --profile production --local
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get the same steps with full access to the files, which makes most mysteries short.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prevent failures before they reach EAS
&lt;/h2&gt;

&lt;p&gt;Run the cheap checks in CI before you ever start a cloud build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx tsc --noEmit
npx expo-doctor
npx expo install --check
npx expo prebuild --clean --no-install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If these pass, most of the failures above can't happen.&lt;/p&gt;

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

&lt;p&gt;EAS builds fail for a short list of reasons, and each one has a direct fix: align package versions, reproduce prebuild locally, sync credentials, set environment variables per profile, pin Node, and reproduce release builds on your machine when the app crashes. Read the first failing phase and you'll rarely need to retry blindly.&lt;/p&gt;

&lt;p&gt;If you'd rather start from a project that already passes these checks, &lt;a href="https://www.rapidnative.com?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=eas-build-failures&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;RapidNative&lt;/a&gt; generates standard Expo projects you can export and build with EAS.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What's the strangest EAS build error you've hit? Share it, and the fix, in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>expo</category>
      <category>reactnative</category>
      <category>mobile</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Your Lovable App Works. Here Are 7 Surprises Between You and the App Store.</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Thu, 05 Nov 2026 12:13:46 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/your-lovable-app-works-here-are-7-surprises-between-you-and-the-app-store-129o</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/your-lovable-app-works-here-are-7-surprises-between-you-and-the-app-store-129o</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://dev.toPASTE-YOUR-MEDIUM-LINK-HERE"&gt;Medium&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Lovable app publishing, from the founder's side of the screen: what nobody tells you before you try to get your app onto iPhones and Android phones.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It's Sunday night. You've spent the weekend in Lovable, and the thing actually works. People can sign up. The dashboard loads. Your friend tried it on her phone and said, "Wait, you built this?"&lt;/p&gt;

&lt;p&gt;So you do what feels like the obvious next step. You open your notes and write: &lt;em&gt;Put it on the App Store this week.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is the moment most Lovable founders are in when they find us. And almost all of them have the same experience over the next few days: a series of small surprises, each one reasonable on its own, that together turn "this week" into "this month".&lt;/p&gt;

&lt;p&gt;Here they are, in the order you'll probably meet them, so none of them catch you off guard.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Full disclosure: we're &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, and getting AI-built apps into the stores is what we do every day. These are the surprises we watch founders run into, again and again.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 1: "Publish" didn't publish it where you think
&lt;/h2&gt;

&lt;p&gt;Lovable has a big, friendly Publish button. You click it, and your app goes live at a web address. It feels like a launch.&lt;/p&gt;

&lt;p&gt;But that's a website. It lives in a browser, not in the App Store or Google Play. There's no app to download, no icon on anyone's home screen and nothing to search for in the store.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The first surprise isn't a problem. It's a realization: Lovable built you a web app, and the stores only accept native apps.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; treat your Lovable app as the product you'll turn into an app, not the app itself. Your web version keeps working the whole time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 2: Wrapping it might get you rejected
&lt;/h2&gt;

&lt;p&gt;The first fix everyone finds online is "wrap it": put your website inside an app shell and submit that. It sounds perfect. It's quick and cheap, and your web app doesn't change.&lt;/p&gt;

&lt;p&gt;Then Apple replies with three words founders learn to dread: &lt;em&gt;Guideline 4.2, Minimum Functionality.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Apple's view is simple. If your app is just your website in a frame, people could use the website. Wrapped apps scroll like a browser, handle the keyboard like a browser and feel like a browser, and reviewers notice within seconds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; either add real native features to the wrapper, like push notifications and native navigation, or convert the app to a true native app with React Native. &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=lovable-app-publishing&amp;amp;utm_content=guideline-4-2" rel="noopener noreferrer"&gt;Here's what reviewers look for&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 3: You need two developer accounts, and one of them asks hard questions
&lt;/h2&gt;

&lt;p&gt;To publish, you need an Apple Developer account ($99 a year) and a Google Play developer account ($25 once). Easy enough, until you hit the first real decision: &lt;strong&gt;personal or organization account?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It sounds like paperwork. It quietly decides two big things. An organization account shows your company name in the store and needs a registered business and a D-U-N-S number, which can take days or weeks to get. And on Google Play, a personal account comes with surprise number 6.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; open both accounts on day one, because verification takes time. If you have a company, seriously consider organization accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 4: Your login screen is the problem
&lt;/h2&gt;

&lt;p&gt;You didn't even think about the login screen. Lovable made it for you: email and password, plus a nice "Continue with Google" button.&lt;/p&gt;

&lt;p&gt;Apple sees something else. Under Guideline 4.8, if your iPhone app offers Google login, it must also offer a private login option, and in practice that means &lt;strong&gt;Sign in with Apple&lt;/strong&gt;. Lovable doesn't add it, because a website doesn't need it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; add a Sign in with Apple button, at least as big and as visible as your Google button. Apple only sends the person's name the first time they sign in, so save it right away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 5: People can sign up but can't leave
&lt;/h2&gt;

&lt;p&gt;Here's a rejection that surprises almost everyone: &lt;em&gt;"Your app supports account creation but does not include an option to initiate account deletion."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Both Apple and Google require it. If people can create an account in your app, they must be able to delete it, and their data, from inside the app. Not by emailing you. Not by "deactivating" it. Actually deleting it.&lt;/p&gt;

&lt;p&gt;Lovable adds sign-up and stops there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; add a Delete account option in settings that really removes the account and its data on the server. Google Play also wants a web page where people can request deletion without the app. &lt;a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=account-deletion" rel="noopener noreferrer"&gt;Step-by-step fix&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 6: You need 12 strangers to use your app for two weeks
&lt;/h2&gt;

&lt;p&gt;If your Google Play account is personal and was created after November 13, 2023, there's a rule you can't skip: before your app can go public, at least &lt;strong&gt;12 testers&lt;/strong&gt; must stay opted in to a closed test for &lt;strong&gt;14 days in a row&lt;/strong&gt;. Then you apply for production access, and Google reviews that too.&lt;/p&gt;

&lt;p&gt;It's the surprise that hurts most, because it can't be rushed. You can fix code in an hour. You can't make 14 days pass faster.&lt;/p&gt;

&lt;p&gt;And it's harder than it sounds. Testers forget to accept the invite. Someone uninstalls on day 6. Every drop below 12 delays your launch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; start the closed test as early as possible, invite 15 to 20 people instead of 12, and check the opted-in count in Play Console, not your invite list. &lt;a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=closed-test" rel="noopener noreferrer"&gt;Full guide to the closed test&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise 7: Your Stripe checkout doesn't work the same way in the app
&lt;/h2&gt;

&lt;p&gt;Your Lovable app takes payments with Stripe, and it works beautifully on the web. Then you learn that if you sell &lt;strong&gt;digital&lt;/strong&gt; things inside your iPhone or Android app, like subscriptions, premium features or credits, the stores generally require their own in-app purchase systems.&lt;/p&gt;

&lt;p&gt;Physical goods and real-world services can keep using Stripe. Digital content usually can't, and the rules have been changing in some regions, so check the current guidelines for where you sell.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What to do:&lt;/strong&gt; decide early how payments will work in the app. It affects your pricing, because the stores take a commission, and it takes real time to set up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bonus surprise: the paperwork takes a full day
&lt;/h2&gt;

&lt;p&gt;Once the app itself is ready, there's still the store listing: an app icon, screenshots for different screen sizes, a description, a privacy policy page, Apple's App Privacy answers, Google's Data safety form, age ratings and a demo account for the reviewer.&lt;/p&gt;

&lt;p&gt;None of it is hard. All of it takes longer than you'd guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what does "this week" really look like?
&lt;/h2&gt;

&lt;p&gt;Here's the honest version for most Lovable apps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Week 1:&lt;/strong&gt; open accounts, get a native build, add Sign in with Apple and account deletion, start the Google Play closed test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Week 2:&lt;/strong&gt; finish the store listings, test on real phones, submit to Apple. Your iPhone app is often live by the end of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Week 3:&lt;/strong&gt; the closed test finishes, Google approves production access, and your Android app goes live.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;About three weeks, when nothing goes wrong. A rejection or a slow account verification can add another.&lt;/p&gt;

&lt;p&gt;That's not a reason to give up on "this week". It's a reason to start the slow parts today.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your Lovable app publishing checklist
&lt;/h2&gt;

&lt;p&gt;Before you submit anything, check you have:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A native build, not just your website in a frame.&lt;/li&gt;
&lt;li&gt;Apple and Google developer accounts, verified.&lt;/li&gt;
&lt;li&gt;Sign in with Apple, if you have Google login.&lt;/li&gt;
&lt;li&gt;In-app account deletion, plus a web deletion page for Google Play.&lt;/li&gt;
&lt;li&gt;A Google Play closed test with 15 to 20 testers, started as early as possible.&lt;/li&gt;
&lt;li&gt;A plan for payments if you sell anything digital.&lt;/li&gt;
&lt;li&gt;A privacy policy, store screenshots and a demo account for reviewers.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;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=lovable-app-publishing&amp;amp;utm_content=launch-checklist" rel="noopener noreferrer"&gt;launch checklist&lt;/a&gt; has every requirement and cost in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  You don't have to find these out the hard way
&lt;/h2&gt;

&lt;p&gt;Every surprise on this list has a known fix. The founders who struggle aren't the ones with bad apps. They're the ones who meet these surprises one at a time, after each rejection, instead of all at once, before they submit.&lt;/p&gt;

&lt;p&gt;Now you've met them all.&lt;/p&gt;

&lt;p&gt;If you'd rather skip the three weeks of learning, that's exactly what we do at &lt;a href="https://letsdeploy.it/lovable-to-app-store?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=lovable-page" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;. We convert your Lovable app into a native app, handle every item on this list and take it through both stores until it's approved. See &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;how it works&lt;/a&gt; or &lt;a href="https://letsdeploy.it/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=lovable-app-publishing&amp;amp;utm_content=pricing" rel="noopener noreferrer"&gt;our plans&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Which of these surprises did you hit first? Tell us in the comments. We read every one.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>lovable</category>
      <category>appstore</category>
      <category>nocode</category>
      <category>mobile</category>
    </item>
    <item>
      <title>How to Publish a Replit App to the App Store and Google Play (2026)</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Mon, 02 Nov 2026 12:22:00 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/how-to-publish-a-replit-app-to-the-app-store-and-google-play-2026-4gkg</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/how-to-publish-a-replit-app-to-the-app-store-and-google-play-2026-4gkg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; first check what Replit built for you. If it's a &lt;strong&gt;web app&lt;/strong&gt; (most Replit Agent projects are), you need to turn it into a native app before the stores will take it. If it's a &lt;strong&gt;mobile app built with Expo&lt;/strong&gt;, you can build and submit it with Expo's tools. Either way, you need developer accounts, a few store requirements Replit doesn't add by default and, on a new personal Google Play account, a 14-day closed test.&lt;/p&gt;

&lt;p&gt;Replit makes it easy to go from an idea to a working app. Getting that app into the App Store and Google Play is a separate job, and it trips up a lot of first-time publishers. Here's the full path.&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=replit-app-publishing&amp;amp;utm_content=intro" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt;, where we publish AI-built apps to both stores.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What did Replit build: a web app or a mobile app?
&lt;/h2&gt;

&lt;p&gt;Open your project and look at the files and the preview:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A web app&lt;/strong&gt; runs in the browser preview and usually uses React, Vite, Next.js or a Python or Node server. You open it with a URL. This is what most Replit Agent projects are.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A mobile app&lt;/strong&gt; uses Expo and React Native. You'll see an &lt;code&gt;app.json&lt;/code&gt; or &lt;code&gt;app.config&lt;/code&gt; file and &lt;code&gt;expo&lt;/code&gt; in &lt;code&gt;package.json&lt;/code&gt;, and you preview it on your phone with Expo Go.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The path to the stores depends on which one you have.&lt;/p&gt;

&lt;h2&gt;
  
  
  Path A: your Replit app is a web app
&lt;/h2&gt;

&lt;p&gt;The App Store and Google Play want native apps, so a web app needs a native version first. You have two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wrap it:&lt;/strong&gt; put your website inside a native shell with a tool like Capacitor. It's quick, but Apple often rejects apps that feel like a website in a frame under &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=replit-app-publishing&amp;amp;utm_content=guideline-4-2" rel="noopener noreferrer"&gt;Guideline 4.2&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Convert it:&lt;/strong&gt; rebuild the screens as a React Native and Expo app that talks to the same backend. It takes longer, but it feels like a real app and passes review far more reliably.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your Replit web app keeps running either way. The store app is a separate build that uses the same data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Path B: your Replit app uses Expo
&lt;/h2&gt;

&lt;p&gt;If your project is already an Expo app, you're much closer. The usual route is Expo's EAS services, which build your iPhone and Android apps in the cloud and upload them to the stores, with no Mac needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; eas-cli
eas login
eas build:configure
eas build &lt;span class="nt"&gt;--platform&lt;/span&gt; all
eas submit &lt;span class="nt"&gt;--platform&lt;/span&gt; ios
eas submit &lt;span class="nt"&gt;--platform&lt;/span&gt; android
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before building, check &lt;code&gt;app.json&lt;/code&gt; has a real app name, an &lt;code&gt;ios.bundleIdentifier&lt;/code&gt; and an &lt;code&gt;android.package&lt;/code&gt; (like &lt;code&gt;com.yourcompany.yourapp&lt;/code&gt;), plus your icon and splash screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Replit-specific traps
&lt;/h2&gt;

&lt;p&gt;These catch Replit apps more than most:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your app must call your deployed backend, not the development URL.&lt;/strong&gt; The URL you see while building is for development. Publish your backend with Replit Deployments and point the mobile app at the deployed &lt;code&gt;.replit.app&lt;/code&gt; address (or your own domain), so it keeps working when your workspace isn't open.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep your deployment always available.&lt;/strong&gt; A store app with a backend that's asleep or stopped looks broken to reviewers. Choose a deployment type that suits real traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't put secret keys in the app.&lt;/strong&gt; Anything bundled in a mobile app can be read by anyone who downloads it. Keep API keys in Replit Secrets on the server and have the app call your backend.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the stores require that Replit doesn't add
&lt;/h2&gt;

&lt;p&gt;AI builders focus on making the app work. The stores also expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Account deletion&lt;/strong&gt; inside the app if people can sign up. &lt;a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=replit-app-publishing&amp;amp;utm_content=account-deletion" rel="noopener noreferrer"&gt;How to add it&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sign in with Apple&lt;/strong&gt; next to Google or other social login on iPhone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A privacy policy&lt;/strong&gt; on a public web page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple's in-app purchase&lt;/strong&gt; for digital goods and subscriptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A demo account&lt;/strong&gt; for the reviewer if any part of the app needs a login.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Developer accounts and the Google Play closed test
&lt;/h2&gt;

&lt;p&gt;You'll need an Apple Developer account ($99 a year) and a Google Play developer account ($25 once). If your Google Play account is personal and was created after November 13, 2023, you must run a closed test with at least 12 testers for 14 days in a row before you can publish. &lt;a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=replit-app-publishing&amp;amp;utm_content=closed-test" rel="noopener noreferrer"&gt;Here's how the closed test works&lt;/a&gt;. Start it as early as you can.&lt;/p&gt;

&lt;h2&gt;
  
  
  How long does it take?
&lt;/h2&gt;

&lt;p&gt;For an Expo project with the requirements in place, the App Store can take a few days, mostly review. For a web app, add the time to convert it. On Google Play, the closed test sets the pace, so plan on about three weeks for a new personal account.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Can I publish a Replit app directly to the App Store?&lt;/strong&gt; Only if it's a native mobile app, such as an Expo project. A Replit web app needs a native version first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need a Mac?&lt;/strong&gt; Not with Expo's cloud builds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will my Replit web app keep working?&lt;/strong&gt; Yes. The store app is separate and can use the same backend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why was my wrapped Replit app rejected?&lt;/strong&gt; Usually Guideline 4.2: Apple sees it as a website in a frame. Adding native features helps; converting to a native app is the reliable fix.&lt;/p&gt;

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

&lt;p&gt;Publishing a Replit app comes down to three things: a native build, the store requirements, and a backend that's deployed and always on. If you'd rather not handle the conversion and store review yourself, &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=replit-app-publishing&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; converts AI-built apps to native and takes them through both stores until they're approved. See 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=replit-app-publishing&amp;amp;utm_content=launch-checklist" rel="noopener noreferrer"&gt;launch checklist&lt;/a&gt; for every requirement in one place.&lt;/p&gt;

&lt;p&gt;Stuck on a Replit app right now? Tell us where in the comments.&lt;/p&gt;

</description>
      <category>replit</category>
      <category>mobile</category>
      <category>appstore</category>
      <category>googleplay</category>
    </item>
    <item>
      <title>9 Tools You Should Definitely Use to Launch Your Mobile App in 2026 🚀💯</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Fri, 30 Oct 2026 07:58:29 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/9-tools-you-should-definitely-use-to-launch-your-mobile-app-in-2026-1ek0</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/9-tools-you-should-definitely-use-to-launch-your-mobile-app-in-2026-1ek0</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Building an app has never been faster. With AI app builders like Lovable, Bolt, Base44 and v0, a working prototype can take a weekend. Launching that app is a different story.&lt;/p&gt;

&lt;p&gt;Once your app works, it has to get through App Store and Google Play review, take payments the way Apple and Google require, send notifications, catch crashes and tell you what users actually do. Each of those jobs has a tool that does it well, and choosing the right ones early saves weeks of rework.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why launching is the hard part
&lt;/h2&gt;

&lt;p&gt;AI builders are brilliant at making web apps, but the app stores want native apps that follow a long list of rules. Apps get rejected for missing account deletion, for having Google login without Sign in with Apple, or for feeling too much like a website. New Google Play accounts also need a 14-day closed test with 12 testers before they can publish at all.&lt;/p&gt;

&lt;p&gt;None of that is about your idea. It's about the launch, and the right tools make it a lot easier.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this list is from LetsDeployIt, so we're number one. The other eight are tools we see working well in the apps we ship.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools for launching your app
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. LetsDeployIt
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=how-it-works" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; takes apps built with AI builders like Lovable, Bolt.new, Base44 and v0, converts them into native React Native and Expo apps, and takes them through App Store and Google Play review until they're approved. It's built for founders who made something great with AI and don't want to spend the next month learning native builds and review guidelines.&lt;/p&gt;

&lt;p&gt;Beyond the conversion, LetsDeployIt handles the store work that causes most rejections: store listings, privacy forms and Google Play's Data safety answers, &lt;a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=account-deletion-guide" rel="noopener noreferrer"&gt;account deletion&lt;/a&gt; that really deletes the account, and Sign in with Apple. For Google Play, it runs the &lt;a href="https://letsdeploy.it/google-play-12-tester-requirement?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=closed-test" rel="noopener noreferrer"&gt;12-tester closed test&lt;/a&gt; with vetted testers. You can see what's included in each &lt;a href="https://letsdeploy.it/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=pricing" rel="noopener noreferrer"&gt;plan&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Expo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://expo.dev" rel="noopener noreferrer"&gt;Expo&lt;/a&gt; is the standard toolkit for building React Native apps. Its EAS services build your iPhone and Android apps in the cloud, so you don't need a Mac, and submit them to both stores from the command line.&lt;/p&gt;

&lt;p&gt;One of Expo's most useful features after launch is over-the-air updates: you can push small fixes to your users without waiting for a new store review. Combined with a large library of ready-made native modules, it's the foundation of most modern React Native apps.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Supabase
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://supabase.com" rel="noopener noreferrer"&gt;Supabase&lt;/a&gt; gives your app a Postgres database, user accounts, file storage and server functions in one place. If your app came from Lovable, Bolt or v0, there's a good chance it already uses Supabase.&lt;/p&gt;

&lt;p&gt;It supports email, Google and Sign in with Apple login, and its row-level security keeps each user's data separate. Its Edge Functions are ideal for server work like deleting an account, which you need for both app stores.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. RevenueCat
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.revenuecat.com" rel="noopener noreferrer"&gt;RevenueCat&lt;/a&gt; handles in-app purchases and subscriptions on both iPhone and Android. Apple and Google generally require digital goods and subscriptions to go through their own billing, and building that yourself, including receipt checks and renewals, is a lot of work.&lt;/p&gt;

&lt;p&gt;With RevenueCat you add one SDK and get both stores' billing, a paywall builder, experiments to test prices, and clear subscription analytics like trials, revenue and churn. It's the go-to choice for any app that sells digital content.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. OneSignal
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://onesignal.com" rel="noopener noreferrer"&gt;OneSignal&lt;/a&gt; sends push notifications, in-app messages and emails from a single dashboard. It works with Expo through a plugin and lets you target segments of users or set up automated messages, such as a reminder for people who haven't opened the app in a week.&lt;/p&gt;

&lt;p&gt;Push notifications are one of the best ways to bring users back, and they're also a genuinely native feature, which helps show Apple's reviewers that your app is more than a website.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. PostHog
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://posthog.com" rel="noopener noreferrer"&gt;PostHog&lt;/a&gt; shows you what people actually do in your app: which screens they visit, where they drop off, and which features they use. It covers product analytics, funnels and retention, plus session replays and feature flags for rolling out changes gradually.&lt;/p&gt;

&lt;p&gt;It has a generous free tier, which makes it easy to add from day one. That way, your first real users start shaping what you build next.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Sentry
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sentry.io" rel="noopener noreferrer"&gt;Sentry&lt;/a&gt; catches crashes and errors in your app and shows you exactly where they happened, down to the line of code. It works with React Native and Expo, and also monitors performance so you can spot slow screens.&lt;/p&gt;

&lt;p&gt;The best time to find a crash is before your users write about it in an App Store review. Sentry makes that much more likely.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Figma
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.figma.com" rel="noopener noreferrer"&gt;Figma&lt;/a&gt; is where most teams design their app icon, App Store screenshots and marketing graphics. Its community has plenty of templates for icons and store screenshots, and sharing work with a designer or teammate is as easy as sending a link.&lt;/p&gt;

&lt;p&gt;Your store listing is the first thing people see, often before they ever open your app, so it's worth making it look as good as the app itself.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. TestFlight
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://developer.apple.com/testflight/" rel="noopener noreferrer"&gt;TestFlight&lt;/a&gt; is Apple's own beta testing app, included with your Apple Developer account. You can invite up to 10,000 testers by email or with a public link, and they can send feedback and screenshots straight from the app.&lt;/p&gt;

&lt;p&gt;Testing with real people before launch catches the problems you're too close to notice. On Android, Google Play's closed testing does the same job, and for new personal accounts it's required anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your launch stack in one line
&lt;/h2&gt;

&lt;p&gt;LetsDeployIt or Expo to ship, Supabase for accounts and data, RevenueCat for payments, OneSignal for notifications, PostHog for analytics, Sentry for crashes, Figma for visuals and TestFlight for testing. For everything Apple and Google ask for at launch, see 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=tools-to-launch-mobile-app-2026&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;What do I need to launch an app on the App Store?&lt;/strong&gt; An Apple Developer account ($99 a year), a native build of your app, a store listing with screenshots, privacy details, and an app that follows Apple's review guidelines, including account deletion if people can sign up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I launch an app built with Lovable or Bolt?&lt;/strong&gt; Yes, but it needs a native build first, because those tools make web apps. LetsDeployIt does that conversion and the store work for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long does it take to get an app approved?&lt;/strong&gt; Apple usually reviews in a day or two. New personal Google Play accounts need a 14-day closed test with 12 testers first. &lt;a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=closed-test-guide" rel="noopener noreferrer"&gt;Here's how that works&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;Building the app is now the quick part. Launching it well is what decides whether people find it, pay for it and keep using it. With the right tools, from &lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=tools-to-launch-mobile-app-2026&amp;amp;utm_content=conclusion" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; for getting through the stores to Sentry for catching crashes, you can spend your time on your users instead of on the plumbing.&lt;/p&gt;

&lt;p&gt;What's in your launch stack? Share your favorite tools in the comments.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>beginners</category>
      <category>nocode</category>
      <category>startup</category>
    </item>
    <item>
      <title>5 Best Ways to Publish an AI-Built App to the App Store and Google Play (2026)</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Thu, 29 Oct 2026 13:10:40 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/5-best-ways-to-publish-an-ai-built-app-to-the-app-store-and-google-play-2026-53b1</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/5-best-ways-to-publish-an-ai-built-app-to-the-app-store-and-google-play-2026-53b1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; the best way to publish an app built with Lovable, Bolt, Base44 or v0 depends on how much of the work you want to do yourself. If you want it done for you as a real native app, use LetsDeployIt. If you can code, Expo's EAS gets a React Native app into both stores. If you want to wrap your existing website, Capacitor, Median.co and PWABuilder do that, with more risk of an Apple rejection.&lt;/p&gt;

&lt;p&gt;AI app builders make web apps. The App Store and Google Play want native apps. Getting from one to the other means a native build, developer accounts, store listings, privacy forms, review rules and, on Google Play, a 14-day closed test. These five options handle that gap in very different ways.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A note before we start: this list is written by LetsDeployIt, so we put ourselves first. We've tried to be fair about when each of the other options is the better choice for you.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How we picked
&lt;/h2&gt;

&lt;p&gt;We looked at the five options AI-app builders ask us about most, and compared them on what matters when you're trying to get approved:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you end up with:&lt;/strong&gt; a native app, or your website inside an app shell.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How likely Apple is to approve it&lt;/strong&gt;, especially under Guideline 4.2 (minimum functionality).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How much of the store work it covers:&lt;/strong&gt; listings, privacy forms, account deletion, the Google Play closed test.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How much coding it needs.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick comparison
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What you get&lt;/th&gt;
&lt;th&gt;Coding needed&lt;/th&gt;
&lt;th&gt;Store work included&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LetsDeployIt&lt;/td&gt;
&lt;td&gt;Native React Native and Expo app&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Yes, until approved&lt;/td&gt;
&lt;td&gt;Founders who want it done for them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expo EAS&lt;/td&gt;
&lt;td&gt;Native builds and store uploads&lt;/td&gt;
&lt;td&gt;Yes, React Native&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Developers with React Native code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Capacitor&lt;/td&gt;
&lt;td&gt;Your web app in a native shell&lt;/td&gt;
&lt;td&gt;Some&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Developers who want to keep their web code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Median.co&lt;/td&gt;
&lt;td&gt;Your website in a native shell&lt;/td&gt;
&lt;td&gt;Little&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;Content and simple apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PWABuilder&lt;/td&gt;
&lt;td&gt;Store packages from your web app&lt;/td&gt;
&lt;td&gt;Little&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Google Play on a zero budget&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. LetsDeployIt: best if you want it done for you
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://letsdeploy.it/how-it-works?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=best-ways-to-publish-ai-app&amp;amp;utm_content=how-it-works" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; converts apps built with Lovable, Bolt.new, Base44 and v0 into native React Native and Expo apps, then takes them through App Store and Google Play review until they're approved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it covers:&lt;/strong&gt; the native conversion, store listings, the privacy and Data safety forms, &lt;a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=best-ways-to-publish-ai-app&amp;amp;utm_content=app-rejected-account-deletion" rel="noopener noreferrer"&gt;account deletion&lt;/a&gt;, Sign in with Apple, and the &lt;a href="https://letsdeploy.it/google-play-12-tester-requirement?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=best-ways-to-publish-ai-app&amp;amp;utm_content=google-play-12-tester-requirement" rel="noopener noreferrer"&gt;Google Play 12-tester closed test&lt;/a&gt; with vetted testers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it's first:&lt;/strong&gt; it's the only option on this list that does the store work for you, not just the build. Most rejections we see aren't about the build at all; they're about missing account deletion, login rules or an app that looks too much like a website.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good to know:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You get a native app, not your website in a wrapper, which is what Apple's Guideline 4.2 looks for.&lt;/li&gt;
&lt;li&gt;You still need your own Apple and Google developer accounts, so the app is published under your name.&lt;/li&gt;
&lt;li&gt;It's a paid service. See &lt;a href="https://letsdeploy.it/pricing?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=best-ways-to-publish-ai-app&amp;amp;utm_content=pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; founders who built with an AI app builder and don't want to learn native builds and store review.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Expo EAS: best if you can code in React Native
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://expo.dev" rel="noopener noreferrer"&gt;Expo&lt;/a&gt; is the most popular way to build React Native apps, and its EAS Build and EAS Submit services build your iOS and Android apps in the cloud and upload them to both stores. You don't need a Mac to build for iPhone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good to know:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You need a React Native app first. Your Lovable or Bolt web app won't run as-is; it has to be rebuilt in React Native.&lt;/li&gt;
&lt;li&gt;EAS has a free tier with limited builds, and paid plans for faster or more builds.&lt;/li&gt;
&lt;li&gt;Store listings, privacy forms and review replies are still up to you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; developers who already have, or can write, a React Native app.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Capacitor: best for keeping your web code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://capacitorjs.com" rel="noopener noreferrer"&gt;Capacitor&lt;/a&gt;, from the Ionic team, wraps your existing web app in a native shell and gives it access to phone features like the camera and push notifications through plugins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good to know:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's free and open source.&lt;/li&gt;
&lt;li&gt;You need Xcode on a Mac for iOS builds, and Android Studio for Android.&lt;/li&gt;
&lt;li&gt;Apple can reject apps that feel like a website in a frame under Guideline 4.2. Adding native features like push notifications and offline support helps. Our &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=best-ways-to-publish-ai-app&amp;amp;utm_content=lovable-app-rejected-guideline-4-2" rel="noopener noreferrer"&gt;Guideline 4.2 guide&lt;/a&gt; explains what reviewers look for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; developers who want one codebase for web and mobile and are comfortable in Xcode.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Median.co: best for wrapping a website without code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://median.co" rel="noopener noreferrer"&gt;Median.co&lt;/a&gt; (formerly GoNative) turns a website into iOS and Android apps through a no-code builder, with add-ons for push notifications, native navigation and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good to know:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's a paid service, priced per app.&lt;/li&gt;
&lt;li&gt;Your app is still your website inside a native shell, so the Guideline 4.2 risk applies here too. Native navigation and push notifications reduce it.&lt;/li&gt;
&lt;li&gt;Median offers help with publishing, but the store requirements themselves, like account deletion and Sign in with Apple, still have to be built into your app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; content sites, communities and simple apps that already work well on a phone browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. PWABuilder: best for Google Play on a zero budget
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.pwabuilder.com" rel="noopener noreferrer"&gt;PWABuilder&lt;/a&gt;, a free tool from Microsoft, packages a progressive web app (PWA) for the app stores. It works best for Google Play, where it creates a Trusted Web Activity package.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good to know:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your app has to be a working PWA first, with a web manifest and service worker.&lt;/li&gt;
&lt;li&gt;Google Play is the strong point. Apple is much stricter about web-based apps, so App Store approval is harder.&lt;/li&gt;
&lt;li&gt;You still run the 14-day closed test, listings and Data safety form yourself.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; getting a simple web app onto Google Play for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one should you choose?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You want it done and don't want to code:&lt;/strong&gt; LetsDeployIt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're a developer and happy to rebuild in React Native:&lt;/strong&gt; Expo EAS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You're a developer and want to keep your web code:&lt;/strong&gt; Capacitor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You have a content site or simple app:&lt;/strong&gt; Median.co.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You only need Google Play and have no budget:&lt;/strong&gt; PWABuilder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whichever you choose, the store requirements are the same. 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=best-ways-to-publish-ai-app&amp;amp;utm_content=lovable-launch-checklist-and-costs" rel="noopener noreferrer"&gt;launch checklist&lt;/a&gt; lists everything Apple and Google ask for.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Can I publish a Lovable app to the App Store?
&lt;/h3&gt;

&lt;p&gt;Yes, but not directly. Lovable builds web apps, so you need a native build first, either by converting the app to React Native or by wrapping it with a tool like Capacitor. You also need an Apple Developer account.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will Apple reject a web app in a wrapper?
&lt;/h3&gt;

&lt;p&gt;It can. Guideline 4.2 says an app should offer more than a repackaged website. Wrapped apps do get approved, especially with native features like push notifications, but native apps face less risk.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does it cost to publish an app?
&lt;/h3&gt;

&lt;p&gt;The Apple Developer Program costs $99 a year and a Google Play developer account costs $25 once. Tools and services cost extra, from free (Capacitor, PWABuilder) to paid plans and done-for-you services.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need a Mac to publish to the App Store?
&lt;/h3&gt;

&lt;p&gt;Not always. Expo's EAS builds iOS apps in the cloud, and services like LetsDeployIt handle the build for you. Capacitor needs Xcode, which only runs on a Mac.&lt;/p&gt;

&lt;h3&gt;
  
  
  How long does it take to get an app approved?
&lt;/h3&gt;

&lt;p&gt;Apple usually reviews in a day or two. On Google Play, new personal developer accounts first need a closed test with 12 testers for 14 days, so plan on about three weeks there.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need the Google Play closed test with every option?
&lt;/h3&gt;

&lt;p&gt;Yes, if your Google Play account is a personal one created after November 13, 2023. The requirement is about your account, not the tool you use. &lt;a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=best-ways-to-publish-ai-app&amp;amp;utm_content=lovable-app-google-play-closed-test" rel="noopener noreferrer"&gt;Here's how the 12-tester test works&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>appstore</category>
      <category>googleplay</category>
      <category>nocode</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Embedded Postgres in 2026: PGlite, embedded-postgres, and tinbase Compared</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Mon, 19 Oct 2026 04:42:09 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/embedded-postgres-in-2026-pglite-embedded-postgres-and-tinbase-compared-31pe</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/embedded-postgres-in-2026-pglite-embedded-postgres-and-tinbase-compared-31pe</guid>
      <description>&lt;p&gt;Postgres has a reputation as a server-shaped database: install the daemon, create users, manage a service. But more and more tools now run Postgres &lt;em&gt;inside&lt;/em&gt; or &lt;em&gt;alongside&lt;/em&gt; your application, started and stopped with it, the way SQLite always has.&lt;/p&gt;

&lt;p&gt;This post covers what "embedded Postgres" means, three practical ways to do it in JavaScript, the trade-offs of each, and when you should still reach for a regular Postgres server.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does "embedded Postgres" mean?
&lt;/h2&gt;

&lt;p&gt;People use the term for two different things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In-process:&lt;/strong&gt; Postgres runs inside your application's process, like SQLite. Historically impossible for Postgres; PGlite makes it possible by compiling Postgres to WebAssembly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App-managed:&lt;/strong&gt; Postgres runs as a separate child process, but your app downloads, starts, and stops it. From the developer's point of view it feels embedded, even though it's a real server process.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both are useful. They just have different trade-offs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: PGlite (in-process, WebAssembly)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://pglite.dev" rel="noopener noreferrer"&gt;PGlite&lt;/a&gt; is Postgres compiled to WebAssembly. It runs in Node, Bun, Deno, and the browser, with no separate process.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @electric-sql/pglite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&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;PGlite&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;@electric-sql/pglite&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="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PGlite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./pgdata&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// or omit the path for in-memory&lt;/span&gt;
&lt;span class="k"&gt;await&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;exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;CREATE TABLE items (id SERIAL PRIMARY KEY, name TEXT)&lt;/span&gt;&lt;span class="dl"&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;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;INSERT INTO items (name) VALUES ($1)&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;first&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;rows&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;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&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 items&lt;/span&gt;&lt;span class="dl"&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;Good at:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Running anywhere JavaScript runs, including the browser (with IndexedDB persistence)&lt;/li&gt;
&lt;li&gt;Disposable databases for tests, with no ports or cleanup&lt;/li&gt;
&lt;li&gt;Local-first and offline apps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Single connection.&lt;/strong&gt; One query runs at a time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extensions&lt;/strong&gt; are limited to those compiled for WASM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory&lt;/strong&gt; can be higher than you'd expect for a "lightweight" option, because the WASM runtime reserves memory up front.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Option 2: embedded-postgres (app-managed native Postgres)
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.npmjs.com/package/embedded-postgres" rel="noopener noreferrer"&gt;&lt;code&gt;embedded-postgres&lt;/code&gt;&lt;/a&gt; package downloads native Postgres binaries and runs a real Postgres server as a child process of your Node app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;embedded-postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;EmbeddedPostgres&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;embedded-postgres&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;pg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;EmbeddedPostgres&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;databaseDir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./data&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;postgres&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;password&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5433&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;persistent&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="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;pg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;initialise&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// first run only&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;pg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="c1"&gt;// connect with any Postgres client (pg, postgres.js, Drizzle, Prisma...)&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;pg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stop&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;Good at:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full native Postgres behavior, many connections, and native extensions&lt;/li&gt;
&lt;li&gt;Working with any ORM or driver, since it's a normal Postgres server&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's just the database. Auth, APIs, and storage are up to you.&lt;/li&gt;
&lt;li&gt;It needs a free port, and you manage the process lifecycle.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Option 3: tinbase (Supabase-compatible backend around Postgres)
&lt;/h2&gt;

&lt;p&gt;Full disclosure: this is the one I work on. &lt;a href="https://github.com/tinbase/tinbase?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=embedded_postgres_2026" rel="noopener noreferrer"&gt;tinbase&lt;/a&gt; wraps Postgres in a Supabase-compatible backend: REST API, auth, storage, realtime, and edge functions, so the official &lt;code&gt;supabase-js&lt;/code&gt; client works against it unchanged.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx tinbase start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads your &lt;code&gt;supabase/migrations/&lt;/code&gt; and &lt;code&gt;seed.sql&lt;/code&gt;, and serves the API at &lt;code&gt;http://127.0.0.1:54321&lt;/code&gt;. Under the hood, it can use different engines:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Engine&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;th&gt;Default on&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;native&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Embedded native Postgres 17 (binaries downloaded once, about 12 MB)&lt;/td&gt;
&lt;td&gt;macOS, Linux&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;wasm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PGlite&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pgmem&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;In-memory JavaScript engine, for quick previews&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You can also run it in-process from Node or the browser with &lt;code&gt;createBackend&lt;/code&gt;, and build it into a single executable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good at:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local development and CI for Supabase apps, without Docker&lt;/li&gt;
&lt;li&gt;Testing RLS policies and &lt;code&gt;supabase-js&lt;/code&gt; code against a real backend&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs, stated plainly:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's alpha,&lt;/strong&gt; and built for development, testing, and prototypes, not production.&lt;/li&gt;
&lt;li&gt;It's a reimplementation, so it has &lt;strong&gt;documented gaps&lt;/strong&gt;: no MFA, SSO, or phone auth; no resumable uploads or image transforms; some PostgREST features like aggregates aren't implemented yet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One writer at a time.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do they compare?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;PGlite&lt;/th&gt;
&lt;th&gt;embedded-postgres&lt;/th&gt;
&lt;th&gt;tinbase&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Runs&lt;/td&gt;
&lt;td&gt;In-process (WASM)&lt;/td&gt;
&lt;td&gt;Child process (native)&lt;/td&gt;
&lt;td&gt;Native, WASM, or in-memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Browser support&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes (WASM engine)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrent connections&lt;/td&gt;
&lt;td&gt;One&lt;/td&gt;
&lt;td&gt;Many&lt;/td&gt;
&lt;td&gt;Serialized&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API layer&lt;/td&gt;
&lt;td&gt;None (SQL)&lt;/td&gt;
&lt;td&gt;None (SQL)&lt;/td&gt;
&lt;td&gt;Supabase-compatible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best for&lt;/td&gt;
&lt;td&gt;Tests, browser, local-first&lt;/td&gt;
&lt;td&gt;Local dev with any ORM&lt;/td&gt;
&lt;td&gt;Local dev and CI for Supabase apps&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What about performance numbers?
&lt;/h3&gt;

&lt;p&gt;Benchmarks for these tools depend heavily on the machine, the workload, and the engine, so I'd rather not publish a single table that looks more precise than it is. Here's what tinbase's own README reports, measured on Apple Silicon for the whole backend (not just the database):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;Memory at boot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;tinbase, native engine&lt;/td&gt;
&lt;td&gt;~59 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tinbase, WASM (PGlite) engine&lt;/td&gt;
&lt;td&gt;~610 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Supabase local stack (Docker)&lt;/td&gt;
&lt;td&gt;~1,441 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The gap between native and WASM is the useful lesson: &lt;strong&gt;in-process isn't automatically lighter.&lt;/strong&gt; Run your own workload on your own machine before deciding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one should you use?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fresh databases in unit tests:&lt;/strong&gt; PGlite&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A browser demo or local-first prototype:&lt;/strong&gt; PGlite (or tinbase's WASM engine if you need the Supabase API)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local dev with Prisma, Drizzle, or a plain driver:&lt;/strong&gt; embedded-postgres&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local dev and CI for a Supabase app:&lt;/strong&gt; tinbase&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Production:&lt;/strong&gt; none of these. Use managed Postgres or a properly operated server.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do you back up an embedded database?
&lt;/h2&gt;

&lt;p&gt;For a quick copy, &lt;strong&gt;stop the database first&lt;/strong&gt;, then archive the data directory. Copying the files of a running Postgres can give you a corrupted backup.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-czf&lt;/span&gt; backup-&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt; +%Y%m%d&lt;span class="si"&gt;)&lt;/span&gt;.tgz ./data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a consistent snapshot while it's running, use &lt;code&gt;pg_dump&lt;/code&gt; against tools that expose a real Postgres connection, such as embedded-postgres:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pg_dump &lt;span class="nt"&gt;-h&lt;/span&gt; 127.0.0.1 &lt;span class="nt"&gt;-p&lt;/span&gt; 5433 &lt;span class="nt"&gt;-U&lt;/span&gt; postgres postgres &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; backup.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For PGlite, use its dump/export APIs (see the PGlite docs). For Supabase-style projects, the most important backup is already in your repo: your migrations and seed files can rebuild the database from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about major version upgrades?
&lt;/h2&gt;

&lt;p&gt;Postgres major versions change the on-disk format, so a data directory from one major version can't simply be opened by the next. Postgres 18 shipped in 2025, and embedded tools adopt new majors on their own schedules.&lt;/p&gt;

&lt;p&gt;For development databases, the easiest path is usually to &lt;strong&gt;recreate from migrations and seed data&lt;/strong&gt; rather than upgrade in place. For anything you can't recreate, plan a &lt;code&gt;pg_dump&lt;/code&gt; and restore across the version change.&lt;/p&gt;

&lt;h2&gt;
  
  
  When is embedded the wrong choice?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multiple app servers sharing one database:&lt;/strong&gt; use a Postgres server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Heavy concurrent writes:&lt;/strong&gt; single-connection engines will serialize them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High availability, replicas, or failover:&lt;/strong&gt; use managed Postgres.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anything production-critical:&lt;/strong&gt; embedded tools are for development, tests, demos, and local-first apps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Embedded Postgres has gone from impossible to genuinely useful. PGlite brings real Postgres into the process and the browser, embedded-postgres makes a native server feel like a dependency, and Supabase-compatible tools like tinbase add the API layer on top for local development.&lt;/p&gt;

&lt;p&gt;Pick by what you need around the database, measure on your own workload, and keep production on a real server.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What's your setup for local Postgres in 2026? Share it in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>javascript</category>
      <category>testing</category>
    </item>
    <item>
      <title>App Store and Google Play Screenshots for Expo Apps: Sizes, Clean Captures, and Automation</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Fri, 16 Oct 2026 12:34:38 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/app-store-and-google-play-screenshots-for-expo-apps-sizes-clean-captures-and-automation-3cc1</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/app-store-and-google-play-screenshots-for-expo-apps-sizes-clean-captures-and-automation-3cc1</guid>
      <description>&lt;p&gt;Screenshots are the last thing most developers think about before submitting an app, and they're the first thing users see in the store. They also cause avoidable trouble: wrong sizes block the upload, a messy status bar looks unfinished, and screenshots that don't match the app can get you rejected.&lt;/p&gt;

&lt;p&gt;This guide covers the sizes each store needs, how to capture clean screenshots from an Expo app, how to automate them so you're not redoing them by hand every release, and what to put in them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What sizes do the stores need?
&lt;/h2&gt;

&lt;p&gt;Requirements change, so double-check the current App Store Connect and Play Console help pages before you export. As of this writing:&lt;/p&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Device&lt;/th&gt;
&lt;th&gt;Required?&lt;/th&gt;
&lt;th&gt;Size (portrait)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;iPhone 6.9"&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1320 × 2868 (1290 × 2796 also accepted)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;iPad 13"&lt;/td&gt;
&lt;td&gt;Only if your app supports iPad&lt;/td&gt;
&lt;td&gt;2064 × 2752&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Upload &lt;strong&gt;1 to 10&lt;/strong&gt; screenshots per device size.&lt;/li&gt;
&lt;li&gt;Apple scales your largest iPhone screenshots down for smaller devices, so one set usually covers every iPhone.&lt;/li&gt;
&lt;li&gt;If your Expo app has &lt;code&gt;"supportsTablet": true&lt;/code&gt;, you need iPad screenshots too. If you don't plan to design for iPad, set it to &lt;code&gt;false&lt;/code&gt; in &lt;code&gt;app.json&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Asset&lt;/th&gt;
&lt;th&gt;Required?&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Phone screenshots&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Yes, at least 2&lt;/strong&gt; (up to 8)&lt;/td&gt;
&lt;td&gt;16:9 or 9:16; each side 320–3840 px&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feature graphic&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1024 × 500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App icon&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Yes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;512 × 512&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tablet screenshots&lt;/td&gt;
&lt;td&gt;Recommended for tablet visibility&lt;/td&gt;
&lt;td&gt;7" and 10"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A 1080 × 1920 or 1080 × 2400 phone screenshot works well for Play.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you capture clean screenshots?
&lt;/h2&gt;

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

&lt;p&gt;Boot a simulator that matches the 6.9" size (an iPhone "Pro Max" model), run a release-like build, and clean up the status bar first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl status_bar booted override &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--time&lt;/span&gt; &lt;span class="s2"&gt;"9:41"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--batteryState&lt;/span&gt; charged &lt;span class="nt"&gt;--batteryLevel&lt;/span&gt; 100 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--cellularBars&lt;/span&gt; 4 &lt;span class="nt"&gt;--wifiBars&lt;/span&gt; 3

xcrun simctl io booted screenshot home.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clear the override when you're done:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl status_bar booted clear
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Android has a "demo mode" that cleans the status bar:&lt;br&gt;
&lt;/p&gt;

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

&lt;/span&gt;adb exec-out screencap &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; home.png

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  Before you capture, prepare the app
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use realistic sample data.&lt;/strong&gt; Not "test test asdf." Seed a demo account with content that shows the app at its best.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hide developer UI.&lt;/strong&gt; No dev menus, debug banners, or warning overlays. Use a release or preview build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick one theme.&lt;/strong&gt; Light or dark, consistently across all screenshots.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do you automate screenshots?
&lt;/h2&gt;

&lt;p&gt;Retaking screenshots by hand every release gets old fast. &lt;a href="https://maestro.mobile.dev" rel="noopener noreferrer"&gt;Maestro&lt;/a&gt; can drive your app through a flow and capture each screen:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .maestro/screenshots.yaml&lt;/span&gt;
&lt;span class="na"&gt;appId&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;com.yourcompany.yourapp&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;launchApp&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;clearState&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;tapOn&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Sign&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;in"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;inputText&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;demo@example.com"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;tapOn&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Password"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;inputText&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;demo-password"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;tapOn&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Continue"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;takeScreenshot&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;01-home&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;tapOn&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Insights"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;takeScreenshot&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;02-insights&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;tapOn&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Settings"&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;takeScreenshot&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;03-settings&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;maestro &lt;span class="nb"&gt;test&lt;/span&gt; .maestro/screenshots.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the status bar commands first, then the flow, once on the iOS Simulator and once on the Android emulator. You get the same set of screens for both stores in a couple of minutes, and you can rerun it whenever the UI changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should go in the screenshots?
&lt;/h2&gt;

&lt;p&gt;Raw screenshots work, but most successful listings add a short caption and a background. A few principles:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The first three matter most.&lt;/strong&gt; In search results, users often see only the first few screenshots. Make sure those three explain what the app does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One idea per screenshot.&lt;/strong&gt; A short caption, a few words, that states a benefit: "Track every workout in seconds," not "Workout logging screen."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Order them like a story.&lt;/strong&gt; Start with the core value, then key features, then extras like settings or integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep text readable on a phone.&lt;/strong&gt; If you can't read the caption at thumbnail size, it's too small.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Show the real app.&lt;/strong&gt; Apple's guidelines (2.3) require screenshots to show the app in use. Mockups of features that don't exist, or paid features presented as free, can get the app rejected. Label paid features clearly.&lt;/p&gt;

&lt;p&gt;A simple workflow: export raw screenshots from the Maestro run, drop them into one design file with a template for each store size, add captions, and export. Next release, replace the raw screenshots and export again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before upload
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] iPhone 6.9" set, 1 to 10 screenshots&lt;/li&gt;
&lt;li&gt;[ ] iPad 13" set, or &lt;code&gt;supportsTablet: false&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Google Play: 2+ phone screenshots, 1024 × 500 feature graphic, 512 × 512 icon&lt;/li&gt;
&lt;li&gt;[ ] Clean status bar (9:41, full battery, no notifications)&lt;/li&gt;
&lt;li&gt;[ ] Realistic demo data, no debug UI&lt;/li&gt;
&lt;li&gt;[ ] First three screenshots explain the app&lt;/li&gt;
&lt;li&gt;[ ] Captions readable at thumbnail size&lt;/li&gt;
&lt;li&gt;[ ] Paid features labeled; everything shown actually exists&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;Screenshots aren't hard, but they're easy to leave until the night before submission. Get the sizes right, capture clean frames, automate the capture once with Maestro, and treat the first three screenshots as your pitch.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Want someone else to handle screenshots, store listings, and submission? &lt;a href="https://letsdeploy.it/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=store_screenshots_expo" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; takes your app from build to live on the App Store and Google Play.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What tool do you use for store screenshots? Share it in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>ios</category>
      <category>android</category>
    </item>
    <item>
      <title>Google Play's 12 Testers for 14 Days Rule: A Day-by-Day Plan That Gets You to Production</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Thu, 15 Oct 2026 11:47:02 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/google-plays-12-testers-for-14-days-rule-a-day-by-day-plan-that-gets-you-to-production-2acg</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/google-plays-12-testers-for-14-days-rule-a-day-by-day-plan-that-gets-you-to-production-2acg</guid>
      <description>&lt;p&gt;You've built the app. The iOS build is in review. Then Google Play Console tells you that before you can publish to production, you need to run a closed test with &lt;strong&gt;at least 12 testers, opted in for at least 14 days in a row&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For a solo developer, this is often the longest step of the whole launch. Not because it's technically hard, but because finding 12 real people and keeping them opted in for two weeks takes planning.&lt;/p&gt;

&lt;p&gt;Here's a day-by-day plan that gets you through it without restarting the clock.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who does this apply to?
&lt;/h2&gt;

&lt;p&gt;The requirement applies to &lt;strong&gt;personal developer accounts created after November 13, 2023&lt;/strong&gt;. Organization accounts (registered as a business, with a D-U-N-S number) don't have this requirement.&lt;/p&gt;

&lt;p&gt;If you're starting a new account and can register as an organization, that's worth considering. Otherwise, plan for the test.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule, exactly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It has to be a &lt;strong&gt;closed&lt;/strong&gt; test. Internal testing doesn't count.&lt;/li&gt;
&lt;li&gt;At least &lt;strong&gt;12 testers&lt;/strong&gt; must be &lt;strong&gt;opted in&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;They must have been opted in for the &lt;strong&gt;last 14 days, continuously&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;After that, you &lt;strong&gt;apply for production access&lt;/strong&gt;, which includes a short questionnaire about your test. Google then reviews the application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The word that trips people up is &lt;em&gt;continuously&lt;/em&gt;. If testers drop out and you fall below 12, you're no longer meeting the requirement for those days.&lt;/p&gt;

&lt;h2&gt;
  
  
  Day -7 to 0: Recruit before you need them
&lt;/h2&gt;

&lt;p&gt;Start recruiting &lt;strong&gt;before&lt;/strong&gt; your build is ready. This is the single biggest time saver.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Aim for 15 to 20 people,&lt;/strong&gt; not 12. Someone always leaves, switches phones, or never opts in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everyone needs an Android phone and a Google account.&lt;/strong&gt; iPhone friends can't help here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask people who'd actually use the app.&lt;/strong&gt; Google's questionnaire asks about feedback and changes you made, so real engagement makes the application easier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collect Gmail addresses,&lt;/strong&gt; or set up a &lt;strong&gt;Google Group&lt;/strong&gt; that testers join. A group is easier: add the group to the test once, and anyone who joins it becomes eligible.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Good places to find testers: friends and family with Android phones, your mailing list or waitlist, a community related to your app's topic, and other developers in the same situation (swap testing with them, and actually use each other's apps).&lt;/p&gt;

&lt;h2&gt;
  
  
  Day 0: Set up the closed test
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Create the app and complete the setup tasks
&lt;/h3&gt;

&lt;p&gt;In Play Console, create your app and work through the dashboard's setup tasks: privacy policy, app access (demo account), ads declaration, content rating, target audience, and Data Safety. Some of these must be done before testing tracks can be reviewed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Upload a build to the closed testing track
&lt;/h3&gt;

&lt;p&gt;With EAS, configure a submit profile that targets closed testing. In &lt;code&gt;eas.json&lt;/code&gt;, the closed testing track is called &lt;code&gt;alpha&lt;/code&gt;:&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"submit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"closed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"android"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"serviceAccountKeyPath"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"./play-service-account.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"track"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"alpha"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then build and submit:&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 &lt;span class="nt"&gt;--platform&lt;/span&gt; android &lt;span class="nt"&gt;--profile&lt;/span&gt; production
eas submit &lt;span class="nt"&gt;--platform&lt;/span&gt; android &lt;span class="nt"&gt;--profile&lt;/span&gt; closed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the submission is rejected because the app has never had a build uploaded, upload the first &lt;code&gt;.aab&lt;/code&gt; manually in Play Console, then use EAS Submit for everything after. Check the current EAS Submit docs, since first-upload support has been improving.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Add testers and share the opt-in link
&lt;/h3&gt;

&lt;p&gt;In the closed testing track, add your email list or Google Group, then copy the &lt;strong&gt;opt-in link&lt;/strong&gt;. Send it to every tester with clear instructions:&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Open this link on your Android phone, signed in with the Google account you gave me.&lt;/li&gt;
&lt;li&gt;Tap "Become a tester."&lt;/li&gt;
&lt;li&gt;Install the app from the Play Store link on that page.&lt;/li&gt;
&lt;li&gt;Please stay opted in for the next two weeks, and use the app a few times.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;Step 4 matters. Say it explicitly.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Wait for the track to be reviewed
&lt;/h3&gt;

&lt;p&gt;The first closed test release goes through review. The 14 days only start counting once testers can actually opt in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Days 1 to 3: Confirm everyone is in
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check the tester count&lt;/strong&gt; in Play Console. It shows how many testers have opted in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chase the stragglers&lt;/strong&gt; personally. The most common problem is someone opting in with a different Google account than the one on their phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't stop at 12.&lt;/strong&gt; Keep inviting until you have a buffer of three or more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Days 4 to 13: Keep them engaged
&lt;/h2&gt;

&lt;p&gt;Opted in is the requirement, but engagement makes the production application stronger and the app better.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ship one or two updates&lt;/strong&gt; to the closed track based on feedback. Each update is something concrete to mention in the questionnaire.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask a specific question&lt;/strong&gt; every few days: "Did the sign-up flow make sense?" gets more answers than "Any feedback?"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a simple log&lt;/strong&gt;: who reported what, and what you changed. You'll use it on day 14.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-check the tester count&lt;/strong&gt; a couple of times. Catch drop-offs before you fall under 12.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Day 14+: Apply for production access
&lt;/h2&gt;

&lt;p&gt;Once 12 or more testers have been opted in for 14 continuous days, Play Console lets you apply for production access. The questionnaire asks things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How you recruited testers, and how easy it was&lt;/li&gt;
&lt;li&gt;How testers engaged with the app, and what feedback they gave&lt;/li&gt;
&lt;li&gt;What changes you made based on that feedback&lt;/li&gt;
&lt;li&gt;Who the app is for, and what value it provides&lt;/li&gt;
&lt;li&gt;Whether the app is ready for production&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer from your log. Specific beats vague: &lt;em&gt;"Five testers said the onboarding skipped explaining notifications, so we added a permission explainer screen in build 1.0.3"&lt;/em&gt; is much stronger than &lt;em&gt;"We got good feedback and made improvements."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Then wait for the review. Use the time to finish your store listing, screenshots, and release notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What resets or delays the process?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mistake&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Using internal testing&lt;/td&gt;
&lt;td&gt;Doesn't count toward the requirement&lt;/td&gt;
&lt;td&gt;Use the closed testing track&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recruiting exactly 12&lt;/td&gt;
&lt;td&gt;One dropout drops you below the minimum&lt;/td&gt;
&lt;td&gt;Recruit 15 to 20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Testers using the wrong Google account&lt;/td&gt;
&lt;td&gt;They're not counted as opted in&lt;/td&gt;
&lt;td&gt;Send clear instructions; confirm the count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Waiting to recruit until the build is ready&lt;/td&gt;
&lt;td&gt;Adds a week or more&lt;/td&gt;
&lt;td&gt;Recruit while building&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vague questionnaire answers&lt;/td&gt;
&lt;td&gt;Weaker application&lt;/td&gt;
&lt;td&gt;Keep a feedback log from day 1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paying for fake testers&lt;/td&gt;
&lt;td&gt;Low engagement and risk to your account&lt;/td&gt;
&lt;td&gt;Use real people who'll try the app&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The whole timeline at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Day -7&lt;/td&gt;
&lt;td&gt;Start recruiting 15 to 20 Android users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Day 0&lt;/td&gt;
&lt;td&gt;Finish setup tasks, submit to closed testing, share opt-in link&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Days 1–3&lt;/td&gt;
&lt;td&gt;Confirm 12+ opted in; chase stragglers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Days 4–13&lt;/td&gt;
&lt;td&gt;Ship updates, collect feedback, keep a log&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Day 14+&lt;/td&gt;
&lt;td&gt;Apply for production access&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After review&lt;/td&gt;
&lt;td&gt;Release to production&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Plan on roughly three weeks from first upload to production for a brand-new personal account, and start recruiting early to keep it there.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Don't want to manage testers, tracks, and the production access questions yourself? &lt;a href="https://letsdeploy.it/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=google_play_12_testers" rel="noopener noreferrer"&gt;LetsDeployIt&lt;/a&gt; handles App Store and Google Play submission end to end, including the closed testing setup.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What's been the hardest part of the 14-day test for you? Share in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>reactnative</category>
      <category>expo</category>
      <category>googleplay</category>
    </item>
    <item>
      <title>Plan, Build, Review, Verify: A Claude Code Workflow for Shipping Expo + Supabase Features</title>
      <dc:creator>Jules Sarah</dc:creator>
      <pubDate>Thu, 08 Oct 2026 14:52:01 +0000</pubDate>
      <link>https://dev.to/jules_sarah_0718e958f0d24/plan-build-review-verify-a-claude-code-workflow-for-shipping-expo-supabase-features-55l1</link>
      <guid>https://dev.to/jules_sarah_0718e958f0d24/plan-build-review-verify-a-claude-code-workflow-for-shipping-expo-supabase-features-55l1</guid>
      <description>&lt;p&gt;Most Claude Code setups for React Native stop at a &lt;code&gt;CLAUDE.md&lt;/code&gt; file. That's the foundation: it tells the agent your conventions. But conventions alone don't stop the two failures I see most often in agent-built Expo features:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The agent starts writing before it understands the codebase&lt;/strong&gt;, and you get a feature that works but ignores how the rest of the app is built.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The agent says "done" when it isn't&lt;/strong&gt;: types don't check, a Supabase table has no RLS, and the screen has never rendered an error state.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This post is the workflow I use to fix both: four stages, each backed by a Claude Code feature, with the files to set it up. It assumes you already have a &lt;code&gt;CLAUDE.md&lt;/code&gt; with your commands and conventions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four stages
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Claude Code feature&lt;/th&gt;
&lt;th&gt;What it prevents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Plan&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Plan mode&lt;/td&gt;
&lt;td&gt;Code written before the codebase is understood&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Build&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A project skill (&lt;code&gt;/new-feature&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Inconsistent structure across features&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Review&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Read-only subagents&lt;/td&gt;
&lt;td&gt;Security and convention mistakes the builder can't see&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Verify&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A verifier subagent + a Stop hook&lt;/td&gt;
&lt;td&gt;"Done" that isn't done&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Stage 1: Plan before any edit
&lt;/h2&gt;

&lt;p&gt;Start every non-trivial feature in &lt;strong&gt;plan mode&lt;/strong&gt;. Press &lt;code&gt;Shift+Tab&lt;/code&gt; to cycle permission modes until plan mode is active, or type &lt;code&gt;/plan&lt;/code&gt;. In plan mode Claude explores and proposes but can't edit files. When it needs to research the codebase, it delegates to a built-in read-only Plan subagent, so the exploration output stays out of your main conversation.&lt;/p&gt;

&lt;p&gt;A good planning prompt for an Expo + Supabase feature:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Plan a "favorites" feature: users can heart a workout and see a Favorites tab.

Before planning, find:
- how existing features are structured under features/
- how data fetching is done (queries/ hooks)
- the most recent migration in supabase/migrations/ and its RLS pattern
- how tabs are defined in app/(tabs)/_layout.tsx

The plan must list: the migration (with RLS and policies), the query hooks,
the route files, the components, and the tests. Don't write code yet.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then read the plan. This is the cheapest moment to catch a wrong assumption: a plan that puts &lt;code&gt;supabase.from()&lt;/code&gt; calls inside a screen component costs ten seconds to correct now and an hour to refactor later. When the plan is right, approve it and let Claude build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 2: Build with a skill, not a paragraph
&lt;/h2&gt;

&lt;p&gt;If you build features the same way every time, stop retyping the instructions. A &lt;strong&gt;skill&lt;/strong&gt; is a folder with a &lt;code&gt;SKILL.md&lt;/code&gt; that you invoke as a slash command. Put project skills in &lt;code&gt;.claude/skills/&lt;/code&gt; and commit them so the whole team gets the same workflow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;&amp;lt;!-- .claude/skills/new-feature/SKILL.md --&amp;gt;
---
&lt;/span&gt;name: new-feature
description: Scaffold a new feature in this Expo + Supabase app following project conventions.
&lt;span class="gh"&gt;disable-model-invocation: true
---
&lt;/span&gt;
Build the feature described by the user, following this order:
&lt;span class="p"&gt;
1.&lt;/span&gt; &lt;span class="gs"&gt;**Migration**&lt;/span&gt; in &lt;span class="sb"&gt;`supabase/migrations/&amp;lt;timestamp&amp;gt;_&amp;lt;name&amp;gt;.sql`&lt;/span&gt;:
&lt;span class="p"&gt;   -&lt;/span&gt; &lt;span class="sb"&gt;`create table`&lt;/span&gt; and &lt;span class="sb"&gt;`enable row level security`&lt;/span&gt; in the same file
&lt;span class="p"&gt;   -&lt;/span&gt; policies scoped to &lt;span class="sb"&gt;`(select auth.uid())`&lt;/span&gt;; never &lt;span class="sb"&gt;`using (true)`&lt;/span&gt; on user data
&lt;span class="p"&gt;   -&lt;/span&gt; an allow test and a deny test in &lt;span class="sb"&gt;`supabase/tests/`&lt;/span&gt;
&lt;span class="p"&gt;2.&lt;/span&gt; &lt;span class="gs"&gt;**Query hooks**&lt;/span&gt; in &lt;span class="sb"&gt;`queries/&amp;lt;feature&amp;gt;.ts`&lt;/span&gt; using TanStack Query.
   No data fetching inside components.
&lt;span class="p"&gt;3.&lt;/span&gt; &lt;span class="gs"&gt;**Feature folder**&lt;/span&gt; &lt;span class="sb"&gt;`features/&amp;lt;feature&amp;gt;/`&lt;/span&gt; for screens and components.
&lt;span class="p"&gt;4.&lt;/span&gt; &lt;span class="gs"&gt;**Routes**&lt;/span&gt; in &lt;span class="sb"&gt;`app/`&lt;/span&gt; that only import and render the feature screen.
&lt;span class="p"&gt;5.&lt;/span&gt; Every screen that fetches data has loading, empty, and error states.

Use theme tokens from &lt;span class="sb"&gt;`theme/tokens.ts`&lt;/span&gt;. Navigation comes from &lt;span class="sb"&gt;`expo-router`&lt;/span&gt; only.
When finished, run &lt;span class="sb"&gt;`npm run typecheck`&lt;/span&gt; and the tests, and report the results.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now building a feature is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/new-feature favorites: heart a workout, Favorites tab lists hearted workouts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;disable-model-invocation: true&lt;/code&gt; means the skill only runs when you call it, which is what you want for a workflow that creates files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 3: Review with read-only subagents
&lt;/h2&gt;

&lt;p&gt;The agent that wrote the code is the worst reviewer of it: it has the same blind spots it had while writing. A &lt;strong&gt;subagent&lt;/strong&gt; runs in its own context window with its own system prompt and tool restrictions, which makes it a fresh pair of eyes that can't accidentally "fix" things during review.&lt;/p&gt;

&lt;p&gt;Subagents are Markdown files with YAML frontmatter in &lt;code&gt;.claude/agents/&lt;/code&gt;. Two are worth having in every Expo + Supabase repo.&lt;/p&gt;

&lt;h3&gt;
  
  
  An RLS reviewer
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;&amp;lt;!-- .claude/agents/rls-reviewer.md --&amp;gt;
---
&lt;/span&gt;name: rls-reviewer
description: Reviews Supabase migrations and policies for RLS mistakes. Use proactively after any change in supabase/.
tools: Read, Grep, Glob
&lt;span class="gh"&gt;model: sonnet
---
&lt;/span&gt;
You review Supabase SQL for security problems. You never edit files.

Check every migration changed on this branch for:
&lt;span class="p"&gt;-&lt;/span&gt; tables created without &lt;span class="sb"&gt;`enable row level security`&lt;/span&gt; in the same file
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`using (true)`&lt;/span&gt; or &lt;span class="sb"&gt;`with check (true)`&lt;/span&gt; on tables holding user data
&lt;span class="p"&gt;-&lt;/span&gt; update policies that let users change privileged columns (role, plan, is_admin, credits)
&lt;span class="p"&gt;-&lt;/span&gt; views without &lt;span class="sb"&gt;`security_invoker = true`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`security definer`&lt;/span&gt; functions without an &lt;span class="sb"&gt;`auth.uid()`&lt;/span&gt; check
&lt;span class="p"&gt;-&lt;/span&gt; storage policies that don't scope paths to the user's folder
&lt;span class="p"&gt;-&lt;/span&gt; missing deny tests in supabase/tests/

Report findings as Critical / Warning / OK, with file and line for each.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because &lt;code&gt;tools&lt;/code&gt; lists only &lt;code&gt;Read, Grep, Glob&lt;/code&gt;, this subagent can't edit or run anything. It reads and reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  A mobile conventions reviewer
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;&amp;lt;!-- .claude/agents/rn-reviewer.md --&amp;gt;
---
&lt;/span&gt;name: rn-reviewer
description: Reviews React Native changes for project conventions and mobile pitfalls. Use proactively after UI changes.
tools: Read, Grep, Glob, Bash
&lt;span class="gh"&gt;model: sonnet
---
&lt;/span&gt;
You review React Native code. You never edit files.

Run &lt;span class="sb"&gt;`git diff main...HEAD`&lt;/span&gt; and check the changed files for:
&lt;span class="p"&gt;-&lt;/span&gt; data fetching inside useEffect or components instead of queries/ hooks
&lt;span class="p"&gt;-&lt;/span&gt; secrets or keys in EXPO_PUBLIC_ variables
&lt;span class="p"&gt;-&lt;/span&gt; imports from @react-navigation/&lt;span class="err"&gt;*&lt;/span&gt; instead of expo-router
&lt;span class="p"&gt;-&lt;/span&gt; lists rendered with .map in ScrollView instead of FlatList/FlashList
&lt;span class="p"&gt;-&lt;/span&gt; icon-only buttons without accessibilityLabel
&lt;span class="p"&gt;-&lt;/span&gt; forms without keyboard handling
&lt;span class="p"&gt;-&lt;/span&gt; hardcoded colors or spacing instead of theme tokens
&lt;span class="p"&gt;-&lt;/span&gt; missing loading, empty, or error states

Report Critical / Warning / Suggestion with file and line.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the build stage, ask for both reviews:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use the rls-reviewer and rn-reviewer subagents to review this branch in parallel,
then fix every Critical finding.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The reviews run in their own contexts, only their summaries come back, and the main conversation does the fixing with full context of what it built.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 4: Verify, and make "done" mean done
&lt;/h2&gt;

&lt;p&gt;Two layers here: one the agent uses on purpose, one that runs whether it remembers or not.&lt;/p&gt;

&lt;h3&gt;
  
  
  A verifier subagent for noisy output
&lt;/h3&gt;

&lt;p&gt;Test and typecheck output is long, and you rarely need all of it in your main context. A subagent that runs the checks and returns only failures keeps the main conversation clean:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;&amp;lt;!-- .claude/agents/verifier.md --&amp;gt;
---
&lt;/span&gt;name: verifier
description: Runs typecheck, lint, and tests, and reports only failures. Use before reporting any task as complete.
tools: Bash, Read
&lt;span class="gh"&gt;model: haiku
---
&lt;/span&gt;
Run, in order:
&lt;span class="p"&gt;1.&lt;/span&gt; npm run typecheck
&lt;span class="p"&gt;2.&lt;/span&gt; npx expo lint
&lt;span class="p"&gt;3.&lt;/span&gt; npx vitest run
&lt;span class="p"&gt;4.&lt;/span&gt; npx supabase test db   (if supabase/ changed)

Report only failures: the command, the file, the line, and the error.
If everything passes, say so in one line.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Routing a mechanical task like this to a smaller, cheaper model is one of the cost controls subagents are designed for.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Stop hook as the backstop
&lt;/h3&gt;

&lt;p&gt;Instructions can be forgotten; hooks can't. Add a &lt;code&gt;Stop&lt;/code&gt; hook in &lt;code&gt;.claude/settings.json&lt;/code&gt; that typechecks whenever Claude finishes a turn:&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Stop"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx tsc --noEmit"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If types fail, you see it immediately, before you read "Done!" and move on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a full run looks like
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;Shift+Tab&lt;/code&gt; into plan mode. Describe the feature and what to research. Review and approve the plan.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/new-feature favorites: …&lt;/code&gt; to build it in your conventions.&lt;/li&gt;
&lt;li&gt;"Use rls-reviewer and rn-reviewer in parallel, then fix every Critical."&lt;/li&gt;
&lt;li&gt;"Use the verifier." Fix anything it reports.&lt;/li&gt;
&lt;li&gt;Read the diff yourself before committing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5 isn't optional. The workflow makes agent output reliably &lt;em&gt;reviewable&lt;/em&gt;, not reliably &lt;em&gt;correct&lt;/em&gt;. You're still the last reviewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three rules that keep this working
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Keep subagent descriptions short and specific.&lt;/strong&gt; Claude uses the &lt;code&gt;description&lt;/code&gt; field to decide when to delegate, and all descriptions sit in context. "Reviews Supabase migrations for RLS mistakes. Use proactively after any change in supabase/." routes well. A paragraph doesn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read-only reviewers should stay read-only.&lt;/strong&gt; Don't give review subagents &lt;code&gt;Edit&lt;/code&gt; or &lt;code&gt;Write&lt;/code&gt;. A reviewer that fixes things isn't reviewing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commit &lt;code&gt;.claude/&lt;/code&gt;.&lt;/strong&gt; Skills, subagents, and settings in the repo mean every teammate (and every CI run) gets the same workflow. Personal tweaks go in your user-level &lt;code&gt;~/.claude/&lt;/code&gt; folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part no workflow fixes
&lt;/h2&gt;

&lt;p&gt;All four stages work better when the codebase itself is consistent. An agent copies the patterns it finds: if three features fetch data in &lt;code&gt;useEffect&lt;/code&gt;, the fourth will too, whatever your skill says. Reviewers catch some of that drift; a clean starting structure prevents it.&lt;/p&gt;

&lt;p&gt;That's the idea behind &lt;a href="https://www.applighter.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=claude_code_expo_workflow_2026" rel="noopener noreferrer"&gt;AppLighter&lt;/a&gt;: Expo + Supabase templates where the conventions this workflow enforces (query hooks, RLS in every migration, theme tokens, thin routes) are already in place, so Claude Code extends a codebase that's consistent from day one.&lt;/p&gt;

&lt;p&gt;What's in your &lt;code&gt;.claude/agents/&lt;/code&gt; folder? I'm always looking for the next reviewer worth adding.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Claude Code features change quickly. The file formats here follow the current &lt;a href="https://code.claude.com/docs/en/sub-agents" rel="noopener noreferrer"&gt;Claude Code docs&lt;/a&gt;; check them if something doesn't load.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
