<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sarah]]></title><description><![CDATA[Sarah]]></description><link>https://julessarah.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 23 Nov 2026 01:13:59 GMT</lastBuildDate><atom:link href="https://julessarah.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Supabase Magic Links, Password Reset and Email Confirmation in Expo: Making Email Links Open Your App]]></title><description><![CDATA[Why Supabase auth emails open the browser instead of your Expo app, and how to fix magic links, password reset & confirmation with PKCE & email codes.]]></description><link>https://julessarah.hashnode.dev/supabase-magic-link-password-reset-expo</link><guid isPermaLink="true">https://julessarah.hashnode.dev/supabase-magic-link-password-reset-expo</guid><category><![CDATA[supabase]]></category><category><![CDATA[Expo]]></category><category><![CDATA[React Native]]></category><category><![CDATA[authentication]]></category><category><![CDATA[Mobile Development]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 19 Nov 2026 13:43:49 GMT</pubDate><content:encoded><![CDATA[<p><em>Why Supabase auth emails open a browser (or a blank screen) instead of your Expo app, and how to fix magic links, password reset and sign-up confirmation with deep links, PKCE and one-time codes.</em></p>
<p>Supabase auth emails contain links that redirect to a URL you choose. In an Expo app, that URL must be a deep link your app handles (like <code>myapp://auth/callback</code>), it must be on Supabase's list of allowed redirect URLs, and your app must exchange the <code>code</code> in that link for a session. With the PKCE flow, the link must also open on the same device and app that requested it. If deep links keep breaking, switch magic links to <strong>6-digit email codes</strong>, which avoid links entirely and work in every email client.</p>
<p>Email auth works perfectly in a browser. Then you move to an Expo app, tap the magic link in your inbox, and you land on your website's homepage, a blank browser tab or a "localhost refused to connect" error. Password reset and sign-up confirmation break in the same way.</p>
<p>The cause is always one of four things: the redirect URL, the allow list, the flow type or the handler in your app. This guide fixes each one.</p>
<h2>Why do Supabase email links open the browser instead of my app?</h2>
<p>Every Supabase auth email (magic link, confirmation, password reset) contains a link to Supabase's servers. Supabase verifies it and then <strong>redirects</strong> to a URL. If you don't specify one, it redirects to your project's <strong>Site URL</strong>, usually your website or <code>localhost:3000</code>.</p>
<p>To land in your app, three things must line up:</p>
<ol>
<li><strong>Your app passes a redirect URL</strong> that opens the app, such as <code>myapp://auth/callback</code>.</li>
<li><strong>That URL is on Supabase's allow list.</strong> If it isn't, Supabase ignores it and falls back to the Site URL.</li>
<li><strong>Your app handles the incoming link</strong> and turns it into a session.</li>
</ol>
<h2>Step 1: Give your app a URL scheme</h2>
<p>In <code>app.json</code>:</p>
<pre><code class="language-json">{
  "expo": {
    "scheme": "myapp"
  }
}
</code></pre>
<p>Rebuild your development build after changing it. Then build redirect URLs with <code>expo-linking</code>, which produces the right format for each environment (your custom scheme in builds, an <code>exp://</code> URL in Expo Go):</p>
<pre><code class="language-ts">import * as Linking from 'expo-linking';

export const authCallbackUrl = Linking.createURL('/auth/callback');
// e.g. myapp://auth/callback in a development or store build
</code></pre>
<h2>Step 2: Add your redirect URLs in Supabase</h2>
<p>In the Supabase dashboard, go to <strong>Authentication → URL Configuration</strong> and add your app's URLs to <strong>Redirect URLs</strong>:</p>
<ul>
<li><code>myapp://**</code> for your builds (Supabase supports wildcard patterns; check the docs for the current syntax)</li>
<li>Your Expo Go development URL if you test there (the <code>exp://</code> URL <code>createURL</code> prints)</li>
</ul>
<p>Keep the <strong>Site URL</strong> set to your website. It's the fallback for anything not on the list.</p>
<p><strong>If your link lands on the Site URL instead of your app, this step is almost always the reason.</strong></p>
<h2>Step 3: Use the PKCE flow in your client</h2>
<p>Configure the Supabase client for mobile with PKCE:</p>
<pre><code class="language-ts">import 'react-native-url-polyfill/auto';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { createClient } from '@supabase/supabase-js';

export const supabase = createClient(
  process.env.EXPO_PUBLIC_SUPABASE_URL!,
  process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!,
  {
    auth: {
      storage: AsyncStorage,
      autoRefreshToken: true,
      persistSession: true,
      detectSessionInUrl: false,
      flowType: 'pkce',
    },
  }
);
</code></pre>
<p>With PKCE, the redirect contains a short-lived <code>code</code> in the query string (<code>?code=...</code>) instead of tokens in the URL. Your app exchanges the code for a session.</p>
<p><strong>The PKCE gotcha:</strong> when your app starts the flow, the client stores a secret "code verifier" on the device. The exchange only works on <strong>the same device and app</strong> that requested the email. A magic link opened on a laptop, or in a different app install, can't complete. That's by design, and it's the most common "it works for me but not for users" bug.</p>
<h2>Step 4: Handle the callback in your app</h2>
<p>With Expo Router, create a route that matches the redirect path. The <code>code</code> arrives as a search param:</p>
<pre><code class="language-tsx">// app/auth/callback.tsx
import { useEffect } from 'react';
import { ActivityIndicator, View } from 'react-native';
import { router, useLocalSearchParams } from 'expo-router';
import { supabase } from '@/lib/supabase';

export default function AuthCallback() {
  const { code, type } = useLocalSearchParams&lt;{ code?: string; type?: string }&gt;();

  useEffect(() =&gt; {
    async function finish() {
      if (!code) {
        router.replace('/sign-in');
        return;
      }
      const { error } = await supabase.auth.exchangeCodeForSession(code);
      if (error) {
        router.replace('/sign-in?error=link-expired');
        return;
      }
      // Password reset links continue to the "choose a new password" screen
      router.replace(type === 'recovery' ? '/reset-password' : '/');
    }
    finish();
  }, [code, type]);

  return (
    &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt;
      &lt;ActivityIndicator /&gt;
    &lt;/View&gt;
  );
}
</code></pre>
<p>Use <code>router.replace</code> so the callback screen isn't left in the back stack.</p>
<h2>How do I send a magic link from an Expo app?</h2>
<pre><code class="language-ts">import { supabase } from '@/lib/supabase';
import { authCallbackUrl } from '@/lib/links';

export async function sendMagicLink(email: string) {
  const { error } = await supabase.auth.signInWithOtp({
    email,
    options: { emailRedirectTo: authCallbackUrl },
  });
  if (error) throw error;
}
</code></pre>
<p>Show a clear "Check your email" screen afterwards, and tell users to open the link <strong>on this phone</strong>.</p>
<h2>How do I handle password reset in Expo with Supabase?</h2>
<p>Password reset is two parts: send the email, then let the user set a new password once they're back in the app.</p>
<pre><code class="language-ts">export async function sendPasswordReset(email: string) {
  const { error } = await supabase.auth.resetPasswordForEmail(email, {
    redirectTo: `${authCallbackUrl}?type=recovery`,
  });
  if (error) throw error;
}
</code></pre>
<p>When the link opens the app, the callback exchanges the code (which signs the user in) and routes to <code>/reset-password</code>, where you update the password:</p>
<pre><code class="language-ts">const { error } = await supabase.auth.updateUser({ password: newPassword });
</code></pre>
<p>Then send them into the app. Ask for the new password twice, and show requirements up front.</p>
<h2>How do I make sign-up confirmation emails open my app?</h2>
<p>Pass the same redirect when signing up:</p>
<pre><code class="language-ts">const { error } = await supabase.auth.signUp({
  email,
  password,
  options: { emailRedirectTo: authCallbackUrl },
});
</code></pre>
<p>When the user taps "Confirm your email", Supabase verifies it and redirects to your callback, which completes sign-in. Until then, show a "Confirm your email" screen with a "Resend email" button.</p>
<h2>The more reliable option: 6-digit email codes</h2>
<p>Deep links from email depend on things you don't control: which email app the user has, whether it opens links in an in-app browser and whether they read email on another device. For mobile apps, <strong>one-time codes</strong> remove all of that.</p>
<ol>
<li><strong>Edit the email template</strong> in Supabase (<strong>Authentication → Emails</strong>) to show the code. Supabase's templates expose the code as <code>{{ .Token }}</code>, so the email can say "Your sign-in code is {{ .Token }}" instead of (or alongside) the link.</li>
<li><strong>Send the email</strong> with <code>signInWithOtp</code>, exactly as before.</li>
<li><strong>Verify the code in the app:</strong></li>
</ol>
<pre><code class="language-ts">export async function verifyEmailCode(email: string, token: string) {
  const { error } = await supabase.auth.verifyOtp({ email, token, type: 'email' });
  if (error) throw error;
}
</code></pre>
<p>Users copy a short code from any device, the app never leaves the screen, and the whole deep link problem disappears. On iOS, set <code>textContentType="oneTimeCode"</code> on the input so the keyboard can suggest it.</p>
<h2>Why do Supabase emails stop arriving in production?</h2>
<p>Supabase's built-in email service is meant for development and has strict sending limits. For production, configure <strong>custom SMTP</strong> (Authentication settings) with a transactional email provider, and set up your domain's SPF and DKIM records so emails don't land in spam. Many "magic links don't work" reports are actually "emails never arrived".</p>
<h2>Troubleshooting checklist</h2>
<ul>
<li><strong>Lands on the website or localhost:</strong> the redirect URL isn't on the allow list, so Supabase used the Site URL.</li>
<li><strong>Opens the browser, then nothing:</strong> the scheme isn't registered in the build you're running; rebuild after setting <code>scheme</code>.</li>
<li><strong>"Invalid flow state" or code exchange fails:</strong> the link was opened on a different device or app install than the one that requested it (PKCE), or it expired. Request a new one.</li>
<li><strong>Works in Expo Go, not in the store build (or the reverse):</strong> the <code>exp://</code> and <code>myapp://</code> URLs differ; add both to the allow list.</li>
<li><strong>Link opens inside the email app's browser:</strong> some email apps do this. Use universal links or app links with your own domain, or switch to email codes.</li>
<li><strong>Emails don't arrive:</strong> set up custom SMTP and check spam.</li>
</ul>
<h2>Conclusion</h2>
<p>Supabase email auth in Expo works reliably once four pieces line up: a URL scheme, an allow-listed redirect, the PKCE code exchange in a callback route, and awareness that the link must open on the same device. For the smoothest mobile experience, consider 6-digit email codes, which skip deep links entirely.</p>
<p><em>Magic links or email codes: which do you use in your Expo app, and why? Share your setup in the comments.</em></p>
]]></content:encoded></item><item><title><![CDATA[The Night-Before-Submission Checklist: 30 Things to Check Before You Hit "Submit for Review"]]></title><description><![CDATA[The night-before-submission checklist for App Store and Google Play: 30 checks across the build, the app, store consoles and review notes.]]></description><link>https://julessarah.hashnode.dev/the-night-before-submission-checklist-30-things-to-check-before-you-hit-submit-for-review</link><guid isPermaLink="true">https://julessarah.hashnode.dev/the-night-before-submission-checklist-30-things-to-check-before-you-hit-submit-for-review</guid><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Mon, 16 Nov 2026 14:22:04 GMT</pubDate><content:encoded><![CDATA[<p><em>Bookmark this. It's the list we run through before every App Store and Google Play submission, grouped so you can check it in about an hour.</em></p>
<p><strong>TL;DR:</strong> most rejections aren't caused by bad apps. They're caused by something small that nobody checked: a build number that didn't change, a demo account that expired, a privacy answer that doesn't match the app, a permission message that says "needs camera". This checklist covers the 30 things that catch apps most often, across the build, the app itself, App Store Connect, Play Console and the review notes.</p>
<p>App review is unforgiving in a specific way: one missed detail sends the whole submission back, and you lose another day or two in the queue. The fix is boring and effective: a checklist.</p>
<p><em>Disclosure: this is the checklist we use at</em> <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=submission-checklist&amp;utm_content=intro"><em>LetsDeployIt</em></a> <em>when we submit AI-built apps for founders.</em></p>
<h2>The build (5)</h2>
<ol>
<li><strong>The build number is higher than the last upload.</strong> Both stores reject reused build numbers. Use auto-increment (with EAS, <code>autoIncrement</code> and remote versioning) so it can't happen.</li>
<li><strong>The user-facing version is right.</strong> <code>1.0.0</code> for launch, bumped for releases users should notice.</li>
<li><strong>It's a production build</strong> pointing at production services, not staging. Check the API URL inside the actual build, not your local config.</li>
<li><strong>Debug tools are gone.</strong> No dev menus, test toggles or console overlays.</li>
<li><strong>You installed this exact build</strong> from TestFlight and Play's internal testing track, not just a development build.</li>
</ol>
<h2>The app itself (10)</h2>
<ol start="6">
<li><strong>It works on a fresh install,</strong> logged out, with no cached data.</li>
<li><strong>No placeholder content.</strong> No "lorem ipsum", "Test User" or empty screens.</li>
<li><strong>Account deletion works</strong> from inside the app, and actually deletes the data.</li>
<li><strong>Sign in with Apple is offered</strong> if there's Google or other social login on iOS.</li>
<li><strong>Every permission has a clear purpose message,</strong> and is requested when the feature is used, not on launch.</li>
<li><strong>The privacy policy is reachable inside the app,</strong> usually from Settings.</li>
<li><strong>Digital purchases use in-app purchase,</strong> and there's a "Restore purchases" option.</li>
<li><strong>It works offline gracefully:</strong> an error state, not a blank screen or a crash.</li>
<li><strong>It looks right on the smallest and largest phones,</strong> and on iPad if your iOS app can run there.</li>
<li><strong>No links or buttons lead to dead ends,</strong> "coming soon" pages or unfinished features.</li>
</ol>
<h2>App Store Connect (6)</h2>
<ol start="16">
<li><strong>Screenshots match the build you're submitting,</strong> in the sizes App Store Connect requires.</li>
<li><strong>App Privacy answers match</strong> what the app and its SDKs actually collect.</li>
<li><strong>The privacy policy URL works</strong> and describes this app.</li>
<li><strong>The age rating questionnaire</strong> is answered honestly.</li>
<li><strong>Export compliance</strong> (encryption) is answered, so the build isn't stuck waiting.</li>
<li><strong>Name, subtitle and keywords</strong> contain no competitor names or other trademarks.</li>
</ol>
<h2>Google Play Console (5)</h2>
<ol start="22">
<li><strong>The Data safety form matches</strong> your App Privacy answers and your privacy policy.</li>
<li><strong>The account deletion web link works</strong> without the app installed.</li>
<li><strong>Content rating, target audience and ads declarations</strong> are complete in App content.</li>
<li><strong>The closed test requirement is met,</strong> if your personal account was created after November 13, 2023: 12 or more testers opted in for 14 days in a row. <a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=submission-checklist&amp;utm_content=closed-test">How it works</a>.</li>
<li><strong>The release is on the right track:</strong> testing first, then production.</li>
</ol>
<h2>The review notes (4)</h2>
<ol start="27">
<li><strong>A working demo account,</strong> with realistic data, that won't expire during review.</li>
<li><strong>Directions to anything a reviewer might miss:</strong> where account deletion is, how to reach a paid feature, what hardware or location is needed.</li>
<li><strong>Explanations for anything unusual,</strong> like why you need background location or why some content requires a subscription.</li>
<li><strong>A contact who will actually answer</strong> during the review window.</li>
</ol>
<h2>How to use it</h2>
<ul>
<li><strong>Copy it into your repo</strong> as <code>SUBMISSION_CHECKLIST.md</code> and tick it off in the pull request for each release.</li>
<li><strong>Automate what you can.</strong> Build numbers, environment variables and type checks belong in CI, not on a list.</li>
<li><strong>Add a line every time you're rejected.</strong> Your checklist should get longer exactly once per lesson.</li>
</ul>
<p>If you do get rejected, read the guideline number, fix that exact issue, and reply explaining what changed and where to find it. Clear replies get faster second reviews. Our <a href="https://letsdeploy.it/guides/lovable-launch-checklist-and-costs?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=submission-checklist&amp;utm_content=launch-checklist">launch checklist</a> covers the full set of requirements and costs.</p>
<h2>Conclusion</h2>
<p>Thirty checks, about an hour, and most first-submission rejections disappear. The checklist won't make your app better, but it will stop small, avoidable mistakes from costing you a week.</p>
<p>If you'd rather hand the whole submission off, <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=submission-checklist&amp;utm_content=conclusion">LetsDeployIt</a> prepares and submits AI-built apps to both stores until they're approved.</p>
<p><em>What would you add as item 31? Share it in the comments, and we'll add the best ones to the list.</em></p>
]]></content:encoded></item><item><title><![CDATA[Your Lovable App Works. Here Are 7 Surprises Between You and the App Store.]]></title><description><![CDATA[Your Lovable app works. Here's what happens next: the 7 surprises between your web app and the App Store and Google Play, and how to handle each.]]></description><link>https://julessarah.hashnode.dev/your-lovable-app-works-here-are-7-surprises-between-you-and-the-app-store</link><guid isPermaLink="true">https://julessarah.hashnode.dev/your-lovable-app-works-here-are-7-surprises-between-you-and-the-app-store</guid><category><![CDATA[lovable]]></category><category><![CDATA[app store]]></category><category><![CDATA[No Code]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[startup]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 05 Nov 2026 12:17:20 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on</em> <a href="PASTE-YOUR-MEDIUM-LINK-HERE"><em>Medium</em></a><em>.</em></p>
<p><em>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.</em></p>
<p>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?"</p>
<p>So you do what feels like the obvious next step. You open your notes and write: <em>Put it on the App Store this week.</em></p>
<p>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".</p>
<p>Here they are, in the order you'll probably meet them, so none of them catch you off guard.</p>
<p><em>Full disclosure: we're</em> <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=intro"><em>LetsDeployIt</em></a><em>, 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.</em></p>
<h2>Surprise 1: "Publish" didn't publish it where you think</h2>
<p>Lovable has a big, friendly Publish button. You click it, and your app goes live at a web address. It feels like a launch.</p>
<p>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.</p>
<blockquote>
<p>The first surprise isn't a problem. It's a realization: Lovable built you a web app, and the stores only accept native apps.</p>
</blockquote>
<p><strong>What to do:</strong> 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.</p>
<h2>Surprise 2: Wrapping it might get you rejected</h2>
<p>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.</p>
<p>Then Apple replies with three words founders learn to dread: <em>Guideline 4.2, Minimum Functionality.</em></p>
<p>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.</p>
<p><strong>What to do:</strong> 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. <a href="https://letsdeploy.it/guides/lovable-app-rejected-guideline-4-2?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=guideline-4-2">Here's what reviewers look for</a>.</p>
<h2>Surprise 3: You need two developer accounts, and one of them asks hard questions</h2>
<p>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: <strong>personal or organization account?</strong></p>
<p>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.</p>
<p><strong>What to do:</strong> open both accounts on day one, because verification takes time. If you have a company, seriously consider organization accounts.</p>
<h2>Surprise 4: Your login screen is the problem</h2>
<p>You didn't even think about the login screen. Lovable made it for you: email and password, plus a nice "Continue with Google" button.</p>
<p>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 <strong>Sign in with Apple</strong>. Lovable doesn't add it, because a website doesn't need it.</p>
<p><strong>What to do:</strong> 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.</p>
<h2>Surprise 5: People can sign up but can't leave</h2>
<p>Here's a rejection that surprises almost everyone: <em>"Your app supports account creation but does not include an option to initiate account deletion."</em></p>
<p>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.</p>
<p>Lovable adds sign-up and stops there.</p>
<p><strong>What to do:</strong> 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. <a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=account-deletion">Step-by-step fix</a>.</p>
<h2>Surprise 6: You need 12 strangers to use your app for two weeks</h2>
<p>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 <strong>12 testers</strong> must stay opted in to a closed test for <strong>14 days in a row</strong>. Then you apply for production access, and Google reviews that too.</p>
<p>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.</p>
<p>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.</p>
<p><strong>What to do:</strong> 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. <a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=closed-test">Full guide to the closed test</a>.</p>
<h2>Surprise 7: Your Stripe checkout doesn't work the same way in the app</h2>
<p>Your Lovable app takes payments with Stripe, and it works beautifully on the web. Then you learn that if you sell <strong>digital</strong> things inside your iPhone or Android app, like subscriptions, premium features or credits, the stores generally require their own in-app purchase systems.</p>
<p>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.</p>
<p><strong>What to do:</strong> 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.</p>
<h2>The bonus surprise: the paperwork takes a full day</h2>
<p>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.</p>
<p>None of it is hard. All of it takes longer than you'd guess.</p>
<h2>So what does "this week" really look like?</h2>
<p>Here's the honest version for most Lovable apps:</p>
<ul>
<li><strong>Week 1:</strong> open accounts, get a native build, add Sign in with Apple and account deletion, start the Google Play closed test.</li>
<li><strong>Week 2:</strong> finish the store listings, test on real phones, submit to Apple. Your iPhone app is often live by the end of it.</li>
<li><strong>Week 3:</strong> the closed test finishes, Google approves production access, and your Android app goes live.</li>
</ul>
<p>About three weeks, when nothing goes wrong. A rejection or a slow account verification can add another.</p>
<p>That's not a reason to give up on "this week". It's a reason to start the slow parts today.</p>
<h2>Your Lovable app publishing checklist</h2>
<p>Before you submit anything, check you have:</p>
<ol>
<li>A native build, not just your website in a frame.</li>
<li>Apple and Google developer accounts, verified.</li>
<li>Sign in with Apple, if you have Google login.</li>
<li>In-app account deletion, plus a web deletion page for Google Play.</li>
<li>A Google Play closed test with 15 to 20 testers, started as early as possible.</li>
<li>A plan for payments if you sell anything digital.</li>
<li>A privacy policy, store screenshots and a demo account for reviewers.</li>
</ol>
<p>Our <a href="https://letsdeploy.it/guides/lovable-launch-checklist-and-costs?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=launch-checklist">launch checklist</a> has every requirement and cost in one place.</p>
<h2>You don't have to find these out the hard way</h2>
<p>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.</p>
<p>Now you've met them all.</p>
<p>If you'd rather skip the three weeks of learning, that's exactly what we do at <a href="https://letsdeploy.it/lovable-to-app-store?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=lovable-page">LetsDeployIt</a>. 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 <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=conclusion">how it works</a> or <a href="https://letsdeploy.it/pricing?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=lovable-app-publishing&amp;utm_content=pricing">our plans</a>.</p>
<p><em>Which of these surprises did you hit first? Tell us in the comments. We read every one.</em></p>
]]></content:encoded></item><item><title><![CDATA[How to Publish a Replit App to the App Store and Google Play (2026)]]></title><description><![CDATA[Built an app with Replit? How to get it onto the App Store and Google Play, whether it's a web app or an Expo app, and the traps to avoid.]]></description><link>https://julessarah.hashnode.dev/how-to-publish-a-replit-app-to-the-app-store-and-google-play-2026</link><guid isPermaLink="true">https://julessarah.hashnode.dev/how-to-publish-a-replit-app-to-the-app-store-and-google-play-2026</guid><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Mon, 02 Nov 2026 12:24:40 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on</em> <a href="PASTE-YOUR-DEVTO-LINK-HERE"><em>Dev.to</em></a><em>.</em></p>
<p><strong>Short answer:</strong> first check what Replit built for you. If it's a <strong>web app</strong> (most Replit Agent projects are), you need to turn it into a native app before the stores will take it. If it's a <strong>mobile app built with Expo</strong>, 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.</p>
<p>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.</p>
<p><em>Disclosure: this guide is from</em> <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=intro"><em>LetsDeployIt</em></a><em>, where we publish AI-built apps to both stores.</em></p>
<h2>What did Replit build: a web app or a mobile app?</h2>
<p>Open your project and look at the files and the preview:</p>
<ul>
<li><strong>A web app</strong> 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.</li>
<li><strong>A mobile app</strong> uses Expo and React Native. You'll see an <code>app.json</code> or <code>app.config</code> file and <code>expo</code> in <code>package.json</code>, and you preview it on your phone with Expo Go.</li>
</ul>
<p>The path to the stores depends on which one you have.</p>
<h2>Path A: your Replit app is a web app</h2>
<p>The App Store and Google Play want native apps, so a web app needs a native version first. You have two options:</p>
<ul>
<li><strong>Wrap it:</strong> 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 <a href="https://letsdeploy.it/guides/lovable-app-rejected-guideline-4-2?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=guideline-4-2">Guideline 4.2</a>.</li>
<li><strong>Convert it:</strong> 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.</li>
</ul>
<p>Your Replit web app keeps running either way. The store app is a separate build that uses the same data.</p>
<h2>Path B: your Replit app uses Expo</h2>
<p>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:</p>
<pre><code class="language-bash">npm install -g eas-cli
eas login
eas build:configure
eas build --platform all
eas submit --platform ios
eas submit --platform android
</code></pre>
<p>Before building, check <code>app.json</code> has a real app name, an <code>ios.bundleIdentifier</code> and an <code>android.package</code> (like <code>com.yourcompany.yourapp</code>), plus your icon and splash screen.</p>
<h2>The Replit-specific traps</h2>
<p>These catch Replit apps more than most:</p>
<ul>
<li><strong>Your app must call your deployed backend, not the development URL.</strong> The URL you see while building is for development. Publish your backend with Replit Deployments and point the mobile app at the deployed <code>.replit.app</code> address (or your own domain), so it keeps working when your workspace isn't open.</li>
<li><strong>Keep your deployment always available.</strong> A store app with a backend that's asleep or stopped looks broken to reviewers. Choose a deployment type that suits real traffic.</li>
<li><strong>Don't put secret keys in the app.</strong> 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.</li>
</ul>
<h2>What the stores require that Replit doesn't add</h2>
<p>AI builders focus on making the app work. The stores also expect:</p>
<ul>
<li><strong>Account deletion</strong> inside the app if people can sign up. <a href="https://letsdeploy.it/guides/app-rejected-account-deletion?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=account-deletion">How to add it</a>.</li>
<li><strong>Sign in with Apple</strong> next to Google or other social login on iPhone.</li>
<li><strong>A privacy policy</strong> on a public web page.</li>
<li><strong>Apple's in-app purchase</strong> for digital goods and subscriptions.</li>
<li><strong>A demo account</strong> for the reviewer if any part of the app needs a login.</li>
</ul>
<h2>Developer accounts and the Google Play closed test</h2>
<p>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. <a href="https://letsdeploy.it/guides/lovable-app-google-play-closed-test?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=closed-test">Here's how the closed test works</a>. Start it as early as you can.</p>
<h2>How long does it take?</h2>
<p>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.</p>
<h2>FAQ</h2>
<p><strong>Can I publish a Replit app directly to the App Store?</strong> Only if it's a native mobile app, such as an Expo project. A Replit web app needs a native version first.</p>
<p><strong>Do I need a Mac?</strong> Not with Expo's cloud builds.</p>
<p><strong>Will my Replit web app keep working?</strong> Yes. The store app is separate and can use the same backend.</p>
<p><strong>Why was my wrapped Replit app rejected?</strong> 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.</p>
<h2>Conclusion</h2>
<p>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, <a href="https://letsdeploy.it/how-it-works?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=conclusion">LetsDeployIt</a> converts AI-built apps to native and takes them through both stores until they're approved. See the <a href="https://letsdeploy.it/guides/lovable-launch-checklist-and-costs?utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=replit-app-publishing&amp;utm_content=launch-checklist">launch checklist</a> for every requirement in one place.</p>
<p>Stuck on a Replit app right now? Tell us where in the comments.</p>
]]></content:encoded></item><item><title><![CDATA[Write Supabase Edge Functions You Can Actually Test: Handlers, RLS, Errors, and a Local Loop]]></title><description><![CDATA[Structure Supabase Edge Functions for testing: pure handlers, user-scoped clients that respect RLS, clear error responses, and fast local tests.]]></description><link>https://julessarah.hashnode.dev/testable-supabase-edge-functions-local</link><guid isPermaLink="true">https://julessarah.hashnode.dev/testable-supabase-edge-functions-local</guid><category><![CDATA[supabase]]></category><category><![CDATA[Deno]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[Testing]]></category><category><![CDATA[serverless]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Mon, 19 Oct 2026 04:48:44 GMT</pubDate><content:encoded><![CDATA[<hr />
<p>Most Supabase Edge Functions start the same way: one <code>index.ts</code>, a <code>Deno.serve</code> call, and everything inline. Parse the request, create a client, query the database, call an API, return a response.</p>
<p>It works until you need to change it. Then the only way to know whether it still works is to deploy and click through the app. Errors come back as generic 500s. And because the function was written with an admin key "to make it work," it quietly skips every RLS policy you wrote.</p>
<p>This guide is a structure for Edge Functions that fixes all three: handlers you can test like plain functions, clients that respect RLS, explicit error responses, and a local loop fast enough to run on every save.</p>
<h2>What makes an Edge Function hard to test?</h2>
<p>Three things, usually:</p>
<ol>
<li><p><strong>The logic lives inside</strong> <code>Deno.serve</code><strong>.</strong> You can't call it without starting a server.</p>
</li>
<li><p><strong>Dependencies are created inline.</strong> The function builds its own database client and API clients, so a test can't swap them.</p>
</li>
<li><p><strong>Errors aren't designed.</strong> Everything that goes wrong becomes a thrown exception and a 500.</p>
</li>
</ol>
<p>The fix is a small change in structure.</p>
<h2>How should you structure the function?</h2>
<p>Split each function into two files: a <strong>handler</strong> that holds the logic, and an <strong>entry point</strong> that wires it to the runtime.</p>
<pre><code class="language-plaintext">supabase/functions/
  create-note/
    handler.ts   ← logic: takes a Request and dependencies, returns a Response
    index.ts     ← wiring: Deno.serve + real dependencies
</code></pre>
<h3>The handler</h3>
<pre><code class="language-ts">// supabase/functions/create-note/handler.ts
import type { SupabaseClient } from 'npm:@supabase/supabase-js@2';

export type Deps = {
  clientFor: (req: Request) =&gt; SupabaseClient; // a client scoped to the caller
};

const json = (body: unknown, status = 200) =&gt;
  new Response(JSON.stringify(body), {
    status,
    headers: { 'Content-Type': 'application/json' },
  });

export async function handler(req: Request, deps: Deps): Promise&lt;Response&gt; {
  if (req.method !== 'POST') return json({ error: 'Method not allowed' }, 405);

  if (!req.headers.get('Authorization')) {
    return json({ error: 'Sign in required' }, 401);
  }

  let body: { title?: string };
  try {
    body = await req.json();
  } catch {
    return json({ error: 'Invalid JSON' }, 400);
  }

  const title = body.title?.trim();
  if (!title) return json({ error: 'Title is required', field: 'title' }, 400);
  if (title.length &gt; 200) return json({ error: 'Title is too long', field: 'title' }, 400);

  const supabase = deps.clientFor(req);
  const { data, error } = await supabase
    .from('notes')
    .insert({ title })
    .select('id, title')
    .single();

  if (error) {
    // RLS rejections and constraint errors land here
    return json({ error: 'Could not save the note' }, 403);
  }

  return json(data, 201);
}
</code></pre>
<h3>The entry point</h3>
<pre><code class="language-ts">// supabase/functions/create-note/index.ts
import { createClient } from 'npm:@supabase/supabase-js@2';
import { handler } from './handler.ts';

const url = Deno.env.get('SUPABASE_URL')!;
const publicKey = Deno.env.get('SUPABASE_ANON_KEY')!; // or your publishable key

Deno.serve((req) =&gt;
  handler(req, {
    clientFor: (r) =&gt;
      createClient(url, publicKey, {
        global: { headers: { Authorization: r.headers.get('Authorization') ?? '' } },
      }),
  })
);
</code></pre>
<p>The entry point is three lines of wiring you'll rarely touch. Everything worth testing is in <code>handler.ts</code>.</p>
<h2>Why use a user-scoped client instead of the admin key?</h2>
<p>Look at <code>clientFor</code> above. It creates a client with your <strong>public</strong> key and forwards the caller's <code>Authorization</code> header. Every query then runs <strong>as that user</strong>, and your RLS policies apply exactly as they do when the app queries directly.</p>
<p>The alternative, creating the client with a secret or <code>service_role</code> key, bypasses RLS completely. It's tempting because "it just works," but it means:</p>
<ul>
<li><p>A bug in your function can read or write any user's data.</p>
</li>
<li><p>You have to re-implement your security rules in TypeScript, and keep them in sync with your policies.</p>
</li>
<li><p><code>default auth.uid()</code> columns don't get filled in, because there's no user.</p>
</li>
</ul>
<p>Use a secret key only for work that genuinely needs admin access, like a scheduled cleanup job, and keep that code separate and small.</p>
<h2>How do you design error responses?</h2>
<p>The handler above returns a specific status and message for each failure:</p>
<table>
<thead>
<tr>
<th>Situation</th>
<th>Status</th>
<th>Body</th>
</tr>
</thead>
<tbody><tr>
<td>Wrong method</td>
<td>405</td>
<td><code>{ error }</code></td>
</tr>
<tr>
<td>Not signed in</td>
<td>401</td>
<td><code>{ error }</code></td>
</tr>
<tr>
<td>Malformed JSON</td>
<td>400</td>
<td><code>{ error }</code></td>
</tr>
<tr>
<td>Invalid field</td>
<td>400</td>
<td><code>{ error, field }</code></td>
</tr>
<tr>
<td>Blocked by RLS or a constraint</td>
<td>403</td>
<td><code>{ error }</code></td>
</tr>
<tr>
<td>Success</td>
<td>201</td>
<td>the created row</td>
</tr>
</tbody></table>
<p>This matters for users, not just developers. The app can show "Sign in again" for a 401, highlight the right field for a 400, and only fall back to "Something went wrong" for genuine failures. Generic 500s leave users guessing whether to retry, wait, or give up.</p>
<h2>How do you unit test the handler?</h2>
<p>Because the handler takes a <code>Request</code> and returns a <code>Response</code>, you can test it with no server at all. Pass in a fake dependency:</p>
<pre><code class="language-ts">// supabase/functions/create-note/handler.test.ts
import { assertEquals } from 'jsr:@std/assert';
import { handler } from './handler.ts';

const fakeClient = (result: { data?: unknown; error?: unknown }) =&gt;
  ({
    from: () =&gt; ({
      insert: () =&gt; ({ select: () =&gt; ({ single: async () =&gt; result }) }),
    }),
  }) as any;

const post = (body: unknown, auth = 'Bearer test') =&gt;
  new Request('http://localhost/create-note', {
    method: 'POST',
    headers: { Authorization: auth, 'Content-Type': 'application/json' },
    body: JSON.stringify(body),
  });

Deno.test('rejects a missing title', async () =&gt; {
  const res = await handler(post({}), { clientFor: () =&gt; fakeClient({}) });
  assertEquals(res.status, 400);
});

Deno.test('requires sign-in', async () =&gt; {
  const req = new Request('http://localhost/create-note', { method: 'POST' });
  const res = await handler(req, { clientFor: () =&gt; fakeClient({}) });
  assertEquals(res.status, 401);
});

Deno.test('returns 201 with the created note', async () =&gt; {
  const note = { id: 1, title: 'Hello' };
  const res = await handler(post({ title: 'Hello' }), {
    clientFor: () =&gt; fakeClient({ data: note, error: null }),
  });
  assertEquals(res.status, 201);
  assertEquals(await res.json(), note);
});
</code></pre>
<pre><code class="language-bash">deno test supabase/functions/create-note/
</code></pre>
<p>These run in milliseconds. They cover validation and error handling, which is where most function bugs live.</p>
<h2>How do you test against a real backend?</h2>
<p>Unit tests don't prove that your RLS policies and queries actually work. For that, run the function against a local backend and call it the way your app does.</p>
<p>Start a local Supabase backend:</p>
<pre><code class="language-bash">supabase start          # official CLI (Docker), serves functions with `supabase functions serve`
# or
npx tinbase start       # tinbase (no Docker)
</code></pre>
<p><a href="https://github.com/tinbase/tinbase?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=testable_edge_functions">tinbase</a> is an open-source, Supabase-compatible backend I work on. It runs <code>Deno.serve</code>-style and <code>export default</code> handlers unchanged. One caveat from its README: <code>npm:</code>, <code>jsr:</code>, and URL imports need bundling first, so check the docs for your setup. It's alpha and for development only.</p>
<p>Then write an integration test with two users, calling the function through <code>supabase-js</code>:</p>
<pre><code class="language-ts">const alice = createClient(LOCAL_URL, LOCAL_PUBLIC_KEY, { auth: { persistSession: false } });
await alice.auth.signInAnonymously();

const { data, error } = await alice.functions.invoke('create-note', {
  body: { title: 'Alice note' },
});
// expect: no error, data.title === 'Alice note'

const bob = createClient(LOCAL_URL, LOCAL_PUBLIC_KEY, { auth: { persistSession: false } });
await bob.auth.signInAnonymously();

const { data: bobNotes } = await bob.from('notes').select('title');
// expect: bobNotes does not include 'Alice note'
</code></pre>
<p>That last check is the one that catches the expensive bugs: it proves the function created the note <strong>as Alice</strong>, and Bob can't see it.</p>
<h2>What about CORS for web clients?</h2>
<p>If a browser calls your function, it sends a preflight <code>OPTIONS</code> request first. Handle it at the top of the entry point:</p>
<pre><code class="language-ts">const cors = {
  'Access-Control-Allow-Origin': '*', // restrict to your domain in production
  'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
};

Deno.serve(async (req) =&gt; {
  if (req.method === 'OPTIONS') return new Response('ok', { headers: cors });
  const res = await handler(req, deps);
  Object.entries(cors).forEach(([k, v]) =&gt; res.headers.set(k, v));
  return res;
});
</code></pre>
<p>Mobile apps don't need this, but web dashboards and admin panels do.</p>
<h2>What does the fast loop look like?</h2>
<ol>
<li><p><strong>Write or change the handler.</strong></p>
</li>
<li><p><strong>Run unit tests</strong> (<code>deno test</code>): milliseconds, on every save.</p>
</li>
<li><p><strong>Run integration tests</strong> against the local backend: seconds, before every commit.</p>
</li>
<li><p><strong>Deploy</strong> once both pass.</p>
</li>
</ol>
<p>The structure is what makes this possible. With logic inside <code>Deno.serve</code> and an admin key inline, you'd skip straight from step 1 to step 4 and find out in production.</p>
<h2>The checklist</h2>
<ul>
<li><p>[ ] Logic lives in <code>handler.ts</code>; <code>index.ts</code> only wires dependencies</p>
</li>
<li><p>[ ] Dependencies (clients, API wrappers) are passed in, not created inline</p>
</li>
<li><p>[ ] Database access uses a user-scoped client, so RLS applies</p>
</li>
<li><p>[ ] Secret keys only in small, separate admin-only functions</p>
</li>
<li><p>[ ] Every failure returns a specific status and message</p>
</li>
<li><p>[ ] Unit tests for validation and errors</p>
</li>
<li><p>[ ] Integration test with two users against a local backend</p>
</li>
<li><p>[ ] CORS handled if browsers call the function</p>
</li>
</ul>
<h2>FAQ</h2>
<p><strong>How do I test a Supabase Edge Function without deploying it?</strong> Move the logic into a handler that takes a <code>Request</code> and returns a <code>Response</code>, test it with <code>deno test</code>, then run integration tests against a local backend such as the Supabase CLI or tinbase.</p>
<p><strong>Should Edge Functions use the service_role or secret key?</strong> Only for genuinely admin tasks. For user actions, create a client with your public key and the caller's <code>Authorization</code> header, so RLS policies apply.</p>
<p><strong>Why does my function return a generic 500?</strong> Usually because errors are thrown instead of returned. Return explicit responses: 400 for bad input, 401 for missing auth, 403 for permission errors.</p>
<p><strong>Do I need CORS headers?</strong> Only when browsers call the function. Handle the <code>OPTIONS</code> preflight and add CORS headers to responses.</p>
<p><strong>Does tinbase run Supabase Edge Functions?</strong> It runs <code>Deno.serve</code>-style and <code>export default</code> handlers unchanged. <code>npm:</code>, <code>jsr:</code>, and URL imports need bundling. It's alpha and intended for local development.</p>
<hr />
<p><em>tinbase is an open-source, MIT-licensed, Supabase-compatible backend that runs without Docker. Source and known gaps are on</em> <a href="https://github.com/tinbase/tinbase?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=testable_edge_functions"><em>GitHub</em></a><em>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Apple Privacy Labels and Google Data Safety for Expo Apps: An SDK-by-SDK Mapping]]></title><description><![CDATA[Stop guessing on the privacy forms. Here's how Supabase, analytics, crash reporting, payments, and push map to each answer, plus the privacy manifest Apple…]]></description><link>https://julessarah.hashnode.dev/apple-privacy-labels-and-google-data-safety-for-expo-apps-an-sdk-by-sdk-mapping</link><guid isPermaLink="true">https://julessarah.hashnode.dev/apple-privacy-labels-and-google-data-safety-for-expo-apps-an-sdk-by-sdk-mapping</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[iOS]]></category><category><![CDATA[Android]]></category><category><![CDATA[, privacy, app-store]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 15 Oct 2026 11:43:47 GMT</pubDate><content:encoded><![CDATA[<p>The privacy forms are where a lot of first submissions stall. Not because they're hard, but because they ask questions about your app that you've never had to answer: <em>Is a user ID "linked to identity"? Is a crash report "collected"? Is sending data to Supabase "sharing"?</em></p>
<p>Guess wrong and you get a rejection, a policy warning on Google Play, or a listing that says your app collects things it doesn't.</p>
<p>This guide maps the SDKs a typical Expo + Supabase app uses to the answers on both forms. Treat it as a starting point, not legal advice: your answers depend on how <em>your</em> app uses each SDK, and you should check each vendor's own privacy documentation.</p>
<h2>What are the two forms actually asking?</h2>
<p>They cover the same idea with different vocabulary.</p>
<table>
<thead>
<tr>
<th></th>
<th>Apple App Privacy (App Store Connect)</th>
<th>Google Data Safety (Play Console)</th>
</tr>
</thead>
<tbody><tr>
<td>What data?</td>
<td>Data types, e.g. Email Address, User ID, Crash Data</td>
<td>Data types, e.g. Email address, User IDs, Crash logs</td>
</tr>
<tr>
<td>Why?</td>
<td>Purposes: App Functionality, Analytics, Product Personalization, Advertising, and others</td>
<td>Purposes: App functionality, Analytics, Personalization, Advertising, and others</td>
</tr>
<tr>
<td>Tied to the person?</td>
<td><strong>Linked to the user</strong> or not</td>
<td>Collected vs. <strong>shared</strong> with third parties</td>
</tr>
<tr>
<td>Tracking?</td>
<td><strong>Used to track</strong> the user across other companies' apps or sites</td>
<td>Covered by sharing and advertising answers</td>
</tr>
<tr>
<td>Security</td>
<td>—</td>
<td>Encrypted in transit? Can users request deletion?</td>
</tr>
</tbody></table>
<p>The key rule for both: <strong>you answer for everything your app does, including every SDK inside it.</strong> If an analytics SDK collects device IDs, your app collects device IDs.</p>
<h2>What does a typical Expo + Supabase app collect?</h2>
<p>Here's the mapping for common SDKs. Only include rows for things your app actually uses.</p>
<table>
<thead>
<tr>
<th>SDK / feature</th>
<th>Apple data types</th>
<th>Google data types</th>
<th>Typical purpose</th>
<th>Linked to user?</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Supabase Auth</strong> (email sign-in)</td>
<td>Contact Info → Email Address; Identifiers → User ID</td>
<td>Personal info → Email address; Personal info → User IDs</td>
<td>App Functionality</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Sign in with Apple / Google</strong></td>
<td>Same as above, plus Name if you store it</td>
<td>Same, plus Name</td>
<td>App Functionality</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Supabase database</strong> (user content)</td>
<td>User Content → whatever users create (e.g. Other User Content)</td>
<td>Matching type, e.g. Messages, Files and docs</td>
<td>App Functionality</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Photo uploads</strong> (image picker + Storage)</td>
<td>User Content → Photos or Videos</td>
<td>Photos and videos → Photos</td>
<td>App Functionality</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Crash reporting</strong> (Sentry, EAS Observe, etc.)</td>
<td>Diagnostics → Crash Data, Performance Data</td>
<td>App info and performance → Crash logs, Diagnostics</td>
<td>Analytics or App Functionality</td>
<td>Usually no, unless you attach the user ID</td>
</tr>
<tr>
<td><strong>Product analytics</strong> (PostHog, etc.)</td>
<td>Usage Data → Product Interaction; Identifiers if you identify users</td>
<td>App activity → App interactions; Device or other IDs</td>
<td>Analytics</td>
<td>Yes if you call <code>identify</code></td>
</tr>
<tr>
<td><strong>Payments</strong> (RevenueCat, StoreKit)</td>
<td>Purchases → Purchase History</td>
<td>Financial info → Purchase history</td>
<td>App Functionality</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Location</strong> (expo-location)</td>
<td>Location → Precise or Coarse</td>
<td>Location → Precise or Approximate</td>
<td>Depends on the feature</td>
<td>Usually yes</td>
</tr>
</tbody></table>
<h3>Notes on the tricky rows</h3>
<ul>
<li><p><strong>Crash reporting is "linked" if you attach the user.</strong> Many apps call <code>setUser(id)</code> in Sentry or a similar SDK to debug issues. That makes crash data linked to the user. Answer the forms based on what your code does.</p>
</li>
<li><p><strong>Analytics becomes linked the moment you identify users.</strong> Anonymous events and identified events are different answers.</p>
</li>
<li><p><strong>Push notifications:</strong> a push token identifies a device for delivery. Check your push provider's guidance; many teams disclose it under device identifiers when it's stored against an account.</p>
</li>
<li><p><strong>Payments:</strong> card details are handled by Apple and Google, not your app. You disclose purchase history, not payment info, unless you handle cards yourself.</p>
</li>
</ul>
<h2>Is sending data to Supabase "sharing"?</h2>
<p>On Google's form, usually <strong>no</strong>. Google's definition of sharing excludes transfers to a <strong>service provider</strong> that processes data on your behalf under your instructions. Your backend host, crash reporter, and analytics tool typically fall here, as long as they're not using the data for their own purposes.</p>
<p>You still mark that data as <strong>collected</strong>. "Not shared" doesn't mean "not collected."</p>
<p>Data sent to an ad network, or to any company that uses it for its own purposes, <strong>is</strong> shared.</p>
<h2>Do you track users?</h2>
<p>Apple defines tracking as linking data from your app with data from other companies' apps, websites, or offline sources for advertising or measurement, or sharing it with data brokers.</p>
<p>For most indie Expo apps without ad SDKs, the honest answer is <strong>no tracking</strong>. If you add an ad network or an attribution SDK, revisit this, and if you do track, you need the App Tracking Transparency prompt before you do.</p>
<h2>What is the privacy manifest, and does Expo handle it?</h2>
<p>Separate from the labels, Apple requires a <strong>privacy manifest</strong> (<code>PrivacyInfo.xcprivacy</code>) that declares why your app uses certain "required reason" APIs, such as reading file timestamps, <code>UserDefaults</code>, or system boot time. Apple checks it when you upload a build.</p>
<p>In an Expo app, you declare these in <code>app.json</code>:</p>
<pre><code class="language-json">{
  "expo": {
    "ios": {
      "privacyManifests": {
        "NSPrivacyAccessedAPITypes": [
          {
            "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryUserDefaults",
            "NSPrivacyAccessedAPITypeReasons": ["CA92.1"]
          }
        ]
      }
    }
  }
}
</code></pre>
<p>Many Expo and community libraries ship their own manifests, and React Native itself uses several of these APIs. If App Store Connect emails you about a missing reason after upload, add the declaration it names, then rebuild.</p>
<h2>What does Google require for account deletion?</h2>
<p>If users can create an account in your app, Google Play requires:</p>
<ol>
<li><p>A way to <strong>delete the account inside the app</strong>, and</p>
</li>
<li><p>A <strong>web link</strong> where users can request deletion without reinstalling the app. You enter this URL in the Data Safety form.</p>
</li>
</ol>
<p>Apple requires in-app account deletion too (Guideline 5.1.1(v)). A simple page with a form or an email address, plus a clear note of what's deleted and what's kept (and for how long), covers the web requirement.</p>
<h2>What are the most common mistakes?</h2>
<table>
<thead>
<tr>
<th>Mistake</th>
<th>Fix</th>
</tr>
</thead>
<tbody><tr>
<td>Forgetting SDK data collection</td>
<td>Audit every SDK, not just your own code</td>
</tr>
<tr>
<td>Marking crash data "not linked" while calling <code>setUser</code></td>
<td>Match the answer to what the code does</td>
</tr>
<tr>
<td>Marking your backend host as "sharing"</td>
<td>Service providers acting for you aren't sharing; still mark it collected</td>
</tr>
<tr>
<td>Privacy policy that doesn't match the forms</td>
<td>Write both from the same list</td>
</tr>
<tr>
<td>No web deletion link for Google</td>
<td>Publish a simple deletion request page</td>
</tr>
<tr>
<td>Ignoring post-upload emails from Apple</td>
<td>Fix the privacy manifest and rebuild</td>
</tr>
<tr>
<td>Answering once and never again</td>
<td>Revisit the forms every time you add an SDK</td>
</tr>
</tbody></table>
<h2>How do you fill both forms in one sitting?</h2>
<ol>
<li><p><strong>List every SDK</strong> in <code>package.json</code> that touches the network or user data.</p>
</li>
<li><p><strong>For each one, write down</strong> what it collects, why, and whether you attach the user's ID.</p>
</li>
<li><p><strong>Map each line</strong> to the table above.</p>
</li>
<li><p><strong>Write your privacy policy</strong> from the same list, so it matches the forms.</p>
</li>
<li><p><strong>Fill Apple's form,</strong> then Google's, from that one document.</p>
</li>
<li><p><strong>Save the list in your repo</strong> and update it with every new SDK.</p>
</li>
</ol>
<h2>FAQ</h2>
<p><strong>Does using Supabase mean I share data with a third party?</strong> On Google's form, typically no: a service provider processing data on your behalf isn't "sharing." You still disclose the data as collected.</p>
<p><strong>Are crash reports linked to the user?</strong> Only if you attach an identifier, such as calling <code>setUser</code> in your crash reporter. Otherwise they're usually not linked.</p>
<p><strong>Do I need App Tracking Transparency?</strong> Only if your app tracks users as Apple defines it, usually through ad or attribution SDKs. Most apps without ads don't.</p>
<p><strong>Does Expo create the privacy manifest for me?</strong> Partly. Many libraries include their own, and you add any missing declarations in <code>app.json</code> under <code>ios.privacyManifests</code>.</p>
<p><strong>Do I need a web page for account deletion?</strong> For Google Play, yes, if users can create accounts. Apple requires deletion inside the app.</p>
<hr />
<p><em>Not sure what to put on the forms?</em> <a href="https://letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=privacy_labels_data_safety"><em>LetsDeployIt</em></a> <em>handles App Store and Google Play submission for you, including privacy labels, the Data Safety form, and the review back-and-forth.</em></p>
]]></content:encoded></item><item><title><![CDATA[Why Vibe-Coded Apps Get Rejected (and How to Ship Them Anyway)]]></title><description><![CDATA[The seven review problems AI coding tools don't scaffold, and a pre-submission audit prompt your agent can run for you]]></description><link>https://julessarah.hashnode.dev/why-vibe-coded-apps-get-rejected-and-how-to-ship-them-anyway</link><guid isPermaLink="true">https://julessarah.hashnode.dev/why-vibe-coded-apps-get-rejected-and-how-to-ship-them-anyway</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[iOS]]></category><category><![CDATA[app store]]></category><category><![CDATA[AI]]></category><category><![CDATA[Mobile Development]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 08 Oct 2026 14:57:59 GMT</pubDate><content:encoded><![CDATA[<p>An AI coding agent can take you from an idea to a working React Native app in a weekend. It compiles, it runs on your phone, and it does what you asked. Then you press Submit, wait a day, and get a rejection.</p>
<p>The rejection usually isn't about the code. It's about everything around the code that an app needs to pass review: permission messages, empty states, a demo account, account deletion, privacy disclosures, and how you take payments. Models skip these for a simple reason: your prompt said "build me a photo-sharing app," not "build me a photo-sharing app ready for App Store review."</p>
<p>This article covers the seven rejection reasons that show up most in AI-built apps, the fix for each in an Expo project, and an audit prompt you can hand your agent before you submit.</p>
<h2>Why AI-built apps hit the same walls</h2>
<p>Coding agents are trained to make features work. Review readiness is a different checklist, and much of it lives outside the code paths you tested:</p>
<ul>
<li><p><strong>Configuration</strong>, like permission strings in <code>app.json</code></p>
</li>
<li><p><strong>States you never saw</strong>, like a first launch with no data</p>
</li>
<li><p><strong>Store settings</strong>, like demo credentials and privacy details in App Store Connect</p>
</li>
<li><p><strong>Policy</strong>, like which payments must go through Apple</p>
</li>
</ul>
<p>Each item takes minutes to fix. Missing any one of them costs a review cycle.</p>
<h2>The 7 rejection reasons</h2>
<h3>1. Generic or missing permission messages (Guideline 5.1.1)</h3>
<p>The agent adds <code>expo-camera</code> or <code>expo-image-picker</code>. Expo's config plugins add a default permission message, something like "Allow $(PRODUCT_NAME) to access your camera." Apple rejects vague strings that don't say <em>why</em> the app needs access.</p>
<p>Worse, if a native module is added without its config plugin, the message can be missing entirely, and iOS terminates the app the moment it requests access.</p>
<p><strong>Fix:</strong> set a specific message for every permission, naming the feature and the benefit.</p>
<pre><code class="language-json">{
  "expo": {
    "plugins": [
      ["expo-camera", { "cameraPermission": "Your camera is used to scan receipts when you tap Add Receipt." }],
      ["expo-image-picker", { "photosPermission": "Your photo library is used to attach an existing receipt." }]
    ]
  }
}
</code></pre>
<p>Then remove permissions for features you don't use. An unused permission is an undeclared data type waiting to be questioned.</p>
<h3>2. Blank screens: missing empty, loading, and error states (Guideline 2.1)</h3>
<p>The agent builds the screen with data in it. A reviewer installs fresh, has no data, and sees a blank screen. Or a request fails and nothing renders. To a reviewer, an app that shows nothing looks broken or incomplete.</p>
<p><strong>Fix:</strong> every screen that fetches or lists data needs three extra states:</p>
<ul>
<li><p><strong>Loading:</strong> a spinner or skeleton while the request runs</p>
</li>
<li><p><strong>Empty:</strong> a message with a next step ("No receipts yet. Tap + to add one.")</p>
</li>
<li><p><strong>Error:</strong> a message with a retry button</p>
</li>
</ul>
<p>If your queries use TanStack Query, <code>isLoading</code>, <code>isError</code>, and an empty-array check cover all three.</p>
<h3>3. The reviewer can't get past your login (Guideline 2.1)</h3>
<p>AI-built apps often require sign-in before showing anything. If the reviewer can't sign in, they can't review, and the app comes back rejected for incompleteness.</p>
<p><strong>Fix:</strong> in App Store Connect, under App Review Information, add a working <strong>demo account</strong> with sample data already in it. Better still, if your app has value before sign-up, let people in as guests. Apple's guidelines say apps without significant account-based features should let people use them without logging in.</p>
<h3>4. Sign-up without account deletion (Guideline 5.1.1(v))</h3>
<p>Agents scaffold sign-up and sign-in readily. They rarely scaffold deletion. If users can create an account in your app, they must be able to start deleting it inside the app.</p>
<p><strong>Fix:</strong> add Settings → Account → Delete Account, and make it actually delete the account and its data (not just sign out). If you use Sign in with Apple, revoke the user's Apple tokens server-side when they delete. Google Play has its own requirement: an in-app path plus a web link for deletion requests.</p>
<h3>5. Sending user data to an AI service without consent (Guideline 5.1.2(i))</h3>
<p>This one is specific to AI-powered apps, and it's newer. If your app sends personal data (messages, photos, documents, voice) to OpenAI, Anthropic, or another AI provider, Apple requires you to disclose that clearly and get the user's explicit permission first.</p>
<p><strong>Fix:</strong> before the first AI request, show an in-context screen that names the provider, says what data is sent, and asks the user to opt in. Users who decline should still be able to use the rest of the app. Add the provider to your privacy policy too.</p>
<h3>6. Privacy details that don't match the app (Guidelines 5.1.1 and 5.1.2)</h3>
<p>Three places have to agree: your privacy policy, the App Privacy details in App Store Connect, and what the app (including every SDK) actually collects. Agents add analytics, crash reporting, and auth SDKs without updating any of them.</p>
<p><strong>Fix:</strong></p>
<ul>
<li><p>Host a real privacy policy at a public URL (not a login-gated or expired page) and check it loads on your phone.</p>
</li>
<li><p>List every SDK in <code>package.json</code> and what it collects; declare all of it in App Privacy.</p>
</li>
<li><p><strong>About App Tracking Transparency:</strong> you need the ATT prompt (<code>expo-tracking-transparency</code>) only if you <em>track</em> users, meaning you link their data with other companies' data for advertising or share it with data brokers. First-party analytics alone doesn't require it. If you do track, ask for permission before any tracking starts.</p>
</li>
</ul>
<h3>7. Digital purchases through Stripe (Guideline 3.1.1)</h3>
<p>Agents know Stripe well, so they wire a Stripe checkout to your premium subscription. If that subscription unlocks digital features or content in the app, Apple requires In-App Purchase.</p>
<p><strong>Fix:</strong></p>
<ul>
<li><p><strong>Digital content and subscriptions:</strong> use In-App Purchase, typically through RevenueCat or <code>react-native-iap</code>.</p>
</li>
<li><p><strong>Physical goods and real-world services:</strong> Stripe is correct (Guideline 3.1.3), and In-App Purchase isn't allowed.</p>
</li>
<li><p><strong>Subscriptions sold on your website too:</strong> under the multiplatform rule (3.1.3(b)), users can access what they bought elsewhere, as long as the same items are also available as In-App Purchases in the app.</p>
</li>
<li><p><strong>US storefront:</strong> apps can now include buttons and links to web checkout. Outside the US, link-outs are still restricted.</p>
</li>
</ul>
<h2>The pre-submission audit prompt</h2>
<p>Hand this to Claude Code, Cursor, or whatever agent built the app, before you submit:</p>
<pre><code class="language-text">Audit this Expo project for App Store review readiness. For each item, report
PRESENT, MISSING, or INCORRECT, with file paths and line numbers:

1. Permission messages: every native module that requests a permission has a
   specific message in app.json (plugin options or ios.infoPlist), naming the
   feature. Flag generic defaults and unused permissions.
2. Screen states: every screen that fetches data has loading, empty, and error states.
3. Login: list every screen reachable without signing in. Flag if nothing is.
4. Account deletion: an in-app path exists if users can sign up, and it deletes data.
5. AI data sharing: list every call that sends user content to an AI provider,
   and whether an explicit consent screen precedes it.
6. Privacy: list every SDK in package.json and the data it likely collects.
   Flag analytics or ad SDKs that would require App Tracking Transparency.
7. Payments: list every payment flow and whether it sells digital content
   (In-App Purchase required) or physical goods/services (Stripe allowed).
8. Placeholder content: any "Lorem ipsum", "TODO", "Coming soon", or dead buttons.
</code></pre>
<p>Then handle the items outside the code yourself:</p>
<ul>
<li><p>[ ] Demo account (with sample data) in App Store Connect → App Review Information</p>
</li>
<li><p>[ ] Privacy policy URL loads on a phone</p>
</li>
<li><p>[ ] App Privacy details match the SDK list from the audit</p>
</li>
<li><p>[ ] Screenshots captured from the build you're submitting, in the current required size</p>
</li>
<li><p>[ ] Test the production build (<code>eas build --profile production</code>) on a real device, not Expo Go</p>
</li>
</ul>
<h2>Keep the velocity</h2>
<p>The point of building with AI is speed, and none of this has to slow you down much. The seven fixes are a few focused hours. Skipping them typically costs more: every rejection means a fix, a resubmission, and another review wait.</p>
<p>Let the agent build the app. Run the audit before you submit. Fix what it finds, then ship.</p>
<hr />
<p><em>If you'd rather hand off the review back-and-forth entirely,</em> <a href="https://letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=vibe_coded_rejections_2026"><em>LetsDeployIt</em></a> <em>takes AI-built apps through App Store and Google Play submission, including the fixes reviewers ask for.</em></p>
]]></content:encoded></item><item><title><![CDATA[Native Sign in with Apple and Google in Expo + Supabase: The Parts the Quickstarts Skip]]></title><description><![CDATA[Nonces, Apple's one-time full name, Google client IDs, and the App Store rule that makes you need both]]></description><link>https://julessarah.hashnode.dev/native-sign-in-with-apple-and-google-in-expo-supabase-the-parts-the-quickstarts-skip</link><guid isPermaLink="true">https://julessarah.hashnode.dev/native-sign-in-with-apple-and-google-in-expo-supabase-the-parts-the-quickstarts-skip</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[supabase]]></category><category><![CDATA[authentication]]></category><category><![CDATA[iOS]]></category><category><![CDATA[Android]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 08 Oct 2026 14:49:50 GMT</pubDate><content:encoded><![CDATA[<hr />
<p>Social login is the fastest way into most consumer apps: one tap, a system sheet, done. With Expo and Supabase, the core of it is a single call, <code>supabase.auth.signInWithIdToken()</code>. Getting from that call to a flow that works on both platforms, passes App Store review, and doesn't lose the user's name takes a few details most quickstarts skip.</p>
<p>This guide covers native Sign in with Apple and Google in an Expo app with Supabase: the setup, the code, and the five gotchas that cause most of the support questions.</p>
<h2>Why native, and why both</h2>
<p><strong>Native sheets beat browser redirects.</strong> A web-based OAuth flow opens a browser, asks the user to sign in again, and bounces back to your app. The native Apple and Google sheets use the account already on the device. Fewer steps, more trust, better conversion.</p>
<p>Behind the scenes, the native libraries return an <strong>ID token</strong>, and Supabase verifies it with <code>signInWithIdToken</code>. No redirect URLs, no browser.</p>
<p><strong>Apple's rule makes you need both on iOS.</strong> App Store Guideline 4.8 requires that if your app offers third-party or social login (like Google), it also offers an option that limits data collection to name and email and lets users hide their email. Sign in with Apple meets that requirement. In practice: if you ship Google sign-in on iOS, ship Apple sign-in too.</p>
<h2>Prerequisites</h2>
<ul>
<li><p>An Expo project with a <strong>development build</strong>. Native sign-in doesn't work in Expo Go.</p>
</li>
<li><p>A Supabase project with <code>@supabase/supabase-js</code> configured and session storage set up.</p>
</li>
<li><p>An Apple Developer account and a Google Cloud project.</p>
</li>
</ul>
<pre><code class="language-bash">npx expo install expo-apple-authentication expo-crypto @react-native-google-signin/google-signin
</code></pre>
<h2>Part 1: Sign in with Apple</h2>
<h3>Configure</h3>
<ol>
<li><p>In the Apple Developer portal, enable <strong>Sign in with Apple</strong> for your App ID.</p>
</li>
<li><p>In <code>app.json</code>:</p>
</li>
</ol>
<pre><code class="language-json">{
  "expo": {
    "ios": {
      "bundleIdentifier": "com.yourcompany.yourapp",
      "usesAppleSignIn": true
    },
    "plugins": ["expo-apple-authentication"]
  }
}
</code></pre>
<ol>
<li>In the Supabase dashboard, open <strong>Authentication → Providers → Apple</strong>, enable it, and add your app's bundle ID as an authorized client ID.</li>
</ol>
<h3>Sign in, with a nonce</h3>
<p>A nonce protects the ID token from being replayed. The pattern trips people up because Apple and Supabase each need a <em>different</em> version of it: you send Apple the <strong>SHA-256 hash</strong>, and you send Supabase the <strong>raw</strong> value.</p>
<pre><code class="language-ts">// lib/auth/apple.ts
import * as AppleAuthentication from 'expo-apple-authentication';
import * as Crypto from 'expo-crypto';
import { supabase } from '@/lib/supabase';

export async function signInWithApple() {
  const rawNonce = Crypto.randomUUID();
  const hashedNonce = await Crypto.digestStringAsync(
    Crypto.CryptoDigestAlgorithm.SHA256,
    rawNonce
  );

  const credential = await AppleAuthentication.signInAsync({
    requestedScopes: [
      AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
      AppleAuthentication.AppleAuthenticationScope.EMAIL,
    ],
    nonce: hashedNonce,                // hashed → Apple
  });

  if (!credential.identityToken) throw new Error('No identity token from Apple');

  const { data, error } = await supabase.auth.signInWithIdToken({
    provider: 'apple',
    token: credential.identityToken,
    nonce: rawNonce,                   // raw → Supabase
  });
  if (error) throw error;

  await saveAppleName(credential);     // see gotcha #2
  return data;
}
</code></pre>
<h3>The Apple button</h3>
<p>Apple's Human Interface Guidelines require its official button style, and the component gives you that:</p>
<pre><code class="language-tsx">import * as AppleAuthentication from 'expo-apple-authentication';
import { Platform } from 'react-native';

{Platform.OS === 'ios' &amp;&amp; (
  &lt;AppleAuthentication.AppleAuthenticationButton
    buttonType={AppleAuthentication.AppleAuthenticationButtonType.SIGN_IN}
    buttonStyle={AppleAuthentication.AppleAuthenticationButtonStyle.BLACK}
    cornerRadius={12}
    style={{ height: 48, width: '100%' }}
    onPress={signInWithApple}
  /&gt;
)}
</code></pre>
<p>Check <code>AppleAuthentication.isAvailableAsync()</code> before rendering if you support older devices.</p>
<h2>Part 2: Sign in with Google</h2>
<h3>Configure</h3>
<p>You need <strong>three</strong> OAuth client IDs in Google Cloud Console, which is the part that confuses most people:</p>
<table>
<thead>
<tr>
<th>Client ID type</th>
<th>Used for</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Web application</strong></td>
<td>Passed to the library as <code>webClientId</code>; its audience is what Supabase verifies. Also goes in Supabase.</td>
</tr>
<tr>
<td><strong>iOS</strong></td>
<td>Passed as <code>iosClientId</code>; its reversed form is the iOS URL scheme</td>
</tr>
<tr>
<td><strong>Android</strong></td>
<td>Matched by package name and SHA-1 fingerprint; not referenced in code</td>
</tr>
</tbody></table>
<p>For the Android client, add the SHA-1 of <strong>every</strong> signing key you use: your debug keystore, your EAS build credentials, and the Google Play app signing key from Play Console. Missing the Play signing key is why Google sign-in works in testing and fails in production.</p>
<p>In the Supabase dashboard, open <strong>Authentication → Providers → Google</strong>, enable it, add the web client ID and secret, and add all your client IDs to the authorized client IDs list. Then turn on <strong>Skip nonce check</strong>, which Supabase's docs require for native Google sign-in on iOS.</p>
<p>Add the config plugin to <code>app.json</code>:</p>
<pre><code class="language-json">{
  "expo": {
    "plugins": [
      [
        "@react-native-google-signin/google-signin",
        { "iosUrlScheme": "com.googleusercontent.apps.YOUR_IOS_CLIENT_ID" }
      ]
    ]
  }
}
</code></pre>
<h3>Sign in</h3>
<pre><code class="language-ts">// lib/auth/google.ts
import {
  GoogleSignin,
  isSuccessResponse,
} from '@react-native-google-signin/google-signin';
import { supabase } from '@/lib/supabase';

GoogleSignin.configure({
  webClientId: process.env.EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID,
  iosClientId: process.env.EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID,
});

export async function signInWithGoogle() {
  await GoogleSignin.hasPlayServices();
  const response = await GoogleSignin.signIn();
  if (!isSuccessResponse(response)) return null;   // user cancelled

  const idToken = response.data.idToken;
  if (!idToken) throw new Error('No ID token from Google');

  const { data, error } = await supabase.auth.signInWithIdToken({
    provider: 'google',
    token: idToken,
  });
  if (error) throw error;
  return data;
}
</code></pre>
<p>Client IDs aren't secrets, so <code>EXPO_PUBLIC_</code> variables are fine here. The Google client <em>secret</em> goes only in the Supabase dashboard.</p>
<p><strong>A note on Android:</strong> the free version of <code>@react-native-google-signin/google-signin</code> uses Google's older sign-in SDK on Android. If you want the newer Credential Manager experience, look at the library's paid tier or alternatives like <code>react-native-credentials-manager</code>. The Supabase side stays the same: whatever library you use, you pass the ID token to <code>signInWithIdToken</code>.</p>
<h2>The five gotchas</h2>
<h3>1. Expo Go can't do any of this</h3>
<p>Both libraries include native code. Build a development client with <code>eas build --profile development</code> and test there. If sign-in "does nothing" in Expo Go, this is why.</p>
<h3>2. Apple sends the user's name exactly once</h3>
<p>Apple returns the full name <strong>only the first time</strong> a user signs in to your app. After that, <code>credential.fullName</code> is empty, forever, unless the user removes your app from their Apple ID settings.</p>
<p>And <code>signInWithIdToken</code> doesn't store it, because the name isn't inside the ID token. If you don't save it on that first sign-in, it's gone, and Apple's guidelines discourage asking the user for a name they've already shared.</p>
<pre><code class="language-ts">async function saveAppleName(credential: AppleAuthentication.AppleAuthenticationCredential) {
  const given = credential.fullName?.givenName;
  const family = credential.fullName?.familyName;
  if (!given &amp;&amp; !family) return;   // not the first sign-in

  await supabase.auth.updateUser({
    data: {
      full_name: [given, family].filter(Boolean).join(' '),
      given_name: given,
      family_name: family,
    },
  });
}
</code></pre>
<p>If you keep profiles in a <code>public.profiles</code> table, a database trigger can copy these fields from <code>auth.users</code> metadata.</p>
<h3>3. "Hide My Email" addresses are real</h3>
<p>Users who choose to hide their email give you an <code>@privaterelay.appleid.com</code> address. Mail to it is forwarded to the user. Treat it as a valid email, and note that you have to register your sending domain with Apple for relay delivery to work.</p>
<h3>4. One person, two providers</h3>
<p>A user signs up with Google, then later taps Sign in with Apple using the same email. Depending on your Supabase settings and whether the email is hidden, they may end up linked to one account or split across two. Decide your policy early, and use Supabase's identity linking if you want users to connect providers deliberately from a settings screen.</p>
<h3>5. Account deletion has an Apple-specific step</h3>
<p>Both stores require in-app account deletion if users can sign up. For Sign in with Apple accounts, Apple also expects you to <strong>revoke the user's Apple tokens</strong> through its REST API when they delete their account. Do it from a server or an Edge Function that holds your Apple key, never from the app.</p>
<h2>Putting it on one screen</h2>
<pre><code class="language-tsx">export function SignInScreen() {
  return (
    &lt;View style={{ gap: 12, padding: 24 }}&gt;
      {Platform.OS === 'ios' &amp;&amp; &lt;AppleButton onPress={signInWithApple} /&gt;}
      &lt;GoogleButton onPress={signInWithGoogle} /&gt;
      &lt;Divider label="or" /&gt;
      &lt;EmailCodeForm /&gt;   {/* fallback for people who don't use social login */}
    &lt;/View&gt;
  );
}
</code></pre>
<p>Apple first on iOS, Google on both platforms, and an email option for everyone else. Wrap your routes with a session-aware guard (Expo Router's <code>Stack.Protected</code> works well) and the user lands on the right screen as soon as the session arrives.</p>
<h2>Checklist</h2>
<ul>
<li><p>[ ] Development build, not Expo Go</p>
</li>
<li><p>[ ] Apple: capability enabled, <code>usesAppleSignIn: true</code>, bundle ID authorized in Supabase</p>
</li>
<li><p>[ ] Apple: hashed nonce to Apple, raw nonce to Supabase</p>
</li>
<li><p>[ ] Apple: full name saved on first sign-in</p>
</li>
<li><p>[ ] Google: web, iOS, and Android client IDs created</p>
</li>
<li><p>[ ] Google: SHA-1 for debug, EAS, <strong>and</strong> Play app signing keys</p>
</li>
<li><p>[ ] Google: client IDs authorized in Supabase, Skip nonce check on for iOS</p>
</li>
<li><p>[ ] Apple offered whenever Google is offered on iOS</p>
</li>
<li><p>[ ] Account deletion revokes Apple tokens server-side</p>
</li>
</ul>
<h2>Skip the setup next time</h2>
<p>Every item above is the same in every app, which makes it ideal template material. <a href="https://www.applighter.com/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo_supabase_native_social_login_2026">AppLighter</a> templates ship Expo + Supabase auth with the session handling, secure storage, and protected routes already in place, so social login is configuration rather than a weekend of debugging.</p>
]]></content:encoded></item><item><title><![CDATA[IAP, Stripe, or Web Checkout? How to Choose Payments for Your Expo App in 2026]]></title><description><![CDATA[A decision guide for React Native builders, with fees, App Store rules, and copy-paste code for all three paths]]></description><link>https://julessarah.hashnode.dev/iap-stripe-or-web-checkout-how-to-choose-payments-for-your-expo-app-in-2026</link><guid isPermaLink="true">https://julessarah.hashnode.dev/iap-stripe-or-web-checkout-how-to-choose-payments-for-your-expo-app-in-2026</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[payments]]></category><category><![CDATA[stripe]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[iOS]]></category><category><![CDATA[Android]]></category><category><![CDATA[indie hackers]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 24 Sep 2026 09:11:20 GMT</pubDate><content:encoded><![CDATA[<p><strong>Last verified: September 24, 2026.</strong> App store payment rules are changing fast because of ongoing litigation. Treat the fee numbers below as a snapshot, re-check before you ship, and talk to a lawyer for anything high-stakes. This is not legal or financial advice.</p>
<p>Most "add payments to React Native" tutorials jump straight to installing an SDK. That's backwards.</p>
<p>The expensive mistake isn't choosing the wrong library. It's choosing the wrong <strong>payment path</strong>, then getting rejected in App Review, paying 30% you didn't need to pay, or rebuilding your checkout three months after launch.</p>
<p>In 2026, an Expo app has three realistic ways to take money:</p>
<ol>
<li><p><strong>Native in-app purchases (IAP)</strong> through Apple StoreKit and Google Play Billing</p>
</li>
<li><p><strong>Stripe inside the app</strong> (PaymentSheet, Apple Pay, Google Pay)</p>
</li>
<li><p><strong>A link-out to web checkout</strong> (your own Stripe/Paddle page in the browser)</p>
</li>
</ol>
<p>This guide gives you a decision framework first, then working Expo code for each path.</p>
<hr />
<h2>the 30-second decision</h2>
<table>
<thead>
<tr>
<th>What are you selling?</th>
<th>Where are your users?</th>
<th>Use this</th>
</tr>
</thead>
<tbody><tr>
<td>Physical goods or real-world services (food, rides, tickets, coaching sessions in person)</td>
<td>Anywhere</td>
<td><strong>Stripe in-app</strong> (IAP is not allowed here)</td>
</tr>
<tr>
<td>Digital content, subscriptions, premium features</td>
<td>Global</td>
<td><strong>IAP</strong> (via RevenueCat or similar)</td>
</tr>
<tr>
<td>Digital content, subscriptions, premium features</td>
<td>Mostly US, and you want better margins</td>
<td><strong>IAP + US web link-out</strong>, side by side</td>
</tr>
<tr>
<td>Person-to-person payments, donations to registered nonprofits, B2B enterprise seats</td>
<td>Varies</td>
<td>Usually <strong>Stripe / web</strong>, check the specific guideline</td>
</tr>
</tbody></table>
<p>If you only remember one rule: <strong>digital goods consumed in the app = IAP by default. Physical goods and real-world services = never IAP.</strong></p>
<hr />
<h2>Why this changed in 2025–2026</h2>
<p>For about a decade, Apple's rule was simple: if you sell digital stuff in an iOS app, you use Apple IAP and pay 15–30%. No "cheaper on our website" buttons. No links.</p>
<p>That's no longer true in the US.</p>
<p><strong>Apple (US storefront):</strong></p>
<ul>
<li><p>After the Epic v. Apple contempt ruling in April 2025, Apple updated App Review Guideline 3.1.1(a). On the US storefront, apps can now include buttons, external links, and calls to action that send users to web checkout, with no special entitlement required.</p>
</li>
<li><p>Apple currently takes <strong>0%</strong> on those US link-out purchases.</p>
</li>
<li><p>That 0% is provisional. In December 2025 the Ninth Circuit said a total ban on commissions went too far and sent the case back so the district court could set a cost-based fee. In August 2026 Apple proposed link-out fees of 15% for standard apps and 5% for Small Business Program apps. The Supreme Court also agreed (June 30, 2026) to hear the contempt question, with a decision expected in 2027.</p>
</li>
<li><p><strong>Outside the US</strong>, link-outs are still restricted or run through separate entitlement programs with their own fees. The same button that's compliant in the US can get you rejected elsewhere.</p>
</li>
</ul>
<p><strong>Google Play (US):</strong></p>
<ul>
<li><p>Since late October 2025, Google allows US developers to link to external purchases and offer alternative billing, through enrollment programs.</p>
</li>
<li><p>From June 30, 2026, Google separated its <strong>service fee</strong> from its <strong>billing fee</strong> in the US, EEA, and UK. The service fee starts at 10% on your first $1M in annual earnings (and on auto-renewing subscriptions), and a separate billing fee applies only if you use Play Billing.</p>
</li>
<li><p><strong>Heads up:</strong> Per Google's July 22, 2026 update, developers enrolled in the US external links or alternative billing programs must start reporting transactions and paying the applicable service fee from <strong>October 1, 2026</strong>.</p>
</li>
</ul>
<p><strong>What this means for you:</strong> web checkout is now a real option in the US, but it's not "free money." You take on sales tax, chargebacks, refunds, dunning, and customer support that Apple and Google used to handle. Model the actual net margin, not just the headline commission.</p>
<hr />
<h2>Path 1: Native in-app purchases (the default for digital goods)</h2>
<p><strong>Use IAP when:</strong> you sell subscriptions, premium features, credits, or digital content, and you have users outside the US, or you just want the least operational overhead.</p>
<p><strong>Pros</strong></p>
<ul>
<li><p>Accepted in every storefront</p>
</li>
<li><p>One-tap purchase with Face ID / saved Google account (highest conversion on mobile)</p>
</li>
<li><p>Apple and Google handle tax, refunds, and billing retries</p>
</li>
</ul>
<p><strong>Cons</strong></p>
<ul>
<li><p>15–30% on Apple (15% for Small Business Program members and year-two subscriptions)</p>
</li>
<li><p>Store-controlled refunds and limited customer data</p>
</li>
</ul>
<h3>Expo setup with RevenueCat</h3>
<p>Raw StoreKit + Play Billing is painful to maintain. Most Expo teams use RevenueCat's <code>react-native-purchases</code>, which wraps both stores and gives you one "entitlement" model.</p>
<pre><code class="language-bash">npx expo install react-native-purchases react-native-purchases-ui
</code></pre>
<blockquote>
<p>⚠️ Real purchases do <strong>not</strong> work in Expo Go. You need a development build: <code>eas build --profile development --platform ios</code></p>
</blockquote>
<pre><code class="language-ts">// lib/purchases.ts
import { Platform } from 'react-native';
import Purchases, { LOG_LEVEL } from 'react-native-purchases';

export function initPurchases(appUserId: string) {
  Purchases.setLogLevel(LOG_LEVEL.WARN);
  Purchases.configure({
    apiKey:
      Platform.OS === 'ios'
        ? process.env.EXPO_PUBLIC_RC_IOS_KEY!
        : process.env.EXPO_PUBLIC_RC_ANDROID_KEY!,
    appUserID: appUserId, // use YOUR user id so web + app purchases map to one person
  });
}

export async function buyPro() {
  const offerings = await Purchases.getOfferings();
  const pkg = offerings.current?.availablePackages[0];
  if (!pkg) throw new Error('No packages configured');

  const { customerInfo } = await Purchases.purchasePackage(pkg);
  return Boolean(customerInfo.entitlements.active['pro']);
}

export async function isPro() {
  const info = await Purchases.getCustomerInfo();
  return Boolean(info.entitlements.active['pro']);
}
</code></pre>
<p>Tip: always pass your own <code>appUserID</code>. If you add web checkout later, this is what lets a web purchase unlock the app for the same person.</p>
<hr />
<h2>Path 2: Stripe inside the app (physical goods and real-world services)</h2>
<p><strong>Use Stripe in-app when:</strong> users pay for something that exists outside the app: food delivery, marketplace items, event tickets, bookings, in-person services.</p>
<p>This isn't optional. Apple's guidelines say goods and services consumed outside the app must use purchase methods <strong>other than</strong> IAP. Wiring a coffee order through StoreKit gets you rejected.</p>
<h3>Expo setup with Stripe PaymentSheet</h3>
<pre><code class="language-bash">npx expo install @stripe/stripe-react-native
</code></pre>
<p>Add the config plugin so Apple Pay and Google Pay work in your EAS build:</p>
<pre><code class="language-json">{
  "expo": {
    "plugins": [
      [
        "@stripe/stripe-react-native",
        {
          "merchantIdentifier": "merchant.com.yourapp",
          "enableGooglePay": true
        }
      ]
    ]
  }
}
</code></pre>
<pre><code class="language-tsx">// app/checkout.tsx
import { StripeProvider, useStripe } from '@stripe/stripe-react-native';
import { Button, Alert } from 'react-native';

function CheckoutButton({ orderId }: { orderId: string }) {
  const { initPaymentSheet, presentPaymentSheet } = useStripe();

  const pay = async () =&gt; {
    // Your backend creates the PaymentIntent. Never put your secret key in the app.
    const res = await fetch(`${process.env.EXPO_PUBLIC_API_URL}/payment-sheet`, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ orderId }),
    });
    const { paymentIntent, ephemeralKey, customer } = await res.json();

    const { error: initError } = await initPaymentSheet({
      merchantDisplayName: 'Your App',
      paymentIntentClientSecret: paymentIntent,
      customerId: customer,
      customerEphemeralKeySecret: ephemeralKey,
      applePay: { merchantCountryCode: 'US' },
      googlePay: { merchantCountryCode: 'US', testEnv: __DEV__ },
    });
    if (initError) return Alert.alert('Error', initError.message);

    const { error } = await presentPaymentSheet();
    if (error) Alert.alert('Payment cancelled', error.message);
    else Alert.alert('Paid!', 'Your order is confirmed.');
  };

  return &lt;Button title="Pay now" onPress={pay} /&gt;;
}

export default function Checkout() {
  return (
    &lt;StripeProvider publishableKey={process.env.EXPO_PUBLIC_STRIPE_PK!}&gt;
      &lt;CheckoutButton orderId="demo-123" /&gt;
    &lt;/StripeProvider&gt;
  );
}
</code></pre>
<p>Confirm fulfillment from a <strong>Stripe webhook</strong> on your server, not from the client callback. The client can close, crash, or lose signal after payment succeeds.</p>
<hr />
<h2>Path 3: US web link-out (better margins, more responsibility)</h2>
<p><strong>Use a link-out when:</strong> you sell digital goods, a big share of revenue is from US users, and you're ready to own tax, refunds, and support.</p>
<p>The pattern:</p>
<ol>
<li><p>In-app paywall shows IAP <strong>and</strong> a "Pay on the web" option (US storefront only)</p>
</li>
<li><p>The button opens your web checkout in the system browser with the user's ID</p>
</li>
<li><p>Your backend receives the Stripe webhook and grants the entitlement</p>
</li>
<li><p>The app refreshes entitlement status when the user comes back</p>
</li>
</ol>
<pre><code class="language-ts">// lib/webCheckout.ts
import * as Linking from 'expo-linking';
import { Platform } from 'react-native';

// IMPORTANT: gate on the App Store / Play storefront country,
// not device locale. A US-locale phone can be on a non-US storefront.
// Implement getStorefrontCountry() via your IAP library's storefront API.
import { getStorefrontCountry } from './storefront';

export async function canShowWebCheckout() {
  const country = await getStorefrontCountry(); // e.g. 'USA' / 'US'
  return country === 'USA' || country === 'US';
}

export async function openWebCheckout(userId: string) {
  const url =
    `https://yourapp.com/checkout?uid=${encodeURIComponent(userId)}` +
    `&amp;platform=${Platform.OS}`;
  await Linking.openURL(url);
}
</code></pre>
<pre><code class="language-ts">// When the app returns to foreground, re-check access
import { AppState } from 'react-native';
import { isPro } from './purchases';

AppState.addEventListener('change', async (state) =&gt; {
  if (state === 'active') {
    const pro = await isPro(); // or query your own /me/entitlements endpoint
    // update UI / store
  }
});
</code></pre>
<p>If you're already on RevenueCat, its Web Billing product (built on Stripe) can feed web purchases into the same entitlements your app checks, so you don't maintain two access systems.</p>
<p><strong>Android note:</strong> on Google Play, link-outs require enrolling in Google's US external content links program first, and fee reporting begins October 1, 2026. Don't just ship a link and hope.</p>
<hr />
<h2>The hidden costs table nobody puts in the tutorial</h2>
<table>
<thead>
<tr>
<th>Cost</th>
<th>IAP</th>
<th>Stripe in-app</th>
<th>Web link-out</th>
</tr>
</thead>
<tbody><tr>
<td>Platform commission</td>
<td>15–30% (Apple), service + billing fee (Google)</td>
<td>0% (not allowed to be IAP anyway)</td>
<td>0% Apple US today (may change); Google US fees from Oct 1, 2026</td>
</tr>
<tr>
<td>Payment processing</td>
<td>Included</td>
<td>~Stripe fees</td>
<td>~Stripe fees</td>
</tr>
<tr>
<td>Sales tax / VAT</td>
<td>Store handles it</td>
<td>You handle it</td>
<td>You handle it</td>
</tr>
<tr>
<td>Refunds and chargebacks</td>
<td>Store handles it</td>
<td>You</td>
<td>You</td>
</tr>
<tr>
<td>Subscription dunning</td>
<td>Store handles it</td>
<td>You</td>
<td>You</td>
</tr>
<tr>
<td>Checkout conversion</td>
<td>Highest (native sheet)</td>
<td>High (Apple/Google Pay)</td>
<td>Lower (context switch to browser)</td>
</tr>
<tr>
<td>Global availability</td>
<td>Everywhere</td>
<td>Everywhere</td>
<td>US only (for iOS link-outs without extra programs)</td>
</tr>
</tbody></table>
<p>A 30% commission sounds brutal until you account for a lower web conversion rate plus your own tax and support costs. Run the numbers on <strong>net revenue per paywall view</strong>, not commission percentage.</p>
<hr />
<h2>Recommended setups by app type</h2>
<ul>
<li><p><strong>Subscription app, early stage, global users:</strong> IAP only via RevenueCat. Add a US web link-out once you have enough traffic to A/B test conversion.</p>
</li>
<li><p><strong>Subscription app, strong US audience:</strong> IAP + US web link-out on the same paywall, one shared entitlement.</p>
</li>
<li><p><strong>Marketplace / delivery / booking app:</strong> Stripe PaymentSheet with Apple Pay and Google Pay. No IAP.</p>
</li>
<li><p><strong>Hybrid (e.g., a fitness app selling subscriptions <em>and</em> physical gear):</strong> IAP for the subscription, Stripe for the merch. Keep them clearly separate in the UI.</p>
</li>
<li><p><strong>Credit-based AI app:</strong> IAP consumables for credits; consider a web top-up link for US users.</p>
</li>
</ul>
<hr />
<h2>Common App Review rejections (and how to avoid them)</h2>
<ul>
<li><p><strong>Selling digital features through Stripe outside the US storefront.</strong> Gate web checkout by storefront, not locale.</p>
</li>
<li><p><strong>Using IAP for physical goods or real-world services.</strong> Use Stripe or another processor.</p>
</li>
<li><p><strong>Paywall that doesn't restore purchases.</strong> Add a visible "Restore Purchases" button (<code>Purchases.restorePurchases()</code>).</p>
</li>
<li><p><strong>Testing IAP in Expo Go and assuming it works.</strong> Use an EAS development build and sandbox accounts.</p>
</li>
<li><p><strong>Unclear subscription terms.</strong> Show price, billing period, and renewal terms before the purchase button, plus links to Terms and Privacy.</p>
</li>
</ul>
<hr />
<h2>Ship the paywall faster</h2>
<p>Payments are the part of the app you should spend real engineering time on. The screens around them (paywall layout, plan cards, onboarding, account settings) shouldn't eat your week.</p>
<p><a href="https://www.rapidnative.com/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo_payments_guide_2026&amp;utm_content=cta_paywall">RapidNative</a> generates real React Native + Expo code from a prompt, screenshot, or PRD, so you can describe <em>"a paywall with monthly/annual toggle, restore button, and US-only web checkout link"</em> and get exportable screens to wire into the code above. It's real Expo source you own, so dropping in <code>react-native-purchases</code> or <code>@stripe/stripe-react-native</code> works like any other project.</p>
<p>If you're still scoping the app, the <a href="https://www.rapidnative.com/tools?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo_payments_guide_2026&amp;utm_content=tools_prd">free RapidNative tools</a> include an AI PRD generator that helps you pin down pricing and plans before you build.</p>
<p>And when it's time to submit (and survive the payments section of App Review), <a href="https://letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo_payments_guide_2026&amp;utm_content=cta_submission">LetsDeployIt</a> handles App Store and Play Store submission for AI-built apps.</p>
<hr />
<h2>FAQ</h2>
<h3>Can I use Stripe for subscriptions in an iOS app?</h3>
<p>Only for digital subscriptions sold through a <strong>link-out to web checkout on the US storefront</strong> (or via region-specific Apple programs). Inside the app itself, digital subscriptions must go through Apple IAP. Stripe in-app is for physical goods and real-world services.</p>
<h3>Does Expo support in-app purchases?</h3>
<p>Yes. Expo supports <code>react-native-purchases</code> (RevenueCat) and other IAP libraries, but you need an EAS development build to test real purchases. Expo Go can't process them.</p>
<h3>Is Apple's 0% fee on US external links permanent?</h3>
<p>No. It's in force as of September 2026, but a court is deciding a cost-based fee, Apple has proposed 15% (5% for small businesses), and the Supreme Court is hearing a related question. Build your link-out so the fee assumption lives in config, not in your business model.</p>
<h3>Do I need to pay Google if I link to web checkout on Android?</h3>
<p>In the US, you must enroll in Google's external content links or alternative billing program, and from October 1, 2026, enrolled developers report transactions and pay the applicable service fee.</p>
<h3>What's the easiest payment setup for a first-time app?</h3>
<p>IAP through RevenueCat for digital goods, or Stripe PaymentSheet for physical goods. Add web checkout later, once you have data showing it beats IAP on net revenue.</p>
<h3>Can I show a cheaper price for web checkout?</h3>
<p>Right now, on the US App Store, there's no parity requirement. Courts have signaled Apple may be allowed to add modest design and parity rules later, so avoid building your entire pricing strategy around a web discount.</p>
<hr />
<h2>Key takeaways</h2>
<ul>
<li><p>Pick the <strong>payment path</strong> before the SDK.</p>
</li>
<li><p>Physical goods → Stripe. Digital goods → IAP by default.</p>
</li>
<li><p>US web link-outs are legal and currently commission-free on iOS, but fees are coming back in some form, and Google's US fees start October 1, 2026.</p>
</li>
<li><p>Use one user ID and one entitlement system across app and web.</p>
</li>
<li><p>Test with EAS development builds, not Expo Go.</p>
</li>
</ul>
<p><em>Building a React Native app?</em> <a href="https://www.rapidnative.com/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo_payments_guide_2026&amp;utm_content=footer_cta"><em>Start free on RapidNative</em></a> <em>and turn your paywall idea into Expo code in minutes.</em></p>
]]></content:encoded></item><item><title><![CDATA[How AI-Generated Code Changes What Users Actually Report in Bug Tickets]]></title><description><![CDATA[After 18 months of running AI-heavy development on our template store, the bug reports we get from users look different. Not more of them, not fewer…]]></description><link>https://julessarah.hashnode.dev/how-ai-generated-code-changes-what-users-actually-report-in-bug-tickets</link><guid isPermaLink="true">https://julessarah.hashnode.dev/how-ai-generated-code-changes-what-users-actually-report-in-bug-tickets</guid><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 17 Sep 2026 09:44:38 GMT</pubDate><content:encoded><![CDATA[<p>After 18 months of running AI-heavy development on <a href="https://applighter.com/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai-code-bug-tickets&amp;utm_content=intro">our template store</a>, the bug reports we get from users look different. Not more of them, not fewer. Different.</p>
<p>It's worth writing down, because it changed how we triage, what we document, and where we spend QA time.</p>
<h2>The old bug distribution vs. the new one</h2>
<p>Here's how user-reported bugs broke down before our code was AI-heavy (around 2023), compared with mid-2026:</p>
<table>
<thead>
<tr>
<th>Bug type</th>
<th>~2023</th>
<th>Mid-2026</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Syntax-level</strong>: typos, off-by-one errors, missed null checks, forgotten early returns</td>
<td>~60%</td>
<td>~20%</td>
</tr>
<tr>
<td><strong>Integration</strong>: works in isolation, breaks inside the user's existing setup</td>
<td>~25%</td>
<td>~45%</td>
</tr>
<tr>
<td><strong>Feature-level</strong>: works as written, but the design is wrong for what the user needed</td>
<td>~15%</td>
<td>~35%</td>
</tr>
</tbody></table>
<p>Total report volume is about the same. The shape shifted.</p>
<p>The old majority was the kind of mistake a careful review catches. The new majority is the kind a review usually can't catch, because the code is fine. It's the fit that's wrong.</p>
<h2>What LLM code produces more of, and less of</h2>
<p>AI models are very good at producing syntactically correct code that compiles and runs. That's why the syntax-level bucket collapsed.</p>
<p>They're less good at inferring what the user actually meant when the prompt is imprecise. And they're worse still at anticipating how the code will interact with a project they can't see. Both of those gaps show up directly in the tickets:</p>
<ul>
<li><p><strong>"The code works but doesn't do what I expected."</strong> Feature-level.</p>
</li>
<li><p><strong>"The code broke when I dropped it into my existing project."</strong> Integration.</p>
</li>
<li><p>Almost never: "There's a typo on line 45."</p>
</li>
</ul>
<p>A concrete example. A customer generated a Supabase auth flow with an AI tool. The code worked in isolation. When they dropped it into their existing app, it silently overwrote their Zustand auth state on every page load, because the generated flow assumed a fresh app state.</p>
<p>No compile error. No runtime error. Just a bug that took three hours to find.</p>
<p>That's the signature of the new distribution: the failure lives in an assumption, not in a line of code.</p>
<h2>Onboarding friction shifted from syntax to semantics</h2>
<p>This changed what trips up new users. It used to be "how do I get this to run?" Now it runs on the first try, and the question becomes "why doesn't it behave the way my project needs?"</p>
<p>We made two operational shifts in response.</p>
<h3>Documentation leads with integration guides, not code snippets</h3>
<p>Our old "how to use this template" section was a code example. The new version opens with a section titled <strong>"How this template expects your project to be structured"</strong>: a plain list of assumptions.</p>
<pre><code class="language-md">## How this template expects your project to be structured

- State manager: Zustand, with a single `useAuthStore`
- Auth: Supabase, session restored on app start
- Routing: file-based, auth screens under `/(auth)`
- This template initializes auth state. If your app already
  does, see "Integrating with an existing session" below.
</code></pre>
<p>It's unglamorous, and it front-loads exactly the mismatch a user is about to hit. The customer in the Supabase example would have found their bug in that last bullet instead of three hours into debugging.</p>
<h3>Support tickets get triaged into three lanes</h3>
<ul>
<li><p><strong>Syntax-level</strong>: rare now, quick fix.</p>
</li>
<li><p><strong>Integration</strong>: medium effort, and it requires reproducing the user's setup.</p>
</li>
<li><p><strong>Feature-level</strong>: slow, and it may mean rethinking the template's abstraction.</p>
</li>
</ul>
<p>Our time budget moved accordingly. The lane that used to take most of our support hours is now the smallest.</p>
<h2>Community-reported patterns that stand out</h2>
<h3>Test first, then let the model fill in</h3>
<p>Customers who ship AI-heavy code successfully have one thing in common: they write the test first, then let the model write the implementation.</p>
<p>Customers who struggle do it the other way around. They write the code with the model, then ask the model to write the tests. Those tests are derived from the code, bugs included, so they pass. The result is a green test suite and a false sense of coverage.</p>
<p>A test written first encodes <em>your</em> intent, which is the one thing the model can't infer. For the auth bug above, this would have been enough:</p>
<pre><code class="language-ts">it('does not overwrite an existing session on init', async () =&gt; {
  useAuthStore.setState({ user: existingUser });

  await initAuthFlow();

  expect(useAuthStore.getState().user).toEqual(existingUser);
});
</code></pre>
<p>Five lines, written before the model generates anything, and the three-hour bug becomes a failing test in the first minute.</p>
<p>We now include a "start with a test" example in every template's README. Customers who adopt the pattern file noticeably fewer support tickets.</p>
<h3>What we still can't automate</h3>
<p>UX bugs. A screen that technically works but confuses people.</p>
<p>AI won't tell you your onboarding is too long. It won't tell you your empty state is depressing. It won't tell you your error message is unclear. Those have to be seen by humans and reported by users.</p>
<h2>Budget accordingly</h2>
<p>Spend less time on syntax-level review. Spend more on user testing and integration documentation.</p>
<p>AI hasn't reduced the number of bugs our users report. It has moved them up a level, from "the code is wrong" to "the code is right about the wrong thing." The marginal engineering hour is best spent where the bugs went.</p>
<hr />
<p><em>Every</em> <a href="https://applighter.com/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=ai-code-bug-tickets&amp;utm_content=footer-cta"><em>AppLighter</em></a> <em>template documents its project assumptions up front and ships with a "start with a test" example, so the code you drop in fits the app you already have.</em></p>
]]></content:encoded></item><item><title><![CDATA[Google Play's 12-Tester Rule and Everything Else First-Time Devs Miss]]></title><description><![CDATA[Google Play requires 12 testers for 14 days before new personal accounts can publish. Who it applies to, how to pass it, and other Console gotchas.]]></description><link>https://julessarah.hashnode.dev/google-play-s-12-tester-rule-and-everything-else-first-time-devs-miss</link><guid isPermaLink="true">https://julessarah.hashnode.dev/google-play-s-12-tester-rule-and-everything-else-first-time-devs-miss</guid><category><![CDATA[Android]]></category><category><![CDATA[google play]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[app development]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 03 Sep 2026 11:25:20 GMT</pubDate><content:encoded><![CDATA[<p>The App Store gets most of the attention when devs talk about mobile publishing pain. But Google Play has its own set of first-timer traps, and the biggest one, the closed-testing rule, will delay your launch by weeks if you don't plan for it. This post is what I wish I'd known before my first Play Store submission.</p>
<h2>The 12-tester rule that blindsides everyone</h2>
<p>Google Play requires that personal developer accounts created after November 13, 2023 run <strong>closed testing with at least 12 testers opted in continuously for 14 days</strong> before they can apply for production access. There's no fast-track and no expedited path.</p>
<p>Two things people get wrong about it:</p>
<ul>
<li><p><strong>It used to be 20 testers.</strong> Google reduced the minimum from 20 to 12 in December 2024 after feedback that 20 was too hard for solo devs. If a guide tells you 20, it's outdated.</p>
</li>
<li><p><strong>It doesn't apply to everyone.</strong> Organization (business) developer accounts are exempt, and so are personal accounts created before November 13, 2023. If you're publishing under a company, you can skip this gate entirely.</p>
</li>
</ul>
<p>If the rule applies to you and you don't hit 12 opted-in testers for a continuous 14 days, you cannot ship to production. Period. And "opted in" means testers who actually joined via your opt-in link and installed on a real device; a list of email addresses that never clicked doesn't count. Google also looks at whether testers actually used the app, so pure install-and-forget testers are risky.</p>
<p>This rule exists to reduce spam and scam apps from developer accounts that spin up and dump low-quality apps. It's a good rule for the ecosystem. It's a brutal rule for a first-time indie dev who spent 6 months building and expected to launch on Friday.</p>
<blockquote>
<p>The closed-testing gate is 14 days minimum, measured continuously and backwards from the moment you apply. Plan your launch date around it, not the other way round.</p>
</blockquote>
<h2>How to actually get 12 testers in 14 days</h2>
<p>The tactics that work:</p>
<p><strong>1. Recruit before you need them.</strong> As soon as you start building the app (not when you're ready to ship), start collecting emails from anyone interested. Landing page with a "join beta" form. Twitter announcements. Discord communities. Founder friends. By the time you're ready to submit, aim for 20+ signups (assume around a third won't follow through).</p>
<p><strong>2. Use Google Groups for the tester list.</strong> Rather than adding individual emails to your Play Console tester list, add one Google Group email. Then manage the group membership separately. Faster to add and remove people; easier to migrate to production testing later.</p>
<p><strong>3. Give testers something to do.</strong> Send a welcome email with:</p>
<ul>
<li><p>Direct link to install from the Play Store closed-testing track</p>
</li>
<li><p>3-5 specific things to try</p>
</li>
<li><p>A way to report bugs (Google Form, Discord channel, or email)</p>
</li>
<li><p>Timeline expectation ("please install by [date], any feedback is welcome by [date]")</p>
</li>
</ul>
<p>You want engaged testers, not just installers. Google evaluates tester engagement when you apply for production access, and it asks you to describe your testing process and what feedback you acted on.</p>
<p><strong>4. Communities that work for tester recruitment.</strong></p>
<ul>
<li><p>Reddit: r/androidapps, r/androiddev (for indie and early-stage), r/betatests.</p>
</li>
<li><p>Discord: any indie hacker server, mobile-dev servers.</p>
</li>
<li><p>Twitter/X: the React Native and mobile-dev community will help if you're active there.</p>
</li>
<li><p>Facebook: not great for this specific ask.</p>
</li>
</ul>
<p><strong>5. The paid-testers path (last resort).</strong> Paid tester services exist, but Google is increasingly cracking down on obvious paid-tester rings, and engagement quality matters at review time. If your app is legitimate, organic recruitment works. If you use paid, use small numbers mixed with organic.</p>
<h2>The other Play Console gotchas</h2>
<p><strong>Developer verification takes time.</strong> Google requires identity verification for new developer accounts. Start this the day you create the account, not the week you plan to launch; account setup and verification can take days.</p>
<p><strong>Sensitive permissions require justification.</strong> If your app requests call log, SMS, accessibility service, or "all files" storage access, you'll fill out a policy form justifying each. Google reviews it manually. Add days, sometimes more than a week.</p>
<p><strong>Data safety form is not optional.</strong> For each data type your app collects, you declare what it's used for. Mismatches with your actual behavior mean rejection. Fill this in after you've audited your app's actual data flows, not before.</p>
<p><strong>Play Integrity failures are silent.</strong> If your app checks device integrity (many auth flows do), the Play Integrity call fails silently on rooted or emulated devices. Test on a range of real devices, not just emulators.</p>
<p><strong>App Bundle (AAB), not APK.</strong> Google Play only accepts AABs for new apps. <code>eas build --platform android --profile production</code> gives you an AAB by default; verify. If you'd rather not babysit the build-sign-upload loop at all, this is the part of the pipeline we automate at <a href="https://www.letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=google-play-12-tester-rule-first-time-devs">LetsDeployIt</a>: build, submission, and track promotion from CI.</p>
<h2>Timeline: setup to published (realistic)</h2>
<p>For a first-time indie dev on a personal account, from zero to published:</p>
<ul>
<li><p>Week 1: Developer account creation, identity verification, developer profile setup.</p>
</li>
<li><p>Week 2: App bundle build, closed testing configuration, tester recruitment kickoff.</p>
</li>
<li><p>Weeks 2-4: 14-day closed testing period. In parallel: prepare the production listing (screenshots, description, data safety, content rating).</p>
</li>
<li><p>Week 4-5: Apply for production access. You'll answer a short set of questions about your app and your testing; expect a decision within days, then the production review itself on top.</p>
</li>
<li><p>Week 5-6: Live.</p>
</li>
</ul>
<p>Realistic total: <strong>4-6 weeks</strong> from account creation to published. Most first-time devs assume "a few days" and get blindsided. Wiring your store submission into CI early (<a href="https://www.letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=google-play-12-tester-rule-first-time-devs">LetsDeployIt</a> handles the Play upload and track promotion) means the 14-day window is spent iterating on tester feedback instead of fighting the release process.</p>
<h2>What changes for the second app</h2>
<p>Once you've been granted production access:</p>
<ul>
<li><p>Google frames the closed-testing requirement around gaining production access for new personal accounts, so subsequent releases don't face the same 14-day gate the way your first launch did. That said, guidance and community reports differ on edge cases here; check your Play Console dashboard for what it's actually asking of a new app before you plan around it.</p>
</li>
<li><p>Update review times drop substantially once you have a track record.</p>
</li>
<li><p>Sensitive permissions still need justification if new ones are added.</p>
</li>
</ul>
<p>If you're planning multiple apps, get the first one through cleanly and everything after moves faster.</p>
<h2>Summary</h2>
<p>Google Play is not the "upload and publish in an hour" store people remember from 2015. Plan for 4-6 weeks. Know whether the 12-tester rule applies to your account type. Recruit testers early and keep them engaged. Verify your data safety form matches actual behavior. Once you're through the first app, everything after is easier.</p>
]]></content:encoded></item><item><title><![CDATA[How to Find 12 Testers for Google Play Closed Testing]]></title><description><![CDATA[Where the twelve actually come from, why you should recruit fifteen, and what gets your account actioned.]]></description><link>https://julessarah.hashnode.dev/how-to-find-12-testers-for-google-play-closed-testing</link><guid isPermaLink="true">https://julessarah.hashnode.dev/how-to-find-12-testers-for-google-play-closed-testing</guid><category><![CDATA[Android]]></category><category><![CDATA[google play]]></category><category><![CDATA[Indie Hacking]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[app store]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 27 Aug 2026 10:24:41 GMT</pubDate><content:encoded><![CDATA[<p>If you opened a personal Google Play developer account after November 2023, you cannot publish to production until twelve testers have been opted into a closed test for fourteen continuous days.</p>
<p>Finding those twelve is the actual problem. The fourteen days are fixed and knowable. The recruitment is the variable, and for a solo developer with no audience it is the thing that decides your launch date.</p>
<ul>
<li><p>Twelve testers, fourteen continuous days, opted in through Play</p>
</li>
<li><p>Recruit fifteen or more, because dropping below twelve restarts the clock</p>
</li>
<li><p>Reciprocity with other developers in the same position resolves most solo launches</p>
</li>
<li><p>Paid tester services are cheap and risk an account action, not just a rejection</p>
</li>
<li><p>Start the closed test before the app is finished, so the fourteen days cost nothing</p>
</li>
</ul>
<h2>The requirement, precisely</h2>
<table>
<thead>
<tr>
<th>Requirement</th>
<th>Detail</th>
</tr>
</thead>
<tbody><tr>
<td>Testers</td>
<td>At least 12, opted in</td>
</tr>
<tr>
<td>Duration</td>
<td>14 continuous days</td>
</tr>
<tr>
<td>Accounts</td>
<td>Distinct Google accounts, real devices</td>
</tr>
<tr>
<td>Track</td>
<td>Closed testing. Internal testing does not count.</td>
</tr>
<tr>
<td>Applies to</td>
<td>Personal accounts created after November 2023</td>
</tr>
<tr>
<td>Exempt</td>
<td>Organisation accounts, including new ones</td>
</tr>
</tbody></table>
<p>Two details that catch people.</p>
<p><strong>The number changed.</strong> The requirement launched at twenty testers and was reduced to twelve in mid-2025. A lot of the advice still circulating is calibrated to twenty, so if a guide says twenty, it predates the change.</p>
<p><strong>Organisation accounts are exempt by type, not grandfathered.</strong> A company account registered today skips this entirely. The cost is business documentation and a verification process measured in weeks, so it is not a shortcut if you need to ship soon.</p>
<h2>Recruit fifteen, not twelve</h2>
<p>Twelve is the floor, not the target.</p>
<p>If your opted-in count drops below twelve at any point, the fourteen days restart. One person uninstalling in week two costs you the whole window, and you will not necessarily notice until you check.</p>
<p>Build in slack. Fifteen to eighteen gives you room for the drop-off that will happen.</p>
<h2>Where the twelve actually come from</h2>
<h3>Reciprocity with other developers</h3>
<p>This resolves most solo launches, and it is worth understanding why: every developer in this position has the same problem and a spare Google account. The trade is genuinely mutual rather than a favour.</p>
<p>The venues move around. What stays constant is the pattern: Google Groups created for the purpose, indie game and developer forums, and community threads where people in the same bind find each other. Search for recent posts rather than committing to one place, since these communities go quiet and reappear as the rule's salience shifts.</p>
<p>When you trade, actually use the other person's app. The evaluation looks at engagement, and a reciprocity ring where nobody opens anything produces exactly the pattern the requirement exists to catch.</p>
<h3>A small community, started early</h3>
<p>Not a launch audience. Twelve people who care about the problem you're solving.</p>
<p>Post progress somewhere relevant several weeks before you need anything: screenshots, decisions, things that broke. When you ask for testers you are asking people who have been watching, which is a different request from cold-messaging strangers.</p>
<h3>An email list</h3>
<p>A landing page six weeks out costs an afternoon. The people who give an email address for an unreleased app are self-selected for precisely this, so conversion from that list is far better than from any general audience.</p>
<h3>People you already know, carefully</h3>
<p>Friends and family work if the usage is real. The failure mode is twelve accounts installing the same unreleased app from one location in one sitting, which is a pattern, and patterns get examined.</p>
<p>Spread it out. Different days, different networks.</p>
<h2>What doesn't work</h2>
<table>
<thead>
<tr>
<th>Approach</th>
<th>Why it fails</th>
</tr>
</thead>
<tbody><tr>
<td>Paid tester services</td>
<td>Engagement is evaluated at production access; manufactured activity is what that check is for</td>
</tr>
<tr>
<td>Burner accounts</td>
<td>Same evaluation, plus a direct terms violation</td>
</tr>
<tr>
<td>One person, many devices</td>
<td>Tracked per Google account, not per device</td>
</tr>
<tr>
<td>Internal testing track</td>
<td>Does not count toward the requirement</td>
</tr>
</tbody></table>
<p>Paid services deserve a specific note, because they are cheap enough to be genuinely tempting. Gigs start at a few dollars.</p>
<p>The risk is not that they fail to deliver installs. It is that the production access application asks whether real testing happened, and the downside of a negative answer is an account action rather than a rejection. A developer account is not a cheap thing to replace.</p>
<blockquote>
<p>The requirement is not really about twelve installs. It is about evidence that twelve people used the app.</p>
</blockquote>
<p>Any approach that produces the first without the second is solving the wrong problem.</p>
<h2>The scheduling trick</h2>
<p>The single highest-leverage decision here has nothing to do with recruitment.</p>
<p><strong>Start the closed test before the app is finished.</strong></p>
<p>The build in a closed test does not have to be what you intend to ship. It has to be functional and honest. Upload something usable as soon as you have working screens, get your testers opted in, and let the fourteen days run while you keep building.</p>
<p>By the time the app is ready, the gate is behind you.</p>
<p>The alternative, waiting until the app is done and then starting the clock, spends the same fourteen days sequentially instead of concurrently. That is a scheduling choice, not a requirement, and it is the difference between a launch that absorbs the rule and one that is delayed by it.</p>
<p>For teams shipping regularly, moving the test track and store assets into the release pipeline rather than assembling them per launch removes most of this overhead. That is part of what <a href="https://www.letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=google-play-closed-testing">letsdeploy.it</a> handles alongside the build.</p>
<h2>FAQ</h2>
<p><strong>Does the fourteen days restart if a tester leaves?</strong> If your opted-in count falls below twelve, yes. Recruit above the minimum.</p>
<p><strong>Do testers need to use the app every day?</strong> Not daily, but engagement is evaluated. Twelve accounts that installed and never opened it is the pattern you want to avoid.</p>
<p><strong>Can I switch to an organisation account to skip this?</strong> Organisation accounts are exempt, but registration requires business documentation and verification takes weeks. It is not a fast route.</p>
<p><strong>Does internal testing count?</strong> No. It must be a closed testing track.</p>
<p><strong>Why do some guides say twenty testers?</strong> They predate the mid-2025 reduction to twelve.</p>
<hr />
<p>How did you find your twelve? My impression is that reciprocity carries almost all of it, and that nobody plans for that in advance, which is why the requirement feels harder than it is.</p>
]]></content:encoded></item><item><title><![CDATA[Five Reasons Developers Abandon React Native Boilerplates]]></title><description><![CDATA[Deep abstraction, stale lockfiles, hidden codegen. Why React Native starters get abandoned, and how to spot it before buying.]]></description><link>https://julessarah.hashnode.dev/five-reasons-developers-abandon-react-native-boilerplates</link><guid isPermaLink="true">https://julessarah.hashnode.dev/five-reasons-developers-abandon-react-native-boilerplates</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[developer experience]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[open source]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 27 Aug 2026 09:24:31 GMT</pubDate><content:encoded><![CDATA[<p>Running a small developer community, I kept seeing the same message: someone bought a React Native boilerplate, got three months in, and now wants to rewrite the whole thing.</p>
<p>The frequency was what got my attention. So I started asking people about it. A dozen conversations later, five patterns, and they were remarkably consistent.</p>
<ul>
<li><p>Abstraction depth is the top complaint. If a login screen spans four files, people leave.</p>
</li>
<li><p>Stale lockfiles cause the earliest abandonment, usually inside the first hour.</p>
</li>
<li><p>Over-configuration is a slower failure: too many options to strip back.</p>
</li>
<li><p>Invisible code generation destroys trust the first time it overwrites a manual edit.</p>
</li>
<li><p>Embedded business assumptions are the hardest to remove and the least visible when buying.</p>
</li>
</ul>
<h2>1. Too many abstractions, no path to grep</h2>
<p>The most common failure by a distance.</p>
<blockquote>
<p>I tried to change the login form and couldn't find where the state lived. It went through four files, a hook, a higher-order component, and a context. I gave up.</p>
</blockquote>
<p>Authors abstract for flexibility, which is a reasonable instinct when you're writing something many people will use. The cost is that every layer of indirection is a layer a first-time reader has to hold in their head before they can change anything.</p>
<p>The person who wrote it navigates it from memory. The person who bought it navigates it by searching.</p>
<blockquote>
<p>A boilerplate should be flat. If I need four levels of code to understand a login screen, I'm not using it.</p>
</blockquote>
<h2>2. Stale dependencies</h2>
<p>The earliest abandonment, and usually the fastest.</p>
<blockquote>
<p>Half the packages had unpinned versions. The SDK was several majors behind current. Nothing worked out of the box.</p>
</blockquote>
<p>The underlying cause is almost always a missing or outdated lockfile. Without one, a buyer resolving dependencies today gets a tree the author never tested, and the failure appears within minutes of install, before any of the boilerplate's actual value has been seen.</p>
<p>This is the cheapest problem on the list to prevent and the most expensive to experience, because it happens before trust exists.</p>
<h2>3. Over-configuration</h2>
<p>A slower failure than the first two, and harder to spot when buying.</p>
<blockquote>
<p>I spent days working out which of the environment variables I actually needed. Half the flags controlled features I was never going to use.</p>
</blockquote>
<p>Authors trying to serve every use case end up with a tree of options. A buyer trying to reduce it to their case has to understand every branch well enough to know what's safe to delete, which is more work than writing the branch they wanted.</p>
<h2>4. Invisible code generation</h2>
<blockquote>
<p>The boilerplate regenerated a routes file whenever you added a screen. I didn't know that. I edited the file manually and my changes were wiped on the next start.</p>
</blockquote>
<p>Generation like this is well-intentioned and it works right up until someone doesn't know it exists.</p>
<p>What makes it costly isn't the lost edit. It's that the developer now has no model of which files are theirs, and starts distrusting the whole project. That distrust doesn't reverse.</p>
<p>If a boilerplate generates files, the generated ones need a header saying so. That's the entire fix.</p>
<h2>5. Embedded business assumptions</h2>
<blockquote>
<p>It assumed users, subscriptions, and admin roles. My app was a single-user tool. Ripping that out was harder than building from scratch.</p>
</blockquote>
<p>This is the least visible problem at purchase, because a feature list reads as value. Multi-tenancy, subscription billing, and role hierarchies are only value if your product has those shapes.</p>
<p>If it doesn't, they aren't neutral. They're structural assumptions running through the data model, the routing, and the auth layer, and removing them is not deletion, it's surgery.</p>
<h2>What the ones who stayed had in common</h2>
<p>Not everyone abandoned theirs. The people still using their boilerplate months later shared three things.</p>
<p><strong>They forked rather than depended.</strong> Ownership meant deleting things without asking whether they were allowed to.</p>
<p><strong>The documentation explained decisions, not just structure.</strong> Not a folder listing. The reasoning behind the major choices, so a reader could tell which were load-bearing.</p>
<p><strong>It was flat.</strong> Minimal indirection, greppable.</p>
<p>One line stuck with me:</p>
<blockquote>
<p>The good ones read like a tutorial. The bad ones read like a personal project.</p>
</blockquote>
<h2>A pre-purchase check</h2>
<p>Before paying for or heavily forking a boilerplate:</p>
<table>
<thead>
<tr>
<th>Check</th>
<th>Signal</th>
</tr>
</thead>
<tbody><tr>
<td>Open three files in <code>src/</code> at random</td>
<td>If you can't follow them in five minutes, neither will you in month three</td>
</tr>
<tr>
<td>Look at the lockfile date</td>
<td>Months old means setup pain before value</td>
</tr>
<tr>
<td>Trace one feature end to end</td>
<td>Count the files. That count is your daily cost.</td>
</tr>
<tr>
<td>Read the README</td>
<td>If it's a marketing page rather than an explanation, the code probably matches</td>
</tr>
</tbody></table>
<p>The third one is the most informative. Pick something small, like changing a button's behaviour, and follow it from the screen to wherever the state lives. However many files that takes is what every future change costs you.</p>
<p>Templates built with this in mind, including the Expo starters at <a href="https://www.applighter.com/apps?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=react-native-boilerplate-abandonment-patterns">Applighter</a>, are worth applying the same four checks to. If a boilerplate can't survive them, it doesn't matter who made it.</p>
<h2>The pattern underneath</h2>
<p>Every one of these five is the same thing in different clothing: the author optimised for the impression the boilerplate makes, and the buyer pays for the experience of living in it.</p>
<p>Abstraction looks like engineering quality. Configuration looks like flexibility. Code generation looks like convenience. Embedded features look like value.</p>
<p>All four look better in a README than they feel in month three.</p>
<h2>FAQ</h2>
<p><strong>Is forking always better than using a boilerplate as a dependency?</strong> For starters, generally yes. You need to delete things, and you can't delete things you don't own.</p>
<p><strong>How old is too old for a boilerplate?</strong> It's less about age than the lockfile and whether the SDK version is current. A well-maintained older starter beats a neglected recent one.</p>
<p><strong>What's the single strongest signal?</strong> Trace one feature end to end before buying. The file count tells you more than any feature list.</p>
<hr />
<p>If you've abandoned one, I'd like to know which pattern it was. My guess is the first, since it's the one nobody can see until they try to change something.</p>
]]></content:encoded></item><item><title><![CDATA[Progressive Enrichment: The Onboarding Pattern That Replaces Your Signup Wall ]]></title><description><![CDATA[Ask for each piece of data at the moment it buys the user something, not on screen one]]></description><link>https://julessarah.hashnode.dev/progressive-enrichment-the-onboarding-pattern-that-replaces-your-signup-wall</link><guid isPermaLink="true">https://julessarah.hashnode.dev/progressive-enrichment-the-onboarding-pattern-that-replaces-your-signup-wall</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[UX]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[product]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 20 Aug 2026 08:06:45 GMT</pubDate><content:encoded><![CDATA[<p>Most onboarding is designed as a gate: collect everything, then let the user in.</p>
<p>Progressive enrichment inverts that. Nothing is collected upfront. Each piece of data is requested at the exact moment it unlocks something the user is already trying to do.</p>
<p>The result is an app that opens straight into itself, and a series of small asks that each arrive with an obvious reason attached.</p>
<ul>
<li><p>Screen one asks for nothing. Not an account, not a permission, not an email.</p>
</li>
<li><p>Every ask is attached to the action that needs it</p>
</li>
<li><p>Empty states are prefilled with examples, not the words "No items yet"</p>
</li>
<li><p>Instrument each step separately or you will not know which one is bleeding</p>
</li>
<li><p>The pattern is copyable into any Expo app in an afternoon</p>
</li>
</ul>
<h2>The ladder</h2>
<p>Here is the whole pattern in one table. Each row is a thing you might want from a user, and the moment to ask for it.</p>
<table>
<thead>
<tr>
<th>What you want</th>
<th>When you ask</th>
</tr>
</thead>
<tbody><tr>
<td>Nothing</td>
<td>App launch, first screen</td>
</tr>
<tr>
<td>Email or Apple/Google sign-in</td>
<td>When they save their first item</td>
</tr>
<tr>
<td>Their name</td>
<td>When they invite someone or share</td>
</tr>
<tr>
<td>Notification permission</td>
<td>After sustained engagement, framed by what they did</td>
</tr>
<tr>
<td>Payment method</td>
<td>When they hit a paid feature</td>
</tr>
</tbody></table>
<p>Read down the right-hand column. Every ask arrives after the user has demonstrated intent, which means every ask has an answer to "why do you need this."</p>
<p>Compare that to the default, where all five arrive before the user has seen anything.</p>
<blockquote>
<p>The question isn't how many fields you ask for. It's whether the user can see what each one buys them.</p>
</blockquote>
<h2>What screen one should be</h2>
<p>The app. Prefilled with example data.</p>
<p>Not a signup form, not a value proposition carousel, not a permission modal. The actual product, populated enough that a stranger can tap around and understand what it does.</p>
<p>This is the part that feels wrong to build and works in testing. Letting someone use the app before you know who they are seems backwards until you notice that the alternative is asking a stranger to commit before they know what they're committing to.</p>
<p>Sign-up prompts when they try to <strong>save</strong>. That's the natural boundary: you can explore for free, keeping things requires an account. Users find that entirely reasonable because it matches how they already expect software to work.</p>
<h2>The empty state problem</h2>
<p>A screen that says "No items yet" is not an empty state. It's an absence.</p>
<p>An empty state should show what the screen will look like once it's populated, and give exactly one obvious next action.</p>
<p>Three ways to do it, roughly in order of effort:</p>
<ul>
<li><p><strong>Example data.</strong> A demo item the user can tap, edit, or delete. Best option if your data model allows it.</p>
</li>
<li><p><strong>A ghosted preview.</strong> A faded mockup of a populated list with a single "add your first" action.</p>
</li>
<li><p><strong>A worked suggestion.</strong> "Most people start by adding X" with a one-tap button that does it.</p>
</li>
</ul>
<p>The failure mode of all three is subtle: if the example data is indistinguishable from real data, users get confused about whether they created it. Label it, or make it obviously removable.</p>
<h2>Permissions arrive last, and once</h2>
<p>Notification permission is the one ask you genuinely cannot retry. On iOS a denial is terminal short of the user going into Settings, so a prompt fired before the user understands the app spends something you can't get back.</p>
<p>Under progressive enrichment it comes late by construction: after sustained engagement, framed around what the user just did rather than what your app wants.</p>
<p>The full argument for that, including the pre-prompt pattern for the asks you can't move, is worth its own read. The short version for this pattern: the ladder puts it near the bottom for a reason.</p>
<h2>Instrument every step separately</h2>
<p>Progressive enrichment only works if you can see which rung people fall off. That means an event per step, not a single "onboarding_completed."</p>
<pre><code class="language-ts">track('onboarding_first_screen_viewed');
track('onboarding_example_interacted');
track('onboarding_first_save_attempted');
track('onboarding_signup_prompted');
track('onboarding_signup_completed');
track('onboarding_permission_prompted');
track('onboarding_permission_granted');
</code></pre>
<p>The pairs matter more than the individual events. <code>prompted</code> versus <code>completed</code> on the same rung tells you whether the ask is badly timed or badly worded. A single completion event tells you neither.</p>
<p>A free PostHog or Amplitude project is enough for this. Wire it once and check it weekly; within a week or two the shape of the drop-off is usually obvious, and it's almost never where the team guessed.</p>
<h2>Why this is worth the rework</h2>
<p>Two reasons that hold regardless of what your funnel numbers turn out to be.</p>
<p><strong>Every ask becomes answerable.</strong> "Why do you want my email" has a real answer when the answer is "so this thing you just made doesn't disappear." On screen one there is no answer, so users supply their own, and the one they supply is usually about marketing.</p>
<p><strong>The permission you can only ask once gets spent well.</strong> That's not an optimisation. It's the difference between having a re-engagement channel and permanently not having one.</p>
<h2>Making it concrete</h2>
<p>The pattern is a handful of decisions rather than a library:</p>
<ol>
<li><p>Delete the signup screen from your entry flow.</p>
</li>
<li><p>Seed the first screen with example data.</p>
</li>
<li><p>Move the account prompt to your save action.</p>
</li>
<li><p>Move the permission prompt behind an engagement check.</p>
</li>
<li><p>Add an event on both sides of every ask.</p>
</li>
</ol>
<p>Every Applighter template ships with this structure already wired, including the prefilled examples and the funnel events, which is one way to skip the rework. But nothing above is template-specific, and you can retrofit it into an existing Expo app in an afternoon. The <a href="https://www.applighter.com/apps?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=expo-onboarding-progressive-enrichment">templates</a> are a shortcut, not a prerequisite.</p>
<h2>FAQ</h2>
<p><strong>Doesn't letting users in without an account create junk data?</strong> Local-only until they sign up. Nothing hits your backend until there's an account to attach it to, so there is nothing to clean up.</p>
<p><strong>What if my app genuinely can't work without an account?</strong> Very few do. If yours does, the pattern still applies to permissions, name, and payment. The account moves up one rung, everything else stays put.</p>
<p><strong>Won't fewer signups on day one look worse?</strong> Yes, if signups are the metric. They're a poor one. A signup from someone who never returns is worse than an anonymous session from someone who does, and progressive enrichment trades the first for the second deliberately.</p>
<hr />
<p>Which rung is your app asking for too early? Mine was the name field, which sat on the signup form for a year doing nothing except making the form longer.</p>
]]></content:encoded></item><item><title><![CDATA[Every Tool Behind Applighter's React Native Stack]]></title><description><![CDATA[A file-path-level tour of Next.js, Supabase, Stripe, Resend, Listmonk, and the bash pipeline that publishes this post]]></description><link>https://julessarah.hashnode.dev/every-tool-behind-applighter-s-react-native-stack</link><guid isPermaLink="true">https://julessarah.hashnode.dev/every-tool-behind-applighter-s-react-native-stack</guid><category><![CDATA[React Native]]></category><category><![CDATA[stack]]></category><category><![CDATA[templates]]></category><category><![CDATA[react native app development]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Wed, 19 Aug 2026 07:07:33 GMT</pubDate><content:encoded><![CDATA[<h2>Why write this</h2>
<p>When I started <a href="https://www.applighter.com/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=applighter-stack-teardown">Applighter</a>, a React Native templates business, I read maybe forty "here's my stack" posts. Almost all of them fell apart under two questions: <em>where does this actually live in your repo?</em> and <em>what did you nearly pick and reject?</em></p>
<p>This post answers both. Every tool listed is one I can point to a file for, and I try to say what we chose against.</p>
<ul>
<li><p>One Next.js app on Vercel covers marketing, catalog, docs, blog, and dashboard</p>
</li>
<li><p>Supabase with RLS everywhere, no ORM, raw SQL in migrations</p>
</li>
<li><p>Stripe webhook is the only place post-payment state changes, ever</p>
</li>
<li><p>Transactional and marketing email are deliberately separate systems with separate sender reputations</p>
</li>
<li><p>The blog you're reading is generated by a bash script, with human review before anything cross-posts</p>
</li>
<li><p>The rule underneath all of it: do not add tools before their problem exists</p>
</li>
</ul>
<h2>The system</h2>
<p>Applighter has three jobs: <strong>ship code, sell licenses, support customers</strong>. Every tool in the stack maps to one of them. If a tool doesn't earn a job, it's out.</p>
<h3>Ship</h3>
<p>The marketing site, template catalog, docs, blog, and customer dashboard are one Next.js 16.1.1 app on Vercel:</p>
<ul>
<li><p><strong>Next.js 16 + React 19.</strong> Server components for dynamic pages, static rendering for content.</p>
</li>
<li><p><strong>Tailwind v4</strong> with <code>@tailwindcss/postcss</code>. No <code>tailwind.config.js</code> needed anymore.</p>
</li>
<li><p><strong>Radix UI.</strong> Accordion, dialog, dropdown-menu, navigation-menu, separator.</p>
</li>
<li><p><code>lucide-react</code> for icons that tree-shake.</p>
</li>
<li><p><code>sonner</code> for toasts.</p>
</li>
<li><p><code>react-hook-form</code> for forms.</p>
</li>
</ul>
<p>Security headers in <code>next.config.ts</code>:</p>
<pre><code class="language-ts">// Only the ones you should not skip
'Content-Security-Policy': "frame-ancestors 'self'"
'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload'
'X-Frame-Options': 'SAMEORIGIN'
</code></pre>
<p>Vercel handles previews, image optimization, and edge caching. We moved template ZIP downloads to signed S3-compatible URLs the moment they showed up on the bandwidth line.</p>
<h3>Store</h3>
<p>Supabase, one database, RLS everywhere. Two clients:</p>
<pre><code class="language-plaintext">modules/db/supabaseClient.ts   // browser (anon)
modules/db/supabaseServer.ts   // server (service role)
</code></pre>
<p>Schema tables in <code>supabase/migrations/</code>:</p>
<table>
<thead>
<tr>
<th>Table</th>
<th>Purpose</th>
</tr>
</thead>
<tbody><tr>
<td><code>users</code></td>
<td>Customer accounts</td>
</tr>
<tr>
<td><code>products</code></td>
<td>Template catalog</td>
</tr>
<tr>
<td><code>transactions</code></td>
<td>Stripe purchases (append-only)</td>
</tr>
<tr>
<td><code>user_product</code></td>
<td>License grants</td>
</tr>
<tr>
<td><code>product_licenses</code></td>
<td>Tier definitions</td>
</tr>
<tr>
<td><code>blog_posts</code></td>
<td>Published articles</td>
</tr>
<tr>
<td><code>support_requests</code></td>
<td>Customer inbox</td>
</tr>
<tr>
<td><code>newsletter_subscribers</code></td>
<td>Marketing list</td>
</tr>
<tr>
<td><code>template_requests</code></td>
<td>Feature requests</td>
</tr>
<tr>
<td><code>bundles</code></td>
<td>Multi-template packages</td>
</tr>
</tbody></table>
<p>No ORM. Supabase-js query builder plus raw SQL in migrations. Adding Prisma at this team size would slow us down, not speed us up.</p>
<h3>Sell</h3>
<p>Stripe v20.1.2 pinned to API version <code>2025-12-15.clover</code>. The single file that matters is <code>app/api/webhook/stripe/route.ts</code>. On <code>checkout.session.completed</code>:</p>
<pre><code class="language-ts">// Pseudocode of the real flow
const session = await stripe.checkout.sessions.retrieve(sessionId, {
  expand: ['line_items']
});

const user = await upsertUser(session.customer_details.email);
await recordTransaction(user.id, session);        // idempotent
await grantProducts(user.id, session.line_items); // handles bundle expansion
await sendPurchaseEmail(user.email, session);
await metaCapi.purchase({
  event_id: `purchase_${session.id}`,
  value: session.amount_total / 100,
  currency: session.currency,
  email: user.email
});
if (referralId) await rewardful.recordConversion(referralId, session);
</code></pre>
<p>Rules I learned the hard way:</p>
<blockquote>
<p><strong>Never trust the browser after redirect.</strong> If any post-payment state change happens client-side, you will get "I paid but can't download" support tickets. Every one of those flows through the webhook.</p>
</blockquote>
<p>Refunds are documented on our <a href="https://www.applighter.com/legal/refund-policy?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=applighter-stack-teardown">refund policy page</a> and handled manually. Volume doesn't justify automation, and manual review catches abuse patterns.</p>
<h3>Deliver email</h3>
<p>Two systems, deliberately separated:</p>
<pre><code class="language-plaintext">Resend + React Email → transactional (magic link, receipt, support, affiliate welcome)
Listmonk (self-hosted) → marketing (newsletter, product announcements, sequences)
</code></pre>
<p>Wrappers:</p>
<pre><code class="language-plaintext">modules/services/EmailService.ts    // Resend
modules/services/ListmonkService.ts // Listmonk REST client
</code></pre>
<p>If you take one thing from this section: <strong>do not send marketing broadcasts and transactional email from the same sender reputation.</strong> A poorly timed newsletter can bounce your next password-reset email straight to spam.</p>
<h3>Attribute conversions</h3>
<p>Client Pixel plus server CAPI, both firing with the same <code>event_id</code>:</p>
<pre><code class="language-ts">// Client, in the root layout, loaded once
window.fbq('track', 'Purchase', {
  value: amount,
  currency: 'USD'
}, {
  eventID: `purchase_${sessionId}`
});

// Server, from the Stripe webhook
await fetch(`https://graph.facebook.com/v18.0/${PIXEL_ID}/events`, {
  method: 'POST',
  body: JSON.stringify({
    data: [{
      event_name: 'Purchase',
      event_id: `purchase_${sessionId}`,
      event_source_url: '...',
      user_data: { em: [hashEmail(email)] },
      custom_data: { value, currency }
    }],
    access_token: FB_CAPI_ACCESS_TOKEN
  })
});
</code></pre>
<p>Shared <code>event_id</code> means deduplication. Skip the server event and iOS ATT plus ad blockers will eat a large share of your recorded conversions.</p>
<h3>Support</h3>
<ul>
<li><p>Contact form goes to <code>app/api/support/route.ts</code>, writes to <code>support_requests</code>, sends a Resend acknowledgement</p>
</li>
<li><p>Admin inbox is <code>app/api/admin/support/route.ts</code> for list and <code>[id]/route.ts</code> for reply</p>
</li>
<li><p>Reply templates: <code>SupportAcknowledgementMailTemplate</code>, <code>SupportReplyMailTemplate</code></p>
</li>
</ul>
<p>The whole support system is under 500 lines. It replaces Intercom at our volume.</p>
<h2>Templates: the actual product</h2>
<p>Every template in the <a href="https://www.applighter.com/apps?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=applighter-stack-teardown">catalog</a> ships with the same core:</p>
<pre><code class="language-plaintext">React Native 0.81
Expo SDK 54       (managed workflow, EAS Build)
Expo Router v6    (file-based)
NativeWind v4     (Tailwind for RN, and yes it works)
TanStack Query v5 (server state)
Zustand           (UI state where needed)
Supabase          (data, auth, storage, RLS)
</code></pre>
<p>Per-template metadata lives at <code>app/apps/config/&lt;slug&gt;.config.ts</code>. Adding a template is:</p>
<ol>
<li><p>One config file</p>
</li>
<li><p>One migration inserting the <code>products</code> row</p>
</li>
<li><p>Optionally, extra tables for template-specific data</p>
</li>
</ol>
<p>Nothing about the marketing site or checkout needs to change.</p>
<h2>The blog pipeline</h2>
<p>The post you're reading was drafted by an LLM and shipped by a bash script:</p>
<pre><code class="language-plaintext">scripts/blog-automation/
├── config.json          # cadence + platform config
├── blog-tracker.md      # topic queue
├── generate-blog.sh     # 760+ lines
├── setup-cron.sh
└── logs/                # 30-day retention
</code></pre>
<p>Flow:</p>
<ol>
<li><p>Cron fires <code>generate-blog.sh</code></p>
</li>
<li><p>Script pulls the next topic from <code>blog-tracker.md</code></p>
</li>
<li><p>Invokes the model with a <code>/write-blog {topic}</code> prompt</p>
</li>
<li><p><code>awk</code> splits output on delimiters into five files (canonical, Medium, Dev.to, Hashnode, SEO brief)</p>
</li>
<li><p>Canonical is POSTed to <code>app/api/outrank/webhook/route.ts</code> with a shared secret</p>
</li>
<li><p><code>OutrankArticleService</code> normalizes, renders markdown to HTML, inserts into <code>blog_posts</code></p>
</li>
<li><p>External adaptations upload to a private Slack channel via the Files API</p>
</li>
</ol>
<p>Two rules that make this work:</p>
<blockquote>
<p><strong>Bash is the source of truth, not the model.</strong> Word-count checks, image URL validation, and delimiter counting all live in the script. Let the model be the whole pipeline and you ship broken markdown.</p>
</blockquote>
<blockquote>
<p><strong>Slack is a queue, not an autopilot.</strong> Human review before any external cross-post. We skipped review for two weeks once and quality drifted noticeably.</p>
</blockquote>
<p>Retired posts get filtered from the sitemap via <code>RETIRED_BLOG_SLUGS</code> in <code>lib/blog.ts</code>, so Google stops re-indexing content we've moved past.</p>
<h2>The full comparison table</h2>
<table>
<thead>
<tr>
<th>Layer</th>
<th>Applighter</th>
<th>Rejected alternative</th>
<th>Reason</th>
</tr>
</thead>
<tbody><tr>
<td>Framework</td>
<td>Next.js 16</td>
<td>Remix</td>
<td>Ecosystem depth</td>
</tr>
<tr>
<td>Hosting</td>
<td>Vercel</td>
<td>Self-host</td>
<td>Preview URLs on every PR</td>
</tr>
<tr>
<td>Styling</td>
<td>Tailwind v4 + Radix</td>
<td>Full shadcn generator</td>
<td>Wanted primitives, not scaffolding</td>
</tr>
<tr>
<td>DB + auth</td>
<td>Supabase</td>
<td>Firebase</td>
<td>SQL, RLS, Postgres migrations</td>
</tr>
<tr>
<td>Payments</td>
<td>Stripe Checkout</td>
<td>Paddle</td>
<td>Merchant of record is nice, fees aren't</td>
</tr>
<tr>
<td>Tx email</td>
<td>Resend</td>
<td>Postmark</td>
<td>DX won</td>
</tr>
<tr>
<td>Marketing email</td>
<td>Listmonk</td>
<td>Mailchimp</td>
<td>Cheaper past a certain list size</td>
</tr>
<tr>
<td>Affiliates</td>
<td>Rewardful</td>
<td>DIY</td>
<td>Not on day one</td>
</tr>
<tr>
<td>Attribution</td>
<td>Meta Pixel + CAPI</td>
<td>Client only</td>
<td>Client-only loses conversions</td>
</tr>
<tr>
<td>Video</td>
<td>Cloudflare Stream</td>
<td>Vercel bandwidth</td>
<td>Accounting finds you</td>
</tr>
<tr>
<td>Blog CMS</td>
<td>Supabase table + bash</td>
<td>Sanity or Contentful</td>
<td>Overkill at solo cadence</td>
</tr>
<tr>
<td>Template runtime</td>
<td>Expo + RN + NativeWind</td>
<td>Bare RN</td>
<td>EAS Build worth the tradeoff</td>
</tr>
</tbody></table>
<h2>What I'd change tomorrow</h2>
<ul>
<li><p>Replace Mixpanel and GA with PostHog, for funnels plus session replay</p>
</li>
<li><p>Axiom or Better Stack for log aggregation</p>
</li>
<li><p>Meilisearch or Algolia when the blog hits roughly 200 posts</p>
</li>
<li><p>Automated preview screenshots for template updates</p>
</li>
</ul>
<h2>The rule underneath everything</h2>
<p><strong>Do not add tools before their problem exists.</strong></p>
<p>I did not add Listmonk until Mailchimp got expensive. I did not add Rewardful until a friend wanted an affiliate link. I did not build the blog pipeline until manual publishing burned out. Every tool on the list waited its turn.</p>
<p>The default 2026 indie stack, Next.js plus Supabase plus Stripe plus Resend, is genuinely great and covers most of what a small team needs. Everything else is a decision you make once you know why you need it.</p>
<h2>FAQ</h2>
<p><strong>Why no ORM?</strong> Supabase-js plus raw SQL in migrations is less indirection at this size. An ORM earns its keep when several people are writing queries against a schema they didn't design.</p>
<p><strong>Why self-host Listmonk instead of using one provider for everything?</strong> Two reasons. Cost past a certain list size, and sender reputation separation. A marketing send that gets flagged should never be able to affect password reset delivery.</p>
<p><strong>Is the blog pipeline worth building?</strong> Only after manual publishing has actually become the bottleneck. It's the clearest example of the rule above: it existed because a problem existed, not the other way around.</p>
<p><strong>What would you tell someone starting today?</strong> Next.js, Supabase, Stripe, Resend, and nothing else until something hurts.</p>
<hr />
<p>If you've built something similar, I'm curious which tool you added earliest that you now think you added too soon. Mine was analytics.</p>
]]></content:encoded></item><item><title><![CDATA[The Yearly Plan Was Wrong. Lifetime Won on Every Metric.]]></title><description><![CDATA[A quarter-long pricing experiment on our React Native template shop]]></description><link>https://julessarah.hashnode.dev/the-yearly-plan-was-wrong-lifetime-won-on-every-metric</link><guid isPermaLink="true">https://julessarah.hashnode.dev/the-yearly-plan-was-wrong-lifetime-won-on-every-metric</guid><category><![CDATA[supabase]]></category><category><![CDATA[React Native]]></category><category><![CDATA[backend]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Mon, 17 Aug 2026 08:40:21 GMT</pubDate><content:encoded><![CDATA[<hr />
<p>We launched our React Native template shop on a yearly subscription plan in July. Ninety days later we killed the yearly plan entirely and moved every product to a one-time <strong>lifetime license</strong>. This is the writeup: the setup, the numbers, the Stripe config, the schema decisions, and the reason we now think subscription pricing on downloadable source code is a category error.</p>
<ul>
<li><p>Ran yearly vs lifetime across three templates for one quarter</p>
</li>
<li><p>Lifetime converted 2.4x better and halved the refund rate</p>
</li>
<li><p>Support tickets per 100 sales dropped by roughly 60%</p>
</li>
<li><p>Repeat purchases went <strong>up</strong> under lifetime, which is the opposite of what everyone predicted</p>
</li>
<li><p>The Stripe change is two lines. The webhook simplification is the real win.</p>
</li>
</ul>
<h2>The moment I knew</h2>
<p>A developer had bought our Fitness template on the yearly plan two weeks earlier. He was two days from shipping the client app. His email, verbatim:</p>
<blockquote>
<p>I love the code, but I need to know: if I cancel in eleven months, does my client's app stop working?</p>
</blockquote>
<p>The correct answer was of course not. The code runs on his phone, not our servers, and our subscription only gated the <em>download</em>, never the runtime. But the fact that he had to ask told me exactly what was wrong with our pricing.</p>
<p>He should not have to ask that question. Nobody buying a downloadable asset should have to ask that question.</p>
<h2>Why we launched on subscription in the first place</h2>
<p>Every pricing article on the internet defaults to the same three claims:</p>
<ol>
<li><p>Recurring revenue is better than one-time revenue.</p>
</li>
<li><p>Investors pay a premium for ARR.</p>
</li>
<li><p>Only subscription businesses compound.</p>
</li>
</ol>
<p>Every one of those is true <em>for hosted SaaS</em>. None of them are obviously true for a product where your cost of serving the customer drops to zero the moment you send the tarball.</p>
<p>We took the default advice and launched on a yearly plan anyway, because that is what the pricing-page templates on the internet suggest. Ninety days of data later, the evidence was strong enough to reverse the decision.</p>
<h2>The experiment</h2>
<p>Three templates, three price points, one quarter.</p>
<ul>
<li><p><strong>Low:</strong> <a href="https://www.applighter.com/apps/weather-app?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=yearly-vs-lifetime-licenses">Weather</a>, $49 lifetime equivalent.</p>
</li>
<li><p><strong>Mid:</strong> <a href="https://www.applighter.com/apps/ai-voice-notes?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=yearly-vs-lifetime-licenses">AI Voice Notes</a>, $79 lifetime equivalent.</p>
</li>
<li><p><strong>High:</strong> <a href="https://www.applighter.com/apps/fitness-app?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=yearly-vs-lifetime-licenses">Fitness</a>, $89 lifetime equivalent.</p>
</li>
</ul>
<p>Traffic split roughly 50/50 by product-page visit. Yearly prices set at roughly a third of the lifetime price. Prices A/B rotated weekly to smooth out weekday effects.</p>
<p>Both variants shipped identical code: same TypeScript source, same Supabase migrations, same Expo config. The only functional difference was what happens on cancel. Under the yearly plan, code access was revoked. Under lifetime, you keep it forever.</p>
<p>Refund policy was constant across both, the same 7-day no-questions-asked window we still run today.</p>
<h2>The numbers</h2>
<table>
<thead>
<tr>
<th>Metric</th>
<th>Yearly</th>
<th>Lifetime</th>
<th>Delta</th>
</tr>
</thead>
<tbody><tr>
<td>Conversion</td>
<td>1.0x (baseline)</td>
<td>2.4x</td>
<td>+140%</td>
</tr>
<tr>
<td>7-day refund rate</td>
<td>6.8%</td>
<td>3.1%</td>
<td>-54%</td>
</tr>
<tr>
<td>Support tickets / 100 sales</td>
<td>41</td>
<td>17</td>
<td>-59%</td>
</tr>
<tr>
<td>Cart abandonment at pricing</td>
<td>68%</td>
<td>44%</td>
<td>-24 pts</td>
</tr>
<tr>
<td>Repeat purchase (60d)</td>
<td>~2%</td>
<td>~11%</td>
<td>+9 pts</td>
</tr>
</tbody></table>
<p>Three things jumped out.</p>
<h3>Repeat purchases went up, not down</h3>
<p>The single biggest surprise. Every SaaS-brained advisor I asked had predicted the opposite: <em>if they own it forever, they never come back.</em></p>
<p>What actually happened is that satisfied lifetime buyers came back for a second template. The developer who bought Fitness also bought <a href="https://www.applighter.com/apps/chat-with-pdf?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=yearly-vs-lifetime-licenses">Chat with PDF</a> for their next client project two weeks later. A subscription buyer treated the whole category as expensive rented software and rarely returned.</p>
<h3>Refunds halved when we removed the recurring commitment</h3>
<p>I had assumed the refund rate was a signal about code quality. It wasn't. When we tagged refund tickets, the dominant theme was:</p>
<blockquote>
<p>I don't want to be on the hook for next year's bill.</p>
</blockquote>
<p>Fear of the <em>next</em> charge, not dissatisfaction with the <em>current</em> delivery, was driving half of our refund pipeline. Removing the next charge removed the reason to hedge.</p>
<h3>Support load collapsed</h3>
<p>The top ticket categories under subscription:</p>
<ul>
<li><p><code>how-do-i-cancel</code></p>
</li>
<li><p><code>what-happens-to-code-on-cancel</code></p>
</li>
<li><p><code>can-i-export-before-renewal</code></p>
</li>
<li><p><code>will-you-charge-again-if-i-forget</code></p>
</li>
</ul>
<p>None of these questions exist under a one-time purchase. Every ticket we removed was a ticket we didn't have to answer.</p>
<h2>The Stripe change</h2>
<p>Switching from subscription to lifetime in Stripe is a two-line change on the checkout session:</p>
<pre><code class="language-ts">// before
const session = await stripe.checkout.sessions.create({
  mode: 'subscription',
  line_items: [{ price: YEARLY_PRICE_ID, quantity: 1 }],
  success_url: `${SITE}/thanks?session_id={CHECKOUT_SESSION_ID}`,
  metadata: { product_slug: 'fitness-app', license_type: 'yearly' },
});

// after
const session = await stripe.checkout.sessions.create({
  mode: 'payment',
  line_items: [{ price: LIFETIME_PRICE_ID, quantity: 1 }],
  success_url: `${SITE}/thanks?session_id={CHECKOUT_SESSION_ID}`,
  metadata: { product_slug: 'fitness-app', license_type: 'single' },
});
</code></pre>
<p>Two lines. Weeks of downstream implications.</p>
<p>The webhook handler simplified massively:</p>
<pre><code class="language-ts">// before: we handled all of these
switch (event.type) {
  case 'customer.subscription.created':
  case 'customer.subscription.updated':
  case 'customer.subscription.deleted':
  case 'invoice.payment_succeeded':
  case 'invoice.payment_failed':
  case 'checkout.session.completed':
    // ...
}

// after: just one event matters for entitlement
switch (event.type) {
  case 'checkout.session.completed':
    await grantLifetimeLicense(event.data.object);
    break;
  case 'charge.refunded':
    await revokeLifetimeLicense(event.data.object);
    break;
}
</code></pre>
<p>The delta in webhook complexity alone paid for the migration in engineer hours we didn't have to spend.</p>
<h2>The schema</h2>
<p>The <code>product_licenses</code> table went through three revisions during the migration. We ended up here:</p>
<pre><code class="language-sql">create table product_licenses (
  id uuid primary key,
  product_id uuid references products(id),
  license_type text not null check (
    license_type in ('single', 'multiple', 'team', 'enterprise')
  ),
  price_usd numeric not null,
  allowed_users int,
  allowed_projects int,
  is_commercial boolean default true,
  created_at timestamptz default now()
);
</code></pre>
<p>Note what is missing: no <code>billing_interval</code>, no <code>trial_period_days</code>, no <code>grace_period_days</code>, no <code>dunning_state</code>. Every one of those columns exists in the subscription-flavored version of this table that we never shipped to production. Not writing them was one of the quiet wins of the migration.</p>
<p>Entitlement checks on the API side collapsed to a single RLS-friendly query:</p>
<pre><code class="language-sql">select exists(
  select 1 from product_licenses
  where user_id = auth.uid()
    and product_id = $1
    and is_active = true
) as has_license;
</code></pre>
<p>No expiry check. No renewal window. No trial-versus-paid branching. The API surface stopped having states.</p>
<h2>Why subscription broke on us specifically</h2>
<p>The subscription playbook is optimised for a very specific product shape: <strong>hosted software where the vendor keeps paying an ongoing cost to keep the buyer's use of the product alive.</strong> Our product does not have that cost curve.</p>
<ul>
<li><p>We do not run your app on our servers.</p>
</li>
<li><p>We do not host your <a href="https://supabase.com/docs/guides/getting-started">Supabase project</a>. You connect your own.</p>
</li>
<li><p>We do not proxy your OpenAI calls. You drop in <a href="https://docs.expo.dev/guides/environment-variables/">your own API key via Expo's env config</a>.</p>
</li>
<li><p>We do not renew your Apple Developer account.</p>
</li>
</ul>
<p>Once we have handed you the tarball and the docs, our marginal cost per buyer is approximately zero. Charging annually for a marginal-zero-cost delivery created a psychological mismatch that showed up everywhere in the data.</p>
<blockquote>
<p>The honest test: does my cost of serving this customer continue after they sign up? If yes, subscription. If no, you're selling a lifetime asset dressed up as a rental.</p>
</blockquote>
<h2>The comparison table that made the decision</h2>
<table>
<thead>
<tr>
<th>Product shape</th>
<th>Best fit pricing</th>
<th>Why</th>
</tr>
</thead>
<tbody><tr>
<td>Hosted SaaS with per-user server cost</td>
<td>Subscription</td>
<td>Recurring cost matches recurring value</td>
</tr>
<tr>
<td>API-metered service</td>
<td>Usage-based</td>
<td>Cost scales with call volume</td>
</tr>
<tr>
<td>Downloadable tool, plugin, or template</td>
<td><strong>Lifetime</strong></td>
<td>Marginal cost per buyer is zero after delivery</td>
</tr>
<tr>
<td>Continuously-updated design or data feed</td>
<td>Hybrid</td>
<td>Ongoing curation plus base value</td>
</tr>
<tr>
<td>Physical hardware plus optional cloud</td>
<td>Perpetual plus optional sub</td>
<td>Two cost curves, two prices</td>
</tr>
</tbody></table>
<p>We are firmly in row three. There was no honest path where subscription made sense once we drew the table.</p>
<p>Some competitor template shops still run monthly access plans where the code lives behind a login. That model works for tutorial libraries where the ongoing value is curation. It stops working for production code that has to survive a client engagement.</p>
<h2>When you should still pick subscription</h2>
<p>I would go back to subscription pricing tomorrow for any of these:</p>
<ul>
<li><p>A hosted managed backend where I am paying compute for you.</p>
</li>
<li><p>A continuously-curated AI prompt library.</p>
</li>
<li><p>An agency retainer where the deliverable is my attention.</p>
</li>
<li><p>A high-touch enterprise plan with a real SLA.</p>
</li>
</ul>
<p>For a static, self-hosted, source-available product, subscription is a category error.</p>
<h2>Where we landed</h2>
<p>Every template in the <a href="https://www.applighter.com/apps?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=yearly-vs-lifetime-licenses">Applighter catalog</a> is one-time between $49 and $99. Full source, lifetime updates, and a 7-day no-questions-asked refund window. Agencies get a <code>multiple</code> license upgrade, still one-time, no subscription.</p>
<p>The FAQ line we are proudest of came out of the migration:</p>
<blockquote>
<p>One payment, all future updates to that template, including Expo upgrades, new screens, and security patches. No subscription, no seat tax.</p>
</blockquote>
<p>Every word in that sentence was fought over. "All future updates" removes the fear of a rug-pull. "Expo upgrades" makes the promise specific. "No seat tax" preempts the next question every developer asks.</p>
<h2>What to steal</h2>
<ol>
<li><p><strong>Price the product shape, not the fashion.</strong> Marginal-zero delivery plus full source handoff equals lifetime.</p>
</li>
<li><p><strong>Refund fear is real.</strong> A meaningful share of refund requests are anxiety about future charges, not product dissatisfaction.</p>
</li>
<li><p><strong>Support load is a pricing decision.</strong> Subscription generates a whole class of questions that lifetime never does.</p>
</li>
<li><p><strong>Repeat purchase does not require a subscription.</strong> Satisfied lifetime buyers repurchase in the same product family.</p>
</li>
<li><p><strong>Read the</strong> <a href="https://docs.stripe.com/billing/subscriptions/overview"><strong>Stripe billing modes doc</strong></a> <strong>before you pick.</strong> <code>payment</code> versus <code>subscription</code> is not a small config choice. It shapes the whole relationship.</p>
</li>
</ol>
<p>We chose the pricing that matched the product. The ARR chart is uglier. The business is healthier.</p>
<h2>FAQ</h2>
<p><strong>Does lifetime pricing work at higher price points?</strong> Our range topped out at $89. The dynamics likely shift above a few hundred dollars, where buyers start expecting ongoing vendor commitment.</p>
<p><strong>What about funding an ongoing update commitment?</strong> Updates come out of new sales rather than renewals. That works while the catalog is growing. A shop that stopped adding templates would need to revisit it.</p>
<p><strong>Would you run the experiment the same way again?</strong> Yes, with one change. We would tag refund reasons from day one instead of retroactively, since that turned out to be the most useful data we collected.</p>
<hr />
<p>If you sell downloadable code and you're on a subscription, I'd genuinely like to know whether your numbers look like ours or contradict them. Drop your experience in the comments.</p>
]]></content:encoded></item><item><title><![CDATA[What I Learned Watching 40 People Scroll App Store Listings]]></title><description><![CDATA[Median 1.7 seconds on slot 1, nobody reads the description, and faces win: field notes from 4 rounds of listing research]]></description><link>https://julessarah.hashnode.dev/what-i-learned-watching-40-people-scroll-app-store-listings</link><guid isPermaLink="true">https://julessarah.hashnode.dev/what-i-learned-watching-40-people-scroll-app-store-listings</guid><category><![CDATA[app store]]></category><category><![CDATA[UX]]></category><category><![CDATA[User Research]]></category><category><![CDATA[Mobile Development]]></category><category><![CDATA[ASO]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 13 Aug 2026 05:48:22 GMT</pubDate><content:encoded><![CDATA[<p>Over the last 18 months I ran the same little user-research study 4 times. Different apps, different audiences (indie B2C in one round, small business tools in another, games in a third). Same protocol every time:</p>
<ul>
<li><p>10 participants per round.</p>
</li>
<li><p>5 app listings shown per participant, in random order. Mix of the app I was working on and 4 competitors.</p>
</li>
<li><p>One question: "Which app would you install, and why?"</p>
</li>
<li><p>Screen recorded, no coaching, no prompting.</p>
</li>
</ul>
<p>Total: 40 people, roughly 200 listings viewed.</p>
<p>The patterns were boringly consistent across all 4 rounds.</p>
<h2>What people actually do on a listing</h2>
<p>Time on slot 1: median 1.7 seconds.</p>
<p>If nothing catches in that window, they hit back and move on. Slot 1 is not "the first screenshot." It is a gate. If people do not pass the gate, nothing else you built matters.</p>
<p>Swipes: median 2.5 screenshots deep. About 40% swipe to slot 3. About 15% make it to slot 5. Anyone who reaches slot 5 has very high install intent, but you do not get to slot 5 without earning it in slots 1 and 2.</p>
<p>Reading behavior: they read the caption text inside the screenshot image. They do not read the app description below. Not once in 40 sessions did someone scroll down to read the description before deciding.</p>
<p>The App Store description is for the App Store review team and for SEO. It is not for humans making install decisions.</p>
<h2>Screenshot patterns that won every time</h2>
<p><strong>Faces.</strong> Any screenshot with a human face held attention noticeably longer, 15 to 20% by dwell time, than one without. Not stock photos. Real-looking faces. Chat apps and social apps benefit most, but even utility apps saw a lift when they included a face in a testimonial screenshot.</p>
<p><strong>Concrete outcomes over abstract features.</strong> "Track your sleep" loses. "Wake up 20 minutes earlier without an alarm" wins. Show the result of using the app, not the mechanic.</p>
<p><strong>Numbers in the headline.</strong> "5,000 workouts." "3-minute setup." "14-day free trial." Specifics beat abstractions every time. People trust numbers more than adjectives.</p>
<p><strong>Progression across slots.</strong> The apps that won most often had a clear narrative arc: promise (slot 1), how it works (slot 2), what makes it different (slot 3), social proof (slot 4), the outcome (slot 5). Random collections of features lost to narratives.</p>
<h2>Screenshot patterns that always lost</h2>
<p><strong>Pure UI screenshots with no annotation.</strong> Raw simulator captures. Empty states. Anything that looked like a Figma export instead of a marketing asset.</p>
<p><strong>Feature lists baked into the image.</strong> "Sync, Backup, Export, Share, Collaborate" as a bulleted list on screen. Density kills. If people cannot read it in 2 seconds, it does not exist.</p>
<p><strong>Interchangeable screenshots.</strong> If I could swap the logo for a competitor's and the screenshot still worked, it was doing nothing for the app. Every screenshot needs to be specific to what makes this app worth installing.</p>
<p><strong>Screenshots with no faces in social apps.</strong> Weirdly consistent. Social and community apps that showed only UI (no messages, no user cards, no avatars) lost to competitors that did.</p>
<h2>What this changed about how I design</h2>
<p>Before the study, I would spend most of my design time on slots 2 through 5 because slot 1 felt "solved" once the headline was picked. Now I spend most of my time on slot 1 and treat the rest as reinforcement.</p>
<p>I also stopped writing captions in the abstract. Every headline now has to answer "what does the user get?" and "in what unit?" (minutes, dollars, streaks, whatever). If it does not have a unit, it goes back for a rewrite.</p>
<p>These qualitative patterns also match what we saw quantitatively: an A/B test we ran on a feature-benefit slot 1 against a pure-UI slot 1 moved install conversion 34%. The watch sessions explain the mechanism behind that number.</p>
<h2>Run this study yourself in an afternoon</h2>
<p>You do not need a research team.</p>
<ol>
<li><p>Recruit 5 friends who are roughly in your target demographic.</p>
</li>
<li><p>On your phone, screen record. Hand them the phone. Open your app's listing.</p>
</li>
<li><p>Ask: "Would you install this? Why or why not?" Then hand them a competitor's listing. Same question.</p>
</li>
<li><p>Watch the recording. Note where their eyes go, what they say out loud, when they swipe.</p>
</li>
</ol>
<p>20 minutes. Cheaper than any A/B test. Almost always changes how you design slot 1.</p>
<p>And once the listing is earning installs, the release mechanics shouldn't be the bottleneck: <a href="https://www.letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=watching-40-people-scroll-app-store-listings">LetsDeploy</a> handles the build and store submission pipeline so iteration time goes to the listing, not the release.</p>
<p>What's the pattern you've watched win on your own listing? The faces one still surprises me every round.</p>
]]></content:encoded></item><item><title><![CDATA[I Audited 30 React Native Apps. The Same 5 Security Holes Showed Up Every Time.]]></title><description><![CDATA[None of them were exotic. All five are the kind of thing you fix in an afternoon and should have caught in review.]]></description><link>https://julessarah.hashnode.dev/i-audited-30-react-native-apps-the-same-5-security-holes-showed-up-every-time</link><guid isPermaLink="true">https://julessarah.hashnode.dev/i-audited-30-react-native-apps-the-same-5-security-holes-showed-up-every-time</guid><category><![CDATA[React Native]]></category><category><![CDATA[mobile]]></category><category><![CDATA[Expo]]></category><category><![CDATA[AI]]></category><category><![CDATA[Security]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Thu, 30 Jul 2026 12:37:28 GMT</pubDate><content:encoded><![CDATA[<p>I spent a few weeks reviewing 30 React Native codebases this quarter. A mix of indie apps, funded startups, and a couple of things already in the App Store with real users.</p>
<p>I expected variety. What I got was repetition. The same five security holes showed up over and over, across apps that otherwise had nothing in common. None of them were exotic. All five are the kind of thing you fix in an afternoon and should have caught in review.</p>
<p>Here they are, in order of how often I found them.</p>
<h2>1. Secrets in the JavaScript bundle</h2>
<p>The most common by a wide margin. API keys, third-party tokens, and sometimes full backend credentials, sitting in the JS bundle where anyone can read them.</p>
<p>The mental model that causes this: developers treat a compiled React Native app like a server, assuming the code is hidden. It isn't. The JavaScript bundle ships to the device, and anyone can extract and read it. A <code>.env</code> file bundled into the app is not a secret. It's a public document with extra steps.</p>
<pre><code class="language-javascript">// This key is now public. Assume everyone has it.
const OPENAI_KEY = "sk-proj-...";

async function askAI(prompt) {
  return fetch("https://api.openai.com/v1/chat/completions", {
    headers: { Authorization: `Bearer ${OPENAI_KEY}` },
    // ...
  });
}
</code></pre>
<p>The fix: any third-party API that costs money or grants access has to be called through a backend you control (a Supabase Edge Function, a small proxy, a serverless route). The device calls your backend. Your backend holds the key and calls the third party. The client never sees it.</p>
<h2>2. Sensitive data in AsyncStorage</h2>
<p>The second most common. Session tokens, refresh tokens, and occasionally full user records stored in <code>AsyncStorage</code>, which is unencrypted plain-text key-value storage.</p>
<p>On a rooted or jailbroken device, or through an unencrypted device backup, everything in <code>AsyncStorage</code> is readable. A session token sitting there is one extraction away from being replayed.</p>
<pre><code class="language-javascript">// Wrong: a session token in plain text.
await AsyncStorage.setItem('auth_token', token);

// Right: the OS-backed secure enclave.
import * as SecureStore from 'expo-secure-store';
await SecureStore.setItemAsync('auth_token', token);
</code></pre>
<p><code>expo-secure-store</code> uses the iOS Keychain and the Android Keystore. Anything that unlocks an account belongs there, not in <code>AsyncStorage</code>.</p>
<h2>3. No certificate pinning on sensitive traffic</h2>
<p>Less common than the first two, but serious where it mattered. Apps handling payments or health data trusting any valid TLS certificate, which leaves them open to man-in-the-middle interception on a compromised network.</p>
<p>For most apps, standard TLS is fine. But if you move money or handle regulated data, certificate pinning ensures your app talks only to your server and not to a proxy holding a technically valid certificate. It's a deliberate tradeoff (pinning adds operational overhead when certs rotate), but for the sensitive tier, skipping it is a real hole.</p>
<h2>4. Missing or misconfigured row-level security</h2>
<p>This one lived on the backend, but it showed up in enough Supabase-backed apps to make the list. Tables with row-level security either disabled or written so loosely that user A could read user B's data by changing an ID in a request.</p>
<p>The tell was almost always the same: the app worked perfectly in testing, because in testing there was only one user. The hole only opens when a second user exists and the policy doesn't actually scope reads to the requester.</p>
<pre><code class="language-sql">-- The policy every table needs and several were missing.
alter table profiles enable row level security;

create policy "Users read only their own profile"
  on profiles for select
  using (auth.uid() = user_id);
</code></pre>
<p>If your backend is Supabase, every table with user data needs RLS enabled and a policy that ties access to <code>auth.uid()</code>. Seed two users and verify one genuinely cannot see the other. That five-minute check catches this every time.</p>
<h2>5. Silent failure that leaks state</h2>
<p>The subtlest of the five. Error handling that swallows failures without telling the user, and in doing so leaves the app in a state that exposes something it shouldn't. A payment that appears to fail but actually went through. A logout that clears the UI but leaves the token valid. A delete that reports success but left the record readable.</p>
<pre><code class="language-javascript">// The pattern I kept finding.
try {
  await signOut();
} catch (e) {
  // swallowed. UI shows "signed out." Token still valid on the server.
}
</code></pre>
<p>The security angle: a logout that doesn't actually invalidate the session server-side is a shared-device disaster waiting to happen. Every auth-related action needs to confirm the server did what the UI claims it did, and surface it honestly when it didn't.</p>
<h2>The pattern behind the pattern</h2>
<p>Notice what these five have in common. None of them are clever attacks. None require a sophisticated adversary. They're all the same root mistake in different clothes: <strong>treating the client as if it were trusted.</strong></p>
<p>The device is not your server. The bundle is readable. The storage is inspectable. The requests can be forged. Every one of the five holes comes from assuming otherwise somewhere in the stack.</p>
<p>The good news is that the fixes are equally consistent: keep secrets on a backend you control, store credentials in the secure enclave, scope every database read to the authenticated user, and make sure the server confirms what the UI claims. Four habits close all five holes.</p>
<p>If you're building a new app and want these handled by default rather than caught in an audit later, <a href="https://www.rapidnative.com/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=security-holes-audit">RapidNative</a> generates React Native and Expo code with the secure-storage and backend-proxy patterns already in place, so the client never holds what it shouldn't.</p>
<p>Which of the five would your current app fail? For most of the 30, it was number one, and they had no idea until I showed them the bundle.</p>
]]></content:encoded></item><item><title><![CDATA[I Onboarded 14 Indie Devs to TestFlight This Month. Here's What Actually Confused Them]]></title><description><![CDATA[Every first-time TestFlight build hits the same four walls in order. The real eight-step path from "eas build succeeded" to "my friend can install it.]]></description><link>https://julessarah.hashnode.dev/testflight-onboarding-first-timers</link><guid isPermaLink="true">https://julessarah.hashnode.dev/testflight-onboarding-first-timers</guid><category><![CDATA[React Native]]></category><category><![CDATA[Expo]]></category><category><![CDATA[iOS]]></category><category><![CDATA[testflight]]></category><category><![CDATA[Mobile Development]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Wed, 29 Jul 2026 05:22:55 GMT</pubDate><content:encoded><![CDATA[<p>Running a small Discord for React Native indies, I did unstructured office hours with 14 devs shipping their first TestFlight build this month. Every single one hit the same four walls in roughly the same order.</p>
<p>None of them were technical walls. They were <strong>mental-model</strong> walls, and every EAS tutorial online is written by people who forgot they exist.</p>
<p>Here's what I saw, in the order they saw it.</p>
<h2>The four questions every first-timer asks (in order)</h2>
<ol>
<li><p>"Do I need a Mac?" (Answer: not for EAS. Yes, eventually, for <code>xcrun</code> when things go wrong.)</p>
</li>
<li><p>"Wait, what's the difference between App Store Connect and my Apple Developer account?"</p>
</li>
<li><p>"I ran <code>eas build</code> and it succeeded. Where's the app?"</p>
</li>
<li><p>"Why can't my friend just... install it?"</p>
</li>
</ol>
<p>Every single time, in that order. And the gap between question 3 and question 4 is where most people quit for 48 to 72 hours, because they don't know what they don't know.</p>
<h2>Where the mental model breaks</h2>
<p>Here's the actual conceptual map: how devs think it works, versus how it works.</p>
<p><strong>How they think it works:</strong></p>
<pre><code class="language-text">[my code] --&gt; [EAS] --&gt; [TestFlight] --&gt; [friend's phone]
</code></pre>
<p><strong>How it actually works:</strong></p>
<pre><code class="language-text">[my code]
   --&gt; [EAS builds .ipa, signed with a cert tied to my Apple Dev account]
   --&gt; [eas submit uploads .ipa to App Store Connect]
   --&gt; [ASC processes the build ~5-30 min, may email you an ITMS error]
   --&gt; [ASC exposes the processed build in the TestFlight tab]
   --&gt; [I add internal testers by Apple ID email, they get an email]
   --&gt; [tester installs the TestFlight app first, then accepts the invite, then installs my app]
   --&gt; [external testers need Beta App Review, another 24-48 hr]
</code></pre>
<p>Eight steps. Three separate Apple properties (Developer Portal, App Store Connect, the TestFlight app on the phone). Two async waits (processing, review). One place where things silently break: ITMS emails go to your Apple ID, not your dev email, if those differ.</p>
<p>When I draw this on a whiteboard for someone, the reaction is always the same exhale: "oh, <em>that's</em> why the tutorials didn't make sense."</p>
<h2>The eas submit moment: relief or panic</h2>
<p>The single highest-emotional-swing moment in the whole flow is the first <code>eas submit -p ios --latest</code>. It succeeds and prints something like:</p>
<pre><code class="language-text">✔ Submitted your app to Apple App Store!
App Store Connect: https://appstoreconnect.apple.com/apps/1234567890/testflight/ios
</code></pre>
<p>They click the link. They see an empty TestFlight tab. Panic sets in. "Did it fail? Did I do it wrong?"</p>
<p>No. Apple's processing takes 5 to 30 minutes. Nobody tells first-timers this. Half of them re-run <code>eas submit</code> thinking they missed a step, which creates a duplicate build in ASC. Now they have two builds processing, and one will probably fail with <code>ITMS-90478: Invalid Version</code>, because the second submission carries the same build number.</p>
<p>The fix is small but it works: tell people to keep the ASC <strong>Activity</strong> tab open in a browser, not the TestFlight tab. Activity shows the "Processing" state immediately. TestFlight only shows the build after processing completes. Different tab, different truth.</p>
<h2>Three onboarding fixes that cut time-to-first-tester from 3 days to 90 minutes</h2>
<p>After watching people stall in the same spots, here's what actually helped.</p>
<h3>Fix 1: a pre-flight checklist that runs before their first eas build</h3>
<pre><code class="language-text">[ ] Apple Developer account paid ($99/yr, not the free tier)
[ ] Apple ID for App Store Connect access confirmed (may differ from dev email)
[ ] App identifier registered in Certificates, Identifiers &amp; Profiles
[ ] App created in App Store Connect (Name + Bundle ID + SKU)
[ ] TestFlight testers' Apple IDs collected (not phone numbers, not work emails: Apple IDs)
</code></pre>
<p>The last one alone saves a day. Testers don't know what their Apple ID is. Half of them think it's their Gmail. It's actually their iCloud address from 2011. Get this list before you submit.</p>
<h3>Fix 2: the ITMS decoder ring</h3>
<p>Every first-timer hits at least one of these. Print it, tape it to the monitor:</p>
<ul>
<li><p><code>ITMS-90163: Invalid Code Signing</code> → provisioning profile expired or doesn't match your bundle ID. Regenerate via <code>eas credentials</code>.</p>
</li>
<li><p><code>ITMS-90478: Invalid Version</code> → build number collision. Bump <code>ios.buildNumber</code> in <code>app.json</code>, or set <code>"appVersionSource": "remote"</code> and let EAS manage it.</p>
</li>
<li><p><code>ITMS-91053: Missing API declaration</code> → the Privacy Manifest requirement (iOS 17+). Add the relevant <code>NSPrivacyAccessedAPICategory</code> keys to a <code>PrivacyInfo.xcprivacy</code> file.</p>
</li>
<li><p><code>ITMS-90062: Bundle version must be a higher number</code> → same as 90478, more polite.</p>
</li>
</ul>
<p>If you'd rather not memorize any of these, <a href="https://letsdeploy.it/?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=testflight-onboarding">letsdeploy.it</a> exists specifically to catch them before you hit submit. But you'll still hit one once, and the decoder ring turns "3 days stuck" into "20 minutes annoyed."</p>
<h3>Fix 3: a live TestFlight walkthrough with the tester on a call</h3>
<p>Sounds like overkill. It isn't. Testers themselves get stuck: they don't have the TestFlight app installed, they click the invite link on desktop instead of phone, or they "already have an account" and get lost in the redemption-code flow. The first tester gets a 15-minute call with you. Every tester after that gets a Loom of that call. Time saved: enormous.</p>
<h2>What the community keeps getting wrong in tutorials</h2>
<p>After 14 rounds of this, three tutorial-flavored misconceptions worth killing:</p>
<p><strong>1. "You need Xcode installed to use TestFlight." You don't.</strong> You need Xcode when signing goes wrong and you want to inspect a <code>.mobileprovision</code> file by hand. For the happy path, <code>eas build &amp;&amp; eas submit</code> is enough. Half the people I onboarded were on Windows.</p>
<p><strong>2. "Internal testing is instant, external needs review." Half true.</strong> Internal testing (up to 100 people, added as users in ASC) is fast: the build appears within an hour of processing. External testing (up to 10,000 people, invited by email) needs Beta App Review, which averages 24 hours but has spiked to 5 days when a new iOS version drops. Don't promise external testers same-day access.</p>
<p><strong>3. "You can hot-swap builds and testers stay in sync." No.</strong> When you push build 42, testers on build 41 don't auto-update. They get a badge in TestFlight and have to open the app there. If you want them on the new build, tell them explicitly, in whatever channel they actually read (spoiler: not email).</p>
<h2>The deeper takeaway</h2>
<p>EAS itself is fine. The docs are fine. The gap is the roughly eight concepts between "I wrote code" and "my friend can install it," and none of them are in the EAS docs, because they aren't EAS's problem. They're Apple's ecosystem.</p>
<p>If you're building anything in this space, the empathy exercise is simple: watch one first-timer, silently, for 90 minutes. You'll ship better onboarding by Tuesday.</p>
<p>What was your first TestFlight wall? Mine was waiting 25 minutes on an empty TestFlight tab, convinced I'd broken something.</p>
]]></content:encoded></item><item><title><![CDATA[How docs cut our RN template support load 70%]]></title><description><![CDATA[68% of our support tickets were docs-fixable. The audit, the four-mode structure, and the AI-context file that cut tickets 70% in one quarter.]]></description><link>https://julessarah.hashnode.dev/how-docs-cut-our-rn-template-support-load-70</link><guid isPermaLink="true">https://julessarah.hashnode.dev/how-docs-cut-our-rn-template-support-load-70</guid><category><![CDATA[React Native]]></category><category><![CDATA[documentation]]></category><category><![CDATA[developer experience]]></category><category><![CDATA[Expo]]></category><category><![CDATA[SaaS]]></category><dc:creator><![CDATA[Jules Sarah]]></dc:creator><pubDate>Fri, 24 Jul 2026 09:57:36 GMT</pubDate><content:encoded><![CDATA[<hr />
<h2>The one-sentence version</h2>
<p>We sell React Native app templates. We rewrote our documentation in Q1 2026. Support tickets per purchase dropped by 70%.</p>
<p>Nothing else changed materially — no new hires, no chatbot, no product features. This post is the mechanics.</p>
<h2>Why I wrote this</h2>
<p>Most posts about reducing support load are written by SaaS founders serving non-technical end users. That playbook is well-worn: better onboarding tooltips, better empty-state copy, better in-product FAQs.</p>
<p>If you sell software to developers — templates, SDKs, libraries — that playbook doesn't quite fit. Your customer isn't confused by your UI. Your customer is confused by your assumptions about their tooling, their prior knowledge, and their intent.</p>
<p>This post is the developer-tool version of that playbook.</p>
<h2>Step 1: Audit before you rewrite</h2>
<blockquote>
<p><strong>Rule of thumb:</strong> never rewrite docs before you know which docs are causing tickets.</p>
</blockquote>
<p>We tagged every support message from January to mid-March 2026 in a shared spreadsheet. Six columns: date, customer, category, root cause, resolution, and "was this in the docs?" No automation. Just discipline.</p>
<p>Six weeks in, the picture was clear:</p>
<ul>
<li><p><strong>68%</strong> docs-fixable</p>
</li>
<li><p><strong>22%</strong> legitimate product bugs (the healthy kind of ticket)</p>
</li>
<li><p><strong>10%</strong> billing</p>
</li>
</ul>
<p>If your ratio is different — say 60% billing, 20% docs — this whole post doesn't apply. Go fix your billing UX instead. But if you sell developer products, the ratio is almost always heavily docs-weighted.</p>
<h2>Step 2: Restructure around the customer's journey</h2>
<p>The old docs were organized around the product's mental model: "Auth," "Data Layer," "UI," "Payments." Those are the modules our engineers work on. They are not the modules the customer thinks in.</p>
<p>The customer, from the moment they extract the zip, thinks in four stages:</p>
<ol>
<li><p><strong>Install</strong> — get the thing running locally</p>
</li>
<li><p><strong>Configure</strong> — plug my keys in, wire my Supabase project, adjust the theme</p>
</li>
<li><p><strong>Extend</strong> — add my own screens, my own data, my own logic</p>
</li>
<li><p><strong>Ship</strong> — get it into TestFlight and the App Store</p>
</li>
</ol>
<p>We renamed our top-level doc sections to match. Every page in each section makes one promise: <em>you will finish this page having done X.</em> That's the entire framing.</p>
<h2>Step 3: The five rules</h2>
<p>The rewrite was governed by five rules. Every doc that violated one got rewritten or deleted.</p>
<p><strong>Rule 1 — Outcome in the first paragraph.</strong> The first thing the reader sees is what they will have accomplished, not what the page "covers."</p>
<p><strong>Rule 2 — Copy-paste runnable code.</strong> No omitted imports, no <code>// ...existing code</code> placeholders. If a snippet mentions <code>supabase</code>, the snippet also shows where <code>supabase</code> gets imported from.</p>
<p><strong>Rule 3 — Every page links to the next page.</strong> Customers who reach the bottom of a page and don't know where to go next go to Google. Every page ends with a "Next: [title]" link.</p>
<p><strong>Rule 4 — If we answer the same email twice, the docs get updated that day.</strong> Same day, not "next sprint." This rule alone closed most of our remaining doc gaps within the first month.</p>
<p><strong>Rule 5 — The docs must be readable by AI editors.</strong> Every template now ships with a <code>claude.md</code> at the project root. When the customer opens it in Claude Code or Cursor, the AI reads that file first and immediately knows the architecture, the conventions, and the file map. The customer's first question is answered inside the editor, not inside our inbox.</p>
<h2>The <code>claude.md</code> deserves its own section</h2>
<p>This was the one novel thing we did. Everything else was a rediscovery of well-known documentation frameworks — the closest published version being <a href="https://diataxis.fr/">Diátaxis</a>, which we independently converged on.</p>
<p>Our <code>claude.md</code> has four sections:</p>
<ul>
<li><p><strong>Stack</strong> — actual versions of Expo, React Native, Supabase, NativeWind, TanStack Query</p>
</li>
<li><p><strong>Key files</strong> — one line each, describing what lives where</p>
</li>
<li><p><strong>Conventions</strong> — the non-obvious rules ("never call supabase-js directly from a component; use the query hooks in <code>hooks/</code>")</p>
</li>
<li><p><strong>Env vars</strong> — a pointer to <code>.env.example</code></p>
</li>
</ul>
<p>That's it. Under 60 lines. Every AI-native editor now handles the "how does this codebase work?" question without the customer needing to look up a doc, let alone email us.</p>
<p>We also ship 16 domain-specific Claude Code skills with each template — small self-contained scripts the AI can invoke to do template-specific things like "scaffold a new authed screen." Those aren't strictly documentation, but they play the same role: turning what would have been a support ticket into an inline AI action.</p>
<h2>The operational loop that keeps docs alive</h2>
<p>Docs rot. Every doc project I've seen fails within a year — not because the initial writing was bad, but because the docs and the code drift.</p>
<p>Our anti-rot loop:</p>
<ol>
<li><p><strong>Every support ticket gets logged</strong> in the shared sheet.</p>
</li>
<li><p><strong>Friday triage, 30 minutes.</strong> Whoever answered support that week scans the log.</p>
</li>
<li><p><strong>Any question asked twice becomes a doc-gap issue</strong> with a same-day expected fix.</p>
</li>
<li><p><strong>Every template release has a mandatory docs check</strong> — the Ship page gets re-read end to end. About 20 minutes per template, and it catches most drift.</p>
</li>
</ol>
<p>There is nothing sophisticated here. There doesn't need to be.</p>
<blockquote>
<p>Sophistication is where doc programs go to die.</p>
</blockquote>
<h2>What we deliberately didn't do</h2>
<ul>
<li><p><strong>No chatbot.</strong> Deflection metrics are trivially gameable and hide the underlying question rate.</p>
</li>
<li><p><strong>No community forum.</strong> Half-populated forums are worse than none — every one-year-old broken thread is a permanent negative signal.</p>
</li>
<li><p><strong>No paywall on docs.</strong> If your competitors can beat you by reading your docs, your docs aren't the moat.</p>
</li>
<li><p><strong>No codebase restructure to match the docs.</strong> Different audiences, different shapes.</p>
</li>
</ul>
<h2>The numbers</h2>
<ul>
<li><p><strong>Support tickets per purchase:</strong> −70%</p>
</li>
<li><p><strong>Docs-caused refund rate:</strong> ~4% → ~0.6% of purchases</p>
</li>
<li><p><strong>Median time-to-first-customized-screen:</strong> 2–4 hours → 25–45 min</p>
</li>
<li><p><strong>Five-star reviews mentioning "docs":</strong> 2 in Q4 2025 → 34 in Q2 2026</p>
</li>
</ul>
<h2>If you're evaluating a React Native template</h2>
<p>Look at the docs before you look at the demo.</p>
<p>A polished demo tells you what the template can do on a good day. Well-structured docs tell you what your Sunday afternoon will look like after you buy it. That's a much more useful signal.</p>
<p>For reference, our templates live at <a href="https://www.applighter.com/apps?utm_source=hashnode&amp;utm_medium=blog&amp;utm_campaign=docs-support-load">Applighter</a>. The docs are public — you can read them before you buy.</p>
]]></content:encoded></item></channel></rss>