# SaasToStore documentation --- Turn a website into Android, iOS, desktop and Android TV apps. Summary: https://saastostore.com/llms.txt --- # Quickstart: from your website to an app on your phone Source: https://saastostore.com/docs/quickstart SaasToStore turns a live website into Android, iOS, desktop and Android TV apps. This page takes you from a URL to an app on your phone, then to a build you can publish. You don't write code, and you don't install Android Studio or Xcode. ## Before you start - A website on a public HTTPS address. It can come from Lovable, Bubble, Webflow, Framer, Softr, Base44 or your own code. - An Android phone, if you want to install the free test build. - That's all. Your site does not need to be a PWA for the test build. ## See your app on your phone 1. **Check your URL (optional)** Paste your address in the [PWA checker](https://saastostore.com/tools/pwa-checker). It reads your site in about 10 seconds and tells you what it found. 2. **Create your project** Sign in and paste your URL. We read your site's name, colors and icon. 3. **Build your test app** On the project page, choose **Build my test app — free**. There is nothing to set up, and the build takes about 3 minutes. 4. **Install it** Scan the QR code with an Android phone, or tap Install on the phone itself. Open the `.apk` file, allow your browser to install apps if Android asks, then tap Install. > The test build is Android only. It is a native app with no address bar, and it carries the SaasToStore logo. It installs as a separate app: your paid build installs next to it, and you can uninstall the test app whenever you like. ## Make it your app The project page has three tabs: **Configuration**, **Build** and **Publish**. Configuration is where you decide what people see. - [Icon, launch screen and colors](https://saastostore.com/docs/app-appearance) - [Native tabs, header or side menu](https://saastostore.com/docs/native-navigation) - [Hide your site's header or footer inside the app](https://saastostore.com/docs/hide-website-elements) - [Native plugins](https://saastostore.com/plugins), such as biometric unlock, haptic feedback or the share sheet ## Build for the stores In the Build tab, pick a [build type](https://saastostore.com/docs/build-types). For Android, we recommend **Android Build (Native)**: it accepts any website and unlocks native navigation and plugins. You can also build for iOS, Windows, macOS, Linux and Android TV. When the build ends, the page shows your files and the email tells you where to find them. Download links stay valid for 30 days, and you can get new ones from the project page. [SHIP](https://saastostore.com/pricing) costs 39 € once and covers one app on every platform, with 4 builds per platform over 12 months. Prefer not to do it yourself? **Do it for me** adds 9 € to any plan: we set the app up and deliver it within 48 hours. ## Publish The Publish tab takes your build to Google Play, the App Store, Amazon Appstore, Samsung Galaxy Store, Microsoft Store, Snap Store, Flathub and GitHub Releases. Once your plan is active, it lists what each store needs, one step at a time. ## After the first release Your app runs your live website, so changes to the site appear in the app with no new build. Native changes, such as a new plugin, need one. [Update your app](https://saastostore.com/docs/update-your-app) explains the difference. You can also run this whole path from Claude Code or another AI agent, through the [MCP connector](https://saastostore.com/mcp). ## Frequently asked questions ### How long does a build take? The free test build takes about 3 minutes. Android builds usually finish within a few minutes. iOS and desktop builds run on separate machines and take longer. ### Does my site have to be a PWA? No, unless you choose the Android Build (Web), which needs a valid PWA. The free test build, the Android Build (Native), iOS, Android TV and desktop builds accept any website. ### Do I need a developer account? Not to try. To publish under your own name, Google and Apple each ask for a developer account. Our guide on developer accounts explains the fees and the steps. ### What happens if a build fails? Your build credit is returned automatically, and the page gives a likely cause and what to do next. --- # Build types: which one does your app need? Source: https://saastostore.com/docs/build-types Every build starts from your website URL, but they don't all produce the same app. This page explains what each one gives you, so you can choose before you spend a build. ## The short answer - Just want to see your app on your phone? Use the **free test build**. - Want a real Android app? Use **Android Build (Native)**. It's the one we recommend. - Want the smallest possible Android app, and your site is a valid PWA? Use **Android Build (Web)**. - Want iPhone users? Add the **iOS** build. - Want a Windows, Mac or Linux app? Add the **desktop** build. ## All builds compared | Build | Files | Goes to | Plugins | Site needs | | --- | --- | --- | --- | --- | | Free test build | `.apk` | Your own phone | None | Any website | | Android Build (Web) | `.aab`, `.apk` | Google Play, Amazon, Samsung | None | A valid PWA | | Android Build (Native) | `.aab`, `.apk` | Google Play, Amazon, Samsung | All Android plugins | Any website | | Android TV | `.aab`, `.apk` | Google Play | Android plugins | Any website | | iOS | `.ipa` | App Store, TestFlight | iOS plugins | Any website | | Desktop | `.msi`, `.dmg`, `.AppImage` | Microsoft Store, Snap Store, Flathub, GitHub Releases | None | Any website | ## Android: Web or Native? **Android Build (Web)** is a Trusted Web Activity (TWA). Your site opens in Chrome, in a very small app of about 2 MB. It updates with your site and needs a valid PWA, meaning a manifest and a service worker. To remove the address bar, you host one small file on your site, called `assetlinks.json`. The Publish tab gives you the file. **Android Build (Native)** puts your site in a native shell. It accepts any website and adds what a TWA can't have: [native tabs and menus](https://saastostore.com/docs/native-navigation), [plugins](https://saastostore.com/plugins), `window.saastostore` and [hidden site elements](https://saastostore.com/docs/hide-website-elements). > **Warning:** Plugins and native features turned on in your project do nothing in the Android Build (Web). If you need biometric unlock, native tabs or in-app purchases, choose the Native build. Not sure what a TWA is? Read [What is a TWA?](https://saastostore.com/guides/what-is-a-twa) and [AAB vs APK](https://saastostore.com/pwa-to-apk). ## iOS The iOS build produces an iPhone app, which also runs on iPad. It works with any website, and most plugins are available. A few features need the native shell, called Shell V2, which you turn on with a [navigation](https://saastostore.com/docs/native-navigation): deep links and location, for example. Each plugin page says so. ## Android TV The Android TV build is a Native build with TV support added: launcher entry, remote control navigation and a TV banner. The same file also installs on phones. Read [Android TV apps](https://saastostore.com/docs/android-tv) before you submit it. ## Desktop A desktop build produces one installer per system: Windows, macOS and Linux. Plugins don't run on desktop. See [Desktop apps](https://saastostore.com/docs/desktop) for what to expect on first launch. ## What your plan includes The free test build costs nothing, and each account gets one. SHIP covers one app on Android, iOS, Android TV and desktop, with 4 builds per platform over 12 months. BUSINESS is for one desktop app. AGENCY is monthly and covers up to 10 apps a month. [Pricing](https://saastostore.com/pricing) has the details. ## Frequently asked questions ### Can I change build type later? Yes. You can run a Native build after a Web build. On Google Play, the new build updates the same app as long as it keeps the same package name and signing key, and SaasToStore reuses both. ### Which Android build is faster to open? Both load your website, so your site's speed matters most. The Web build is much smaller to download. The Native build is a larger download but adds native navigation. ### Do all builds keep updating with my website? Yes. They all load your live website, so changes to your site appear without a new build. Only native changes need one. ### Does the iOS build work on iPad? It's an iPhone app that also runs on iPad. It isn't a dedicated iPad layout, so your site's responsive design decides how it looks there. --- # What already works in your app Source: https://saastostore.com/docs/what-works-in-your-app Your app runs your live website, so the tools already on your site keep working inside it. Analytics, tag managers, error tracking and chat widgets need no SDK and no new build. Here's what carries over, how to tell app traffic from web traffic, and what's different. ## What keeps working | Tool | In the app | Good to know | | --- | --- | --- | | Google Analytics 4 | Works | App visits appear as website visits, unless you tag them | | Google Tag Manager | Works | Your tags fire as they do on your site | | Meta Pixel | Works for site events | It doesn't measure app installs | | Sentry | Works | It reports your site's JavaScript errors, not native crashes | | Chat widgets | Works | Check that the button doesn't cover your native tabs | ## Tell app traffic from web traffic Native Android, Android TV and iOS builds add `SaasToStoreApp` to the user agent: Android apps built since July 2026 and iOS apps built since 19 October 2026. Your pages and your server can both read it. The Android Build (Web) runs in Chrome and has no marker. ```js const inApp = navigator.userAgent.includes("SaasToStoreApp"); const appShell = inApp ? "app" : "web"; // Google Analytics 4 gtag("set", "user_properties", { app_shell: appShell }); // Google Tag Manager (before the container loads) window.dataLayer = window.dataLayer || []; window.dataLayer.push({ app_shell: appShell }); // Meta Pixel fbq("track", "PageView", { app_shell: appShell }); // Sentry Sentry.setTag("app_shell", appShell); ``` In Google Analytics, register `app_shell` as a custom dimension to see it in your reports. ## What doesn't carry over - **Installs:** site tools see visits, not store installs. Google Play and the App Store report installs. - **Native crashes:** Sentry on your site sees JavaScript errors only. - **Web push:** browser notifications from your site don't work inside the app. - **Native SDKs:** Firebase Analytics, Meta App Events and similar SDKs aren't part of the build today. > **Warning:** **AdSense:** Google requires ads shown in a WebView to go through its WebView API for Ads. The Android Build (Web) runs in Chrome and isn't concerned. The Native, Android TV and iOS builds don't include that API yet. If your site shows AdSense, hide the ads in the app with the marker above, or use the Android Build (Web). > **Warning:** **Tracking on iPhone:** Apple requires its tracking prompt when an app links people's data with data from other companies for advertising, even through a website inside the app. The app doesn't show this prompt today. If you run a Meta Pixel for advertising, turn it off in the iOS app with the marker above. ## Frequently asked questions ### Do I need to add an SDK to my site? No. The tools on your site keep running as they are. You only add a line of code if you want to separate app traffic from web traffic. ### Will app visits appear in my analytics? Yes. They count as visits to your site. Without a tag they mix with your web traffic. ### Can my server detect the app? Yes. The marker is also in the User-Agent header of every request, so your server can read it. ### I need Firebase Analytics or Meta App Events. Is that possible? Not in the build today. If you need one, tell us: requests decide what we add next. --- # Update your app after it is published Source: https://saastostore.com/docs/update-your-app Your app shows your live website. Most updates therefore happen by themselves: you change your site and people see the change the next time they open the app. A new build is only needed when the native part of the app changes. ## What updates on its own - Text, images, pages and layouts of your website - Your site's code, including calls to `window.saastostore` - Your prices, your database and your sign-in - Everything else your site does in a browser ## What needs a new build - A plugin you turned on or off - Tabs, header, side menu and colors of the native shell - The app's icon, name or launch screen - Selectors of [hidden website elements](https://saastostore.com/docs/hide-website-elements) - A new address for your website, or extra domains > A new build reaches people only after you publish it and the store accepts it. Until then they keep the previous version, which still shows your live website. ## Publish an update 1. **Change what you need** Open the project, adjust the Configuration tab and save. 2. **Launch a new build** In the Build tab, launch the same build type as your published app. The version number goes up by itself, and the same signing key is reused. 3. **Publish it** Send it from the Publish tab, or upload the file by hand. ## How many builds you have SHIP includes 4 builds per platform for 12 months: the first one and 3 updates. Thirty days before the end of those 12 months, we email you. KEEP ALIVE then keeps one app up to date for 15 € a month or 129 € a year, with 10 builds a month for that app. You'll find it in the **Maintenance** section of the project page. ## Take over an app already on Google Play If your app was first published with another tool, Google needs two things before it accepts a SaasToStore build. The Build and Publish tabs have a section called **My app is already on Google Play** for both. 1. **Register the upload key** Download the certificate (`.pem`) from that section, then send it to Google with **Request upload key reset** in the Play Console. Google tells you when the new key is valid: it isn't immediate. Your users aren't affected, as Google keeps signing the installed app with the same app signing key. 2. **Set the version code** Enter the highest version code your app has already received. Your next build starts right after it. Check the number first: once a build has used a version code, the following ones can only go up. Keep the same package name as the published app. If Google refuses a build anyway, see [Troubleshooting](https://saastostore.com/docs/troubleshooting). ## Frequently asked questions ### Do users need to update the app when I change my website? No. The app loads your live website, so they see the change the next time it loads. ### Do I have to rebuild every year? Your app keeps working without a new build. Stores do raise their requirements over time, though, and Google Play can stop offering an app whose target Android version is too old. KEEP ALIVE covers those rebuilds. ### Will a new build log people out? An update keeps the app's data, so sign-in sessions stay in place. Uninstalling the app clears them. ### Can I change the app's name after it's published? Yes. Change it in the project, launch a new build and publish it. The name on the store page is edited in the store listing. --- # Native navigation: tabs, header and side menu Source: https://saastostore.com/docs/native-navigation A website in an app often feels like a website. Native navigation fixes the first thing people notice: real tabs at the bottom, a real header, a real side menu. They're drawn by the phone, not by your site, and you set them up without code in the **Shell Designer** of your project. > Native navigation needs Android Build (Native), Android TV or iOS. The [Android Build (Web)](https://saastostore.com/docs/build-types) can't show it. In the docs, this native layer is called Shell V2. ## Choose a navigation mode | Mode | What it shows | Limits | Good for | | --- | --- | --- | --- | | Header | A top bar only | Menu of 1 to 8 items | Simple sites, content sites | | Tabs | A bottom bar, with or without a header | 2 to 5 tabs | Most apps | | Side menu | A sliding menu behind a burger button | 2 to 7 items | Many sections | ## Start from a template The Shell Designer offers 12 ready-made templates. Choosing one fills in the navigation mode, styles and layout, then you adjust anything. Your site, colors and logo don't change, and the preview next to the settings shows the result right away. ## Set up your tabs 1. **Open the Shell Designer** In the Configuration tab of your project, open the App phase. 2. **Choose Tabs and add your pages** Each tab has a label, an icon from a library of 134, and the address it opens. 3. **Set the active tab rule if needed** Each tab has a URL pattern. The app highlights the tab whose pattern matches the current page, so a tab stays active on its sub-pages. 4. **Launch a new build** Navigation is part of the native app, so it reaches your app with the next build. ## Styles - **Header:** solid, transparent or floating, with your logo or your page title. - **Tab bar:** flat, floating or transparent. - **Active tab:** colored icon, capsule or circle. - **Center button:** a raised middle button, for a main action. - **Header menu:** overflow or burger, with 1 to 8 items. Each one navigates, opens an external link, shares or reloads. ## Labels in several languages Under **Translations**, add the languages of your site and type each label in each language. The app shows the label that matches the language your page declares in ``, and follows your site when it switches language without reloading. If your `` doesn't change with the language, choose **The phone's**: the buttons then follow the language of the phone. Your site can also set the texts itself with [setNavLabels()](https://saastostore.com/docs/javascript-bridge#nav-labels). ## Behavior - **Pull to refresh:** reloads the page. - **Back button:** shows up in the header when there's a page to go back to. - **Header title:** uses your page's `document.title`. - **Single-page apps:** React, Vue and Next.js work with no code. The app follows every change of address. ## Control it from your site Two calls of the [JavaScript bridge](https://saastostore.com/docs/javascript-bridge) cover the common needs: a badge on a tab, and moving to a page from your own code. ```js window.saastostore?.setTabBadge?.(2, unreadCount); // 3rd tab, 0 hides it window.saastostore?.navigateTo?.("/cart"); // loads /cart window.saastostore?.navigateTo?.("#/cart"); // hash routing (Bubble, Glide) ``` ## Avoid a double navigation If your site already has a header or a bottom menu, people will see both. [Hide those elements inside the app](https://saastostore.com/docs/hide-website-elements): your website stays the same in a browser. ## Full-screen apps You can also turn the native shell off. The app then shows your site alone, edge to edge, with no native header, tabs or menu. That suits a site that has its own complete mobile navigation. Hidden elements don't apply in that mode. ## Frequently asked questions ### Can I change my tabs without a new build? No. Tabs are part of the native app, so a change needs a new build. The pages they open come from your website and update on their own. ### Why can't I add more than 5 tabs? Five is the limit of a bottom bar on a phone. For more sections, use the side menu, which takes up to 7 items, or add a header menu. ### Does native navigation work offline? The tabs show, but the pages still come from your website. Without a connection, the app shows what your site's own offline support allows. ### Do the tabs look the same on Android and iOS? They use the same settings. Each system draws them with its own controls, so small differences are normal. --- # App appearance: icon, launch screen, colors Source: https://saastostore.com/docs/app-appearance The first seconds decide whether your app feels like an app: the icon on the home screen, the launch screen, and colors that match your site. All three are set in the Configuration tab, and a new build applies them. ## App icon Upload a square PNG of 512×512 pixels, or let the AI generate one when you launch. We use it for the app icon on Android, iOS and desktop, and for the store listing. - Keep the logo centered, with some margin: Android may crop the icon to a circle. - Use a plain background rather than transparency. - If the build stops on an icon error, upload a square PNG and relaunch. ## Launch screen | System | What people see | | --- | --- | | Android | Your logo, held for up to about 3 seconds while your site loads | | iOS | Your logo, centered on your primary color, for builds since 31 October 2026. Then a blank page until your site loads | | Android TV | The same as Android, plus a [TV banner](https://saastostore.com/docs/android-tv) | | Desktop | Your site opens directly in its window | The launch screen only stays for a short moment, so the speed of your first page matters more than the picture. A fast home page is the best launch screen. ## Colors and theme By default, the app takes its colors from your website. You can also set them yourself in the Shell Designer, with one set for light mode and one for dark mode: - Primary color, and the text color on top of it - Background and surface colors - Active tab, inactive tab and tab bar background - Status bar color - Corner radius of the side menu ## Dark mode The native shell follows the phone's setting. If your site is always dark, turn on **Force dark mode** so that the shell doesn't show a white header above a dark page. This only affects the native parts: your website keeps its own theme. ## Status bar The status bar style sets the color of the clock and battery icons: `auto`, `light` or `dark`. If you need it to change from page to page, the [status bar plugin](https://saastostore.com/docs/javascript-bridge#status-bar) does that from JavaScript. ## Logo in the header You can add a separate logo for the header in the Shell Designer, as a PNG. It takes priority over your icon inside the app, including on the launch screen. ## Check before you build The preview next to the settings shows your navigation and colors. It can't show hidden site elements, because your site is loaded from another address there. The test build or a real build is the final check. > Only paid builds use your own logo. The free test build carries the SaasToStore logo. ## Frequently asked questions ### Why does my icon look cropped on Android? Android applies a shape to app icons, often a circle. Keep your logo in the middle of the image, with a margin of about a fifth on each side. ### Why do I see a white screen after the launch screen on iPhone? The launch screen ends when the app has started, and your site then loads in the page behind it. If your home page takes a while, that blank moment gets longer. ### Can I change the app name? Yes. Change it in the project and launch a new build. The name shown on the store page is edited in the store listing. ### Do my colors update when I change my website? Your site's colors update at once. The native parts, like tabs and header, keep the colors of the last build. --- # Hide website elements inside the app Source: https://saastostore.com/docs/hide-website-elements Your website has its own header, footer and cookie banner. Inside an app with native tabs, they get in the way. You can hide them in the app only: your website stays exactly the same in a browser. ## How it works You give the app a list of CSS selectors. When a page loads, the app sets those elements to `display: none`. It does this on your app's domain and its subdomains, in the main frame only, and never in a normal browser. Nothing is removed from your site. ## Hide an element 1. **Find the selector** Open your site on a computer, right-click the element and choose **Inspect**. Look for an `id`, a `class` or a tag you can use. 2. **Add it to your project** In the Shell Designer, open the **Website** section and add the selector. You can list up to 10, of 200 characters each. 3. **Launch a new build** The list is part of the app, so it takes effect with the next build. 4. **Check it on a phone** Install the build and open each main page. The preview can't show this, as it loads your site from another address. ## Selector examples | To hide | Selector | | --- | --- | | The first header of the page | `header` | | The footer | `footer` | | An element by id | `#cookie-banner` | | An element by class | `.site-navbar` | | An element by attribute | `[data-testid="navbar"]` | > **Warning:** Prefer a stable name. No-code builders often generate classes such as `.css-1x2y3z`, which change the next time you publish, and the element comes back. If you can, add your own id or class to the element. A selector can't contain `{`, `}`, `<`, `;`, `@` or `/*`. These are refused when you save. ## Do it in your site's code instead If you built your site with an AI builder, you can ask it to hide elements when the page runs in the app. This has no selector to maintain, and it works without a new build. **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Detect it with: const inApp = typeof window !== "undefined" && navigator.userAgent.includes("SaasToStoreApp"); When inApp is true, do not render [MY HEADER, MY FOOTER, MY COOKIE BANNER]. Everything must stay the same in a normal web browser. Read inApp after the page has mounted, to avoid a hydration mismatch. ``` Replace the values in [BRACKETS]. Test it in a browser first: nothing should change there. ## When it doesn't apply - **Android Build (Web):** it runs in Chrome, so there's no native layer and no `SaasToStoreApp` marker. Neither approach works there: switch to the [Native build](https://saastostore.com/docs/build-types). - **Full-screen apps:** turning the native shell off also turns this list off. - **Other sites:** a page from another domain is never changed. ## Frequently asked questions ### Does this change my website? No. Your site stays the same for everyone. The elements are only hidden inside the app. ### Can I hide the cookie banner in my app? You can hide the element, but your legal duties stay the same. If you hide it, make sure consent is still handled, for example by a settings page or a banner adapted to the app. ### Why does the element show for a moment and then disappear? That usually means your site adds the element after the page has loaded. The rule applies to new elements too, but a brief flash can happen on slow pages. Hiding it in your site's code avoids that. ### Can I style elements, not just hide them? No. The app only hides elements. To change how something looks in the app, change your site and use the SaasToStoreApp marker to apply the style only there. --- # Sign-in inside your app: Google, Apple, Supabase Source: https://saastostore.com/docs/sign-in Most sign-in works in your app with nothing to do. Email and password, magic links and one-time codes all behave as on your website. Google and Apple are the exceptions, as they have their own rules about apps. ## What works by itself | Sign-in method | In the app | | --- | --- | | Email and password | Works, nothing to do | | Magic link or code by email | Works. Set up [deep links](https://saastostore.com/docs/deep-links) so the link opens the app | | Sign in with Google | Needs one setting, below | | Sign in with Apple | See [Apple on iPhone](#apple) | ## Why Google needs a setting Google refuses sign-in from an embedded web view, with the error `disallowed_useragent`. So your app sends Google sign-in to a secure window instead: the system browser on Android, a secure sheet on iPhone. When sign-in ends, the person comes back to your app. For the return to work, your site must send people to your app's address, and your sign-in provider must allow that address. Your app's address looks like this, with your package name: ``` com.example.app://auth ``` ### Set it up 1. **Allow the address in your sign-in provider** In Supabase, go to **Authentication → URL Configuration → Redirect URLs**. In Auth0, use **Allowed Callback URLs**. Add `://auth`. 2. **Use it when the app is detected** When the `SaasToStoreApp` marker is in the user agent, pass that address as the redirect URL. In a browser, keep your usual address. 3. **Launch a new build** Android apps pick up the return address when they're built. iOS apps built since 20 October 2026 handle it too. ```js const inApp = navigator.userAgent.includes("SaasToStoreApp"); await supabase.auth.signInWithOAuth({ provider: "google", options: { redirectTo: inApp ? "com.example.app://auth" : window.location.origin, }, }); ``` > **Warning:** Don't add `accounts.google.com` to your app's extra domains. Google must never open inside your app's web view. **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. When navigator.userAgent includes "SaasToStoreApp", Google sign-in must return to the app. In my Google sign-in call, set the redirect URL to "com.example.app://auth" when that marker is present, and keep the current redirect URL otherwise. Do not change anything for normal web browsers. ``` Replace com.example.app with the package name shown on your project page. ## Sites with server-side sessions This return works when your site can finish sign-in from the URL it receives, which is how Supabase and most token-based providers behave. Sites that keep the sign-in state in server cookies, such as Auth.js and NextAuth, can't: the cookies set at the start of sign-in are not in the secure window where it ends. For those sites, hide the Google button inside the app and keep email sign-in there. Use the `SaasToStoreApp` marker to do that. ## Apple on iPhone On iPhone, Apple sign-in stays inside the app, in Apple's own window. It generally behaves well. Still, test it on a real iPhone before you submit, above all if your site uses server cookies. Apple has a rule of its own: if your iOS app offers Google sign-in, it must also offer Sign in with Apple or an equivalent option (guideline 4.8). If you don't want to add it, hide Google in the iOS app and keep email sign-in. ## Links that leave your domain Your app keeps your domain and its subdomains. Anything else opens in the system browser. If your sign-in or checkout must stay in the app, add its domain to **Extra domains** in your project, then rebuild. The same rule applies on iOS for builds since 20 October 2026. ## Frequently asked questions ### What does disallowed_useragent mean? Google refused to show its sign-in page inside an embedded web view. Pass your app's return address as described on this page, so that sign-in opens in the secure window instead. ### Google sign-in works but I end up signed out in the app. Why? Your site probably didn't finish sign-in from the address it received. Check that your site reads the code or token in the URL after the return. If it relies on server cookies, hide Google in the app. ### Do I have to offer Sign in with Apple? On iOS, if you offer Google or another third-party sign-in, Apple asks for an equivalent private option. Email and password alone don't trigger that rule. ### Does the session stay after closing the app? Yes, as in a browser. Your site's cookies and local storage stay on the phone until the person signs out or uninstalls the app. --- # Deep links: open your app from a link Source: https://saastostore.com/docs/deep-links A deep link opens your app on the right page, not the browser. Someone taps a link to `https://example.com/orders/42` in an email and lands on that order in the app. Phones only allow this if your domain confirms that the app belongs to you, through one small file on your site. ## What you need - The [Deep links plugin](https://saastostore.com/plugins/deep-links) turned on in your project - A native build: Android Build (Native), or iOS with native navigation - One file on your site for Android, and one for iOS ## Android: assetlinks.json Host this file at exactly `https://your-domain/.well-known/assetlinks.json`. Once you have a build, your project page shows the file filled in with your package name and SHA-256 fingerprint, ready to download. ```json [ { "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.example.app", "sha256_cert_fingerprints": ["AB:CD:…:EF"] } } ] ``` > The Android Build (Web) needs this same file for another reason: without it, the app shows an address bar. ## iOS: apple-app-site-association Host this file at `https://your-domain/.well-known/apple-app-site-association`. It has no extension, and your server must send it as `application/json`, with no redirect. Your project page gives you the exact file. ```json { "applinks": { "apps": [], "details": [ { "appID": "TEAMID.com.example.app", "paths": ["*"] } ] } } ``` > **Warning:** A wrong `appID` is the most common trap. The file still looks valid, but links silently open Safari. Use the file from your project page, not a hand-written one. ## Check your files Enter your domain in the [deep link validator](https://saastostore.com/tools/deep-link-validator). It fetches both files as a phone would and tells you what's wrong: wrong address, wrong format, missing fingerprint or a redirect. ## How to host the files | Platform | How | | --- | --- | | Lovable, Bolt, Vite | Put them in `public/.well-known/` | | Next.js | Put them in `public/.well-known/`, or serve them from a route | | Webflow, Bubble, Framer | These don't always allow files at that path. Use a proxy or a worker in front of your domain, or a route on a subdomain | | Your own server | Serve the files as static, with `application/json` | ## Test on a real phone 1. **Install the app** Android checks your file when the app is installed. iOS gets it through Apple's servers, which can take a while after a change. 2. **Tap a link from another app** Use a notes app or a message. Typing the address in the browser's address bar doesn't count: it stays in the browser. 3. **Check the page** The app should open on that exact page. If your site has a sign-in, test it when signed out too. ## Frequently asked questions ### Links stopped opening the app after publishing on Google Play. Why? Google Play re-signs your app with its own key, so the fingerprint changes. Add the SHA-256 of the app signing key, shown in the Play Console under App signing, to assetlinks.json next to the existing one. ### Do I need deep links for Google sign-in? No. Google sign-in returns through your app's own address, as explained on the sign-in page. Deep links are for https links to your site. ### Does a deep link work if the app isn't installed? The link opens your website in the browser, as usual. That's why the same address works for everyone. ### Why does my iOS deep link still open Safari? Check the file with the validator first. Then check the appID, which must use the Apple team that signed the app. Also check that your iOS build uses native navigation, as deep links need it on iOS. --- # App permissions: what your app asks for and why Source: https://saastostore.com/docs/permissions An app that asks for too much looks suspicious, to people and to store reviewers. So your app declares only what the plugins you turned on need. With no plugin turned on, it shows no permission prompt at all. ## Android permissions | Turned on | Permission added | Prompt shown? | | --- | --- | --- | | Always | `INTERNET` | No | | Location | `ACCESS_COARSE_LOCATION`, `ACCESS_FINE_LOCATION` | Yes, the first time your site asks | | Biometric unlock | `USE_BIOMETRIC` | No, the system window appears at use | | Haptic feedback | `VIBRATE` | No | | In-app subscriptions | `com.android.vending.BILLING` | No | | Local notifications | `POST_NOTIFICATIONS`, `RECEIVE_BOOT_COMPLETED` | Yes on Android 13 and later, when your site calls `requestPermission()` | | QR code scanner | None: the reader belongs to Google Play services | No | | Document scanner | None: the scanner belongs to Google Play services | No | | Contacts | None: people choose in the system's own contact picker | No | | Calendar | None: the phone's calendar editor opens, people save the event | No | ## iOS usage messages On iOS, every sensitive feature has a message that explains why the app needs it. People see it in the system prompt, and App Review reads it. | Turned on | Declared | When people see it | | --- | --- | --- | | Biometric unlock | `NSFaceIDUsageDescription` | The first time Face ID is used | | Location | `NSLocationWhenInUseUsageDescription` | The first time your site asks | | QR code scanner | `NSCameraUsageDescription` | The first time your site calls `scan()` or `requestPermission()` | | Document scanner | `NSCameraUsageDescription` (one message shared with the QR code scanner) | The first time your site calls `scan()` | | Calendar | `NSCalendarsUsageDescription` | On iOS 15 and 16 only, the first time your site calls `addEvent()` | Local notifications don't need a message: iOS shows its own prompt when your site calls `requestPermission()`. Contacts don't need one either: the contact picker runs outside your app and only returns what people choose. ## Ask at the right moment The system prompt appears when your site makes the call, and a refusal is hard to undo: people have to go to the phone's settings. So don't call it on the first page. Show why you need it first, then call it from a button. ```js // from a button such as "Find stores near me" navigator.geolocation.getCurrentPosition( (position) => showStores(position.coords), (error) => showManualSearch(error), // refused or unavailable ); ``` ## Declare what you collect The stores ask you to describe the data your app handles, on Google Play in the **Data safety** form, on the App Store under **App Privacy**. Your site's own data collection counts, as does the Location plugin. Answer for your whole app, not only for what SaasToStore adds. After a build, your personal to-do list reminds you of what applies to your app. ## Camera and microphone A file input lets people take a photo or pick a file through the system's own picker, with no permission on your side. The QR code scanner and document scanner plugins use the camera only to read a code or capture a page: on Android through Google Play services, with no camera permission; on iOS with the camera message listed above. Live camera or microphone access from a page, such as a video call, isn't part of the plugin library today. ## Frequently asked questions ### Why does my app ask for location? Your project has the Location plugin turned on, or a page of your site calls the geolocation API. Turn the plugin off if you don't need it, then launch a new build. ### Can I change a permission without a new build? No. Permissions are written into the app when it's built. Turning a plugin on or off takes effect with the next build. ### A person refused the permission. What now? Your site receives an error. Offer another way, such as a manual search, and tell them they can allow it in the phone's settings. ### Do I need a privacy policy? Yes. Google Play and the App Store both require a link to one. SaasToStore can generate a first draft in the Configuration tab, which you should review. --- # In-app purchases with RevenueCat Source: https://saastostore.com/docs/in-app-purchases If your app sells digital content, Google Play and the App Store generally require their own billing for sales made in the app. SaasToStore connects your site to Google Play and App Store subscriptions through RevenueCat. Your website code starts the purchase and receives the result: no native code. > Android and iOS use the same calls and the same events. An iOS app gets in-app purchases at its next build once the App Store key is set. An iOS app built before that doesn't have them, so hide your purchase button there (see [iOS](#ios)). ## What you need - On Android: an **Android Build (Native)** with native navigation (Shell V2) - On iOS: an iOS build, with or without native navigation - A RevenueCat project, with its public Android API key (it starts with `goog_`) and, for iOS, its public App Store API key (it starts with `appl_`) - An Entitlement ID in RevenueCat, such as `premium`. Android and iOS use the same one ## Set it up 1. **Turn on In-App Subscriptions** In your project's plugin library, add the plugin and fill in the API keys and the Entitlement ID. The App Store key is optional: without it, the iOS app has no in-app purchases. 2. **Add the code to your site** Use the example below, or the [prompt for AI builders](https://saastostore.com/docs/javascript-bridge). 3. **Launch a new build** The plugin is part of the native app, so it needs a build, on each platform. 4. **Test with a test account** On Android, purchases only work in an app installed from a Google Play test track, signed in with a tester's account. On iPhone, test with a TestFlight build and a sandbox account. ## The four calls ```js billing.identify(userId); // after sign-in, before any purchase billing.getStatus(); // is the subscription active? billing.purchase(productId); // opens the Google Play or App Store purchase sheet billing.restore(); // restore purchases ``` Results arrive as an `s2s:billing` event on `window`, with a `type` in `event.detail`. Listen to that event: it works the same on Android and iOS. ``` identify_result { success, userId, error? } purchase_result { success, productId, isEntitled?, error? } restore_result { success, isEntitled, error? } status { isEntitled, entitlementId, expiresAt? } ``` ## Full example ```js const billing = await whenSaasToStore("billing"); window.addEventListener("s2s:billing", (e) => { const d = e.detail; if (d.type === "identify_result" && d.success) billing.getStatus(); if (d.type === "status") setPremium(d.isEntitled); if (d.type === "purchase_result" && d.success) setPremium(d.isEntitled); }); if (billing?.isAvailable) billing.identify(currentUser.id); // after sign-in // your "Upgrade" button, inside the app (Android or iOS): billing.purchase("premium_monthly"); ``` `whenSaasToStore` waits for the bridge to load. Its code is in the [JavaScript bridge](https://saastostore.com/docs/javascript-bridge) reference. > Keep the purchase state on your server too. RevenueCat can notify your server by webhook, so someone who subscribed in the app stays premium on your website. ## iOS An iOS app built with the App Store key has the same `billing` object, the same calls and the same events, with Apple's purchase sheet. An iOS app built before, or without the key, has no `billing`, or `billing.isAvailable` is false. Apple doesn't allow a digital purchase through your own web checkout in most cases, so hide your purchase button in that app: ```js const billing = await whenSaasToStore("billing"); const ua = navigator.userAgent; const inApp = ua.includes("SaasToStoreApp"); const isIos = /iPhone|iPad|iPod/.test(ua); const storeBilling = inApp && billing?.isAvailable === true; // billing.purchase() const webCheckout = !storeBilling && (!inApp || !isIos); // your usual checkout // neither: an iOS app without in-app purchases, hide the button ``` ## What about physical goods? Physical products and real-world services don't use store billing. A shop can keep its normal checkout: Stripe, Shop Pay or another provider. If checkout runs on another domain, it opens in the system browser, unless you add it to Extra domains. ## Frequently asked questions ### Where do I create my subscriptions? For Android, in the Google Play Console, under Monetize; your app needs to be uploaded to a test track before Google lets you create them. For iOS, in App Store Connect. Then link them in RevenueCat. ### Do my iOS users need a new version of the app? Yes. The purchase code is part of the native app: set the App Store key, then launch a new iOS build and publish it. An iOS app built before doesn't change. ### Are the RevenueCat API keys safe in the app? Yes. They're the public keys, made to be embedded in apps. Never paste a secret key here. ### Does RevenueCat cost extra? RevenueCat has its own pricing, with a free tier at the time of writing. Check their site for current terms. SaasToStore adds no commission. ### Can I keep Stripe on Android? For digital goods, Google Play's billing rules generally apply, with exceptions that depend on the country. Check the current policy for your market before you submit. --- # Desktop apps: Windows, macOS and Linux Source: https://saastostore.com/docs/desktop A desktop build wraps your website in a real desktop app, with its own window and icon in the taskbar or Dock. One build gives you an installer for Windows, macOS and Linux. ## What you get | System | File | Where it can go | | --- | --- | --- | | Windows | `.msi` | Your website, GitHub Releases, Microsoft Store (as `.msix`) | | macOS | `.dmg` | Your website, GitHub Releases | | Linux | `.AppImage` | Your website, GitHub Releases, Snap Store, Flathub | Each system builds on its own, and the Build tab shows the progress of all three. Download links appear as each one ends. ## How to build 1. **Set your icon and name** Use a square icon. Linux needs it to be square, and a non-square one can stop the build. 2. **Open the Build tab** Choose the desktop build and launch it. SHIP and BUSINESS both include it. 3. **Download and test** Install the app on your own computer and try your main pages. ## The warning on first launch Code signing is not live yet, so Windows and macOS warn people before opening the app. Unsigned builds still install: the warning is friction, not a wall. Windows code signing and macOS notarization are included in BUSINESS from the day they go live. | System | What people see | What they do | | --- | --- | --- | | Windows | SmartScreen: "Windows protected your PC" | **More info**, then **Run anyway** | | macOS | "Cannot be opened because the developer cannot be verified" | Right-click the app, then **Open**. On recent macOS versions, allow it in **System Settings → Privacy & Security** | | Linux | No warning | Mark the `.AppImage` as executable, then run it | If you share the file on your website, add those instructions next to the download button. It lowers the number of people who give up. ## Publish to desktop stores - **Microsoft Store:** the Publish tab generates the `.msix` package and sends it. - **GitHub Releases:** a simple way to host your files with a stable link. - **Snap Store and Flathub:** both reach Linux users. Flathub reviews each new app. The Publish tab lists what each store needs once your plan is active. ## What works differently on desktop - Plugins and `window.saastostore` don't run on desktop. - Native tabs and menus are for phones. Your site's own navigation is what people use. - Google sign-in has the same rule against embedded browsers as on mobile. Test it first, and offer email sign-in as an alternative. - Your site should be comfortable on a large screen, as the window is resizable. ## Frequently asked questions ### Does the desktop app update when my website changes? Yes. The app shows your live site, so content changes appear on their own. A new icon or name needs a new build. ### Can I build for only one system? A desktop build compiles the three systems together. You choose which files to share. ### Can I publish on the Mac App Store? No. The macOS build gives you a .dmg file to share yourself. ### Why is the Microsoft Store file different from the .msi? The Microsoft Store takes an .msix package, generated from your site's URL at publishing time. The .msi is for direct downloads. --- # Android TV apps: remote control and banner Source: https://saastostore.com/docs/android-tv The Android TV build turns your website into a TV app that appears in the launcher and works with a remote. The build does the technical part. What decides whether it's a good TV app, and whether Google approves it, is how well your site works without a mouse or a touch screen. ## What the build adds - An entry in the Android TV launcher - A banner of 320×180 pixels with your logo and app name - D-pad navigation: the arrows move between links and buttons, and OK clicks - Support for phones too: the same file installs on both > Android TV is built on the native Android build. It can't be made from the Android Build (Web). ## Prepare your site for a remote Open your site on a computer and put your mouse aside. Move with the Tab key only: that's close to what a remote does. Then fix what gets in the way. - Use real links and buttons, as `div` elements with a click handler can't get focus. - Give every focused element a clear style. On a TV, focus is the only cursor. - Avoid menus that only open on mouse hover. - Use large text and buttons, for reading from a sofa. - Keep the main content away from the very edges of the screen. ```css /* make focus visible from across the room */ a:focus, button:focus, [tabindex]:focus { outline: 3px solid #fff; outline-offset: 3px; } ``` To apply a TV layout only inside the app, combine the [SaasToStoreApp marker](https://saastostore.com/docs/javascript-bridge) with a check on the window width. ## The banner We build the launcher banner from your icon and app name. Names in scripts we can't draw yet, and logos that fail to process, fall back to the logo alone. Your store listing needs its own larger images: a banner of 1280×720 and screenshots of 1920×1080, which the project can generate. ## Test before you submit 1. **Build and install** Launch an Android TV build and install it on a TV, a TV box or the Android TV emulator. 2. **Use only the remote** Open every main page, and check that nothing needs a touch or a mouse. 3. **Test sign-in** Typing on a TV is slow, so make sign-in as short as you can. 4. **Start with an internal test track** It lets you catch problems before Google reviews the TV version. ## Which plugins work on TV The Android plugins are in the build, but some make little sense on a TV. Haptic feedback answers `not_available`, as most TVs have no vibrator. Check each plugin's result in your code rather than assuming it worked. ## Frequently asked questions ### Will Google approve my TV app? It depends on your site. Google reviews TV apps for remote control navigation, and a site made for mouse and touch often fails. Test with a remote and start on an internal test track. ### Does it work on Fire TV? We build for Android TV and Google TV. We haven't tested Fire TV devices, so treat them as unverified. ### Do I need a separate app for phones? No. The same file works on phones and TVs. Google Play shows it on both once the TV version is approved. ### Is Android TV included in my plan? SHIP and AGENCY include it, with its own 4 builds in SHIP. --- # Security at SaasToStore Source: https://saastostore.com/security What we do to protect your account and your apps, and what we don't have yet. Each point was checked against our code or our legal texts on 3 November 2026. For personal data, the [privacy policy](https://saastostore.com/privacy) remains the reference. ## What reaches us - We receive your site's address, not its source code. - An app loads your site directly. The pages your users open and what they type do not pass through our servers. - Card details stay with Stripe and never reach our servers. ## Who can access your data - Row-level security is on for every table of our database. A signed-in account only reaches its own projects, builds and connections. - Our server functions check who is calling and who owns the project. - Build files and signing keys sit in private storage. A download link is only issued to the account that owns the build. - Images and legal pages meant to be public, such as your app icon, are stored publicly. - Each Android build runs in its own container, removed when the build ends. - Our servers accept SSH keys only, never a password. ## Encryption - All traffic to saastostore.com uses HTTPS, with HSTS. - Your app's signing key is encrypted with AES-256-GCM, with a key derived for your account. - Its password is filtered out of our logs and reaches you by email only. - The free test build is signed with a throwaway key that we do not keep. - If you let us publish for you, the credentials you give us are encrypted with AES-256-GCM and decrypted only for the publication. ## Sign-in and sessions - Sign-in runs on Supabase Auth: we do not store passwords ourselves. - **Sign out** closes this browser only. **Sign out everywhere**, on your account page, closes every session. - A closed session can no longer change your projects, even before its token expires. ## AI agents An AI agent connects through the [MCP connector](https://saastostore.com/mcp), after you approve it on a consent page. - It can check a URL, create your app and run a build. A build it starts uses your plan like any other build. - It cannot pay, publish, delete or change your connections. It can only prepare a payment link, which you open yourself. - These limits are enforced in our server functions and again in the database, not only in the connector. - **Sign out everywhere** disconnects agents too. ## Payments Payments run on Stripe, whose platform is certified PCI-DSS Level 1. That certification is Stripe's, not ours. We keep payment records for accounting, never card details. ## Subprocessors The main providers that process data for SaasToStore: | Provider | Used for | Location | | --- | --- | --- | | Supabase | Database, sign-in, file storage, server functions | European Union | | Ionos | Build servers, sign-in emails | Germany | | Cloudflare | Website hosting and delivery | Global network | | GitHub | iOS and desktop builds | United States | | Stripe | Payments | United States | | Resend | Transactional emails | United States | | Anthropic | AI text and setup assistant | United States | | Google Gemini | AI images | United States | | Browserless | Screenshots of your site | United States | | Google Firebase | App notifications | United States | | PWABuilder (Microsoft) | Windows packages | United States | Transfers outside the European Union rely on the European Commission's standard contractual clauses and, where the provider is certified, the EU-US Data Privacy Framework. ## GDPR and your rights - SaasToStore is run by Méga Joule, in France, which is the data controller. - You can ask to access, correct, delete or export your data at hello@saastostore.com. We answer within 30 days. - You can also complain to the CNIL, the French data protection authority. - We do not sell your data, and we do not use it to train AI models. - If a breach puts your rights at risk, we notify the authority within 72 hours and you without undue delay. ## Deleting your account Open **Account**, choose **Delete my account**, type your email address to confirm, then choose **Delete permanently**. Deletion is refused while a build is running. - Your projects, builds, files and signing keys are deleted. All personal data is erased within 30 days, except what the law requires us to keep. - Your active subscriptions, such as KEEP ALIVE or AGENCY, are cancelled right away, before anything is deleted. The time already paid is not refunded. A subscription bought in the SaasToStore Android app is billed by Google Play and is not cancelled: cancel it in Google Play. - Payment records are kept for 10 years, as French accounting law requires, no longer linked to your account. - An app already published stays on its store, and we can no longer build its updates. ## Report a security issue Write to hello@saastostore.com with the steps to reproduce the issue. We read every report. We have no paid bug bounty program. ## Frequently asked questions ### Do you have access to my site's source code? No. We only receive its address. The app opens your site the way a browser does. ### Where is my data? Our database and files are in the European Union, and Android builds run on our servers in Germany. iOS and desktop builds run on GitHub, in the United States. The table on this page lists the main providers. ### Do you have SOC 2 or ISO 27001? No, not today. Neither certification covers SaasToStore, and we prefer to say so. ### Can an AI agent spend my money? It cannot pay. It can only prepare a payment link that you open yourself. A build it starts uses your plan like any other build. --- # Troubleshooting builds and published apps Source: https://saastostore.com/docs/troubleshooting Find your symptom below. Each one gives the likely cause and what to do. If a build fails, your credit is returned automatically, so you can try again without paying twice. ## The build failed | Message or symptom | Likely cause | What to do | | --- | --- | --- | | We couldn't reach your site | The address is down, private or slow | Open it in a private window, then relaunch | | Your site has no valid PWA manifest | You chose the Android Build (Web) | Add a manifest, or use the [Native build](https://saastostore.com/docs/build-types) | | Something went wrong with your app icon | The icon isn't a usable image | Upload a square 512×512 PNG | | We couldn't sign the app | Usually on our side | Relaunch. Contact us if it happens again | | The build stopped while compiling | Usually temporary | Relaunch. Send us the build ID if it repeats | If you built your site with Lovable or a similar tool, check that the address still works. Renaming a project can change it, and the build then points to a page that no longer exists. ## The app won't install - **Android says the app isn't installed:** you probably have the free test app on the phone. It was signed with a temporary key, so Android can't replace it. Uninstall it first. - **Android blocks the file:** allow your browser to install apps when prompted ("Install unknown apps"). - **The download link no longer works:** links last 30 days. Open the project page to get a new one. - **The test build on iPhone:** it's Android only. iOS comes with a paid plan. ## The app shows a blank page 1. **Open your URL on a phone** Use the phone's browser. If the site is blank there too, the problem is on the site. 2. **Check the address** It must be HTTPS and public. A page behind a password or an IP filter stays blank. 3. **Check the speed** A blank moment on first launch is your site loading. On iPhone it appears right after the launch screen. ## An address bar shows at the top - **In the free test build:** this is normal. It goes away in a paid build. - **In the Android Build (Web):** your site doesn't serve the right `assetlinks.json`. Follow [Deep links](https://saastostore.com/docs/deep-links) and check it with the [validator](https://saastostore.com/tools/deep-link-validator). ## A link leaves the app Only your domain and its subdomains stay in the app. Anything else opens the system browser. To keep a domain inside, add it to **Extra domains** in your project, then rebuild. Never add Google's sign-in domain. ## Google sign-in shows an error An error such as `disallowed_useragent` means sign-in opened inside the app. Follow [Sign-in](https://saastostore.com/docs/sign-in). If sign-in works but you come back signed out, check that your provider allows your app's return address. ## window.saastostore is undefined - You're in a normal browser, where it doesn't exist. - It's an Android Build (Web), which has no bridge. Use the Native build. - The plugin was added after your last build. Launch a new one. - The page is on another domain. The bridge only exists on your app's domain and subdomains. - Your code runs before the bridge has loaded. Use `whenSaasToStore`, from the [JavaScript bridge](https://saastostore.com/docs/javascript-bridge) reference. ## A plugin doesn't seem to do anything Plugin calls never throw. Log the result: `error` tells you what happened. `not_available` means the device can't do it, `not_supported` means the system doesn't allow it, and `invalid_argument` means a value is in the wrong format. ```js const r = await window.saastostore?.haptics?.selection(); console.log(r); // { ok: true } or { ok: false, error: "not_available" } ``` ## Still stuck? Write to [hello@saastostore.com](mailto:hello@saastostore.com) with your build ID, which is on the build's page, and what you tried. ## Frequently asked questions ### Google says 'Version code has already been used'. What do I do? Your app already has a higher version on Google Play, usually from another tool. Enter the highest version code in 'My app is already on Google Play' in your project, then launch a new build. ### Google refuses my bundle because of the wrong signing key. Why? The app was first published with another key. Download the certificate from 'My app is already on Google Play', and send it to Google with Request upload key reset. Google tells you when it's valid. ### Publishing fails with 'Package not found'. Why? Google Play only accepts uploads for an app that already exists. Create the app in the Play Console with the same package name, upload the first bundle by hand if Google asks, then publish from SaasToStore. ### Apple refused my app under guideline 4.2. What can I do? Apple refuses apps that feel like a repackaged website. Add native navigation and useful plugins, hide your site's web header and footer, and show in your review notes what the app adds. ### Google asks for 12 testers. Is this normal? Yes, for many personal accounts created after November 2023. Read our guide on the 12 testers requirement. --- # Changelog Source: https://saastostore.com/changelog What's new in SaasToStore, dated by the day it went live. Native changes reach an app with its next build, so an app already published keeps its behavior until then. ## November 2026 ### 8 November - **[In-app purchases](https://saastostore.com/docs/in-app-purchases):** now on iOS too, with the same JavaScript calls as on Android. ### 2 November - **[Local notifications](https://saastostore.com/plugins):** schedule reminders on the phone from your site's JavaScript, with no server. - **[QR and barcode scanner](https://saastostore.com/plugins):** open the scanner from your site's JavaScript and get the code back. - **iOS apps:** a clear screen with a Retry button when the site can't be reached, instead of a blank page. Pages of your site stay in the app, and other links open in a Safari view inside the app. - **iOS apps:** a tab with no page is removed from the build, and the privacy manifest is added when the app needs one. - **App Store review:** a 12-point checklist in the Publish tab before you submit, and notes ready to copy for the review team. - **iOS builds:** a warning before an iOS build with no native navigation, because Apple often rejects those. The build is never blocked. - **Post-build checklist:** native features only appear for builds that include them, and the free test build gets a short version. ### 1 November - **[Documentation](https://saastostore.com/docs):** new guides, from the first build to sign-in, deep links and troubleshooting. - **[Deep link validator](https://saastostore.com/tools/deep-link-validator):** check your `assetlinks.json` and `apple-app-site-association` files for free. - **Store images:** a new Visuals tab turns your real captures into images sized for the stores, with a title, a color and a device frame. - **Native navigation:** 12 ready-made templates in the Shell Designer. - **Android tabs:** the lavender pill behind the active tab is gone. Your own colors now show as you set them. ## October 2026 ### 31 October - **iOS launch screen:** your logo replaces the default placeholder when the app starts. ### 30 October - **[Plugin library](https://saastostore.com/plugins):** haptic feedback, in-app review, native share, screen control, secure storage, app info, in-app browser, status bar and screen orientation, all from your project. ### 28 October - **[Biometric unlock](https://saastostore.com/plugins/biometric):** now on Android too, as on iOS. - **[JavaScript bridge](https://saastostore.com/docs/javascript-bridge):** `window.saastostore` is documented in 5 languages. ### 27 October - **Sign-out:** signing out now closes this browser only. The **Sign out everywhere** action on your account page closes every session. ### 24 October - **[MCP connector](https://saastostore.com/mcp):** Claude Code and other AI agents can check a URL, create your app and run a build. They never pay, publish or delete. ### 22 October - **[Android TV](https://saastostore.com/docs/android-tv):** the launcher banner now shows your app's name next to your logo. ### 20 October - **[Sign-in on iOS](https://saastostore.com/docs/sign-in):** a secure sheet for Google sign-in, and the same domain rules as on Android. - **Free test build:** a QR code to install it, and a guide in 3 steps. ### 19 October - **iOS builds:** they now send the `SaasToStoreApp` marker, as Android does, so your site can [detect the app](https://saastostore.com/docs/what-works-in-your-app). ### 18 October - **[New plans](https://saastostore.com/pricing):** Free, SHIP, BUSINESS and AGENCY, with **Do it for me** on every plan and KEEP ALIVE to maintain one app. ### 15 October - **Checkout:** the payment page opens in your language. ### 14 October - **[Pricing](https://saastostore.com/pricing):** prices show in your currency, as they will be billed. ### 9 October - **[Existing Google Play apps](https://saastostore.com/docs/update-your-app#already-on-google-play):** take over an app first published with another tool. - **Shell Designer:** a floating 5-tab starter, and the build now gets what the preview shows. ### 7 October - **TestFlight:** a build accepted by Apple now shows as published, with a clear note when external review needs more information. ### 6 October - **Do it for me:** we set up your app for you. - **[Hide website elements](https://saastostore.com/docs/hide-website-elements):** hide parts of your site inside the app, without changing it in a browser. ## September 2026 ### 30 September - **Store listing:** it now follows your site's language. ### 25 September - **Free test build:** launch it right away, without filling in the store listing. - **Password reset:** a dedicated page to choose a new password. - **Legal pages:** the addresses of your privacy and terms pages are detected on your site and checked, not guessed. ### 21 September - **Extra domains:** allow other domains in the app, so a payment page stays inside it. ### 9 September - **[Location](https://saastostore.com/plugins/geolocation):** your site's `navigator.geolocation` code works in the Android app. Off by default. ## August 2026 ### 11 August - **Android API 36:** Android builds target API 36, as Google Play requires. ## July 2026 ### 18 July - **iOS:** the iOS build goes live, included in paid plans. ### 15 July - **[In-app subscriptions](https://saastostore.com/plugins/billing):** sell Google Play subscriptions through RevenueCat from your site's code. ### 11 July - **AI assistant:** set up your app in a conversation, or stay with the forms. ### 9 July - **Shell Designer:** more styles for the header, the tab bar and the side menu. ### 7 July - **[Native navigation](https://saastostore.com/docs/native-navigation):** the Shell Designer adds a native header, tabs and side menu, with no code. ### 2 July - **[Google sign-in](https://saastostore.com/docs/sign-in):** it now returns to the Android app, and the `SaasToStoreApp` marker lets your site [detect the app](https://saastostore.com/docs/what-works-in-your-app). ## June 2026 ### 16 June - **[Android TV](https://saastostore.com/docs/android-tv):** a build for TV, with the TV launcher and remote control navigation. ### 8 June - **Launch:** paid plans open, with Android builds and [desktop builds](https://saastostore.com/docs/desktop) for Windows, macOS and Linux. --- # PWA checker: is your website ready to become an app? Source: https://saastostore.com/tools/pwa-checker Paste your website address to see if it's ready to become an app. The check is free, takes about 10 seconds and needs no account. It reads your site as a browser would, then tells you what it found and what to do next. ## What it looks at - **HTTPS:** every store build needs a secure address. - **Web manifest:** the file that gives your site a name, colors and icons. - **Service worker:** the script that makes a PWA installable. - **Icons:** whether your site offers a usable one. - **Your builder:** when it recognizes the tool behind your site, the fix guide adapts to it. ## What the result means for your build | Your site | What you can build | | --- | --- | | Valid PWA | Every build, including the small [Android Build (Web)](https://saastostore.com/docs/build-types) | | Not a PWA | The free test build, Android Build (Native), iOS, Android TV and desktop | | Unreachable | Nothing yet: the address must be public | > A low score doesn't stop you. Only the Android Build (Web) needs a valid PWA, and the Android Build (Native) accepts any website. ## Improve your score 1. **Add a manifest** Add a `manifest.webmanifest` file with your app's name, start URL, colors and icons of 192 and 512 pixels, then link to it from your pages. 2. **Add a service worker** Most builders have an option or a plugin. With an AI builder, ask it to make your app a PWA. 3. **Check again** Publish your site, then run the check once more. ```html ``` Next, follow the [quickstart](https://saastostore.com/docs/quickstart), or read about [which build fits your app](https://saastostore.com/docs/build-types). ## Frequently asked questions ### Do I need a PWA to publish an app? No. Only the Android Build (Web) needs one. The other builds accept any public website. ### Is the check really free? Yes, with no account and no limit on what it tells you. Building an app starts with a free test build. ### Why does it say my site is unreachable? The site may be private, protected by a password or blocking automated visits. Open it in a private window to check. ### Does it work with Lovable, Bubble or Webflow? Yes. It works with any public website, and it recognizes the main builders. --- # Deep link validator for Android and iOS Source: https://saastostore.com/tools/deep-link-validator Enter your domain to check the two files that make links open your app: `assetlinks.json` for Android and `apple-app-site-association` for iOS. The check is free and needs no account. We fetch both files from your site, the way a phone would. ## What it checks | Check | Android | iOS | | --- | --- | --- | | Found at the right address, with no redirect | Yes | Yes, at both accepted addresses | | Served as `application/json` | Yes | Yes | | Valid structure | Array with the right relation | `applinks.details` is filled in | | App identity | `package_name`, SHA-256 format | `appID` or `appIDs`, format | | Pages covered | Not applicable | `paths` or `components` is present | ## What it can't check - Whether the fingerprint is the one of your published app. Only you can compare it with your project page and the Play Console. - Whether the Apple team is the one that signed your app. A wrong one looks valid and fails in silence. - Apple's own copy of your file. iOS reads it through Apple's servers, which can lag behind. ## Fix what it finds - **HTTP 404:** the file isn't at that exact address. See [how to host the files](https://saastostore.com/docs/deep-links#hosting). - **A redirect:** often `example.com` to `www.example.com`. Each domain must serve the file directly. - **A wrong type:** set `application/json` in your server or hosting settings. - **A wrong format:** download the file again from your project page rather than editing it by hand. For the whole setup, read [Deep links: open your app from a link](https://saastostore.com/docs/deep-links). ## Frequently asked questions ### Do you store the domain I enter? The check fetches the two public files and returns a verdict. We don't save the result. ### Do these files work with apps not made with SaasToStore? Yes. They're Google and Apple standards, so you can use this tool for any app. ### Everything passes but links still open the browser. Why? Reinstall the app, then tap a link from another app. Then compare the fingerprint or the Apple team with those of the installed build. --- # Biometric unlock plugin Source: https://saastostore.com/plugins/biometric This plugin asks the person holding the phone to prove it's them, with a fingerprint, their face, or the phone's PIN as a fallback. Use it to unlock an account your site already has open, or to confirm a sensitive action. It doesn't sign anyone in. ## When to use it - Lock a banking, health or notes app when it opens - Confirm a payment, a transfer or a deletion - Let people come back without typing a password ## Set it up 1. **Add the plugin** In your project, open the plugin library and add Biometric unlock. It's on by default in native builds. 2. **Launch a new build** The plugin reaches your app with its next build. On iOS, it also works in a full-screen app, as long as one other library plugin is added. 3. **Add the calls to your site** Use the code below, or paste the prompt into your AI builder. ## JavaScript API ```js const bio = await whenSaasToStore("biometric"); const check = await bio?.isAvailable(); // → { available: true, type: "fingerprint" } // → { available: false, type: "none" } if (check?.available) { const result = await bio.authenticate("Unlock your account"); // → { success: true, error: null } // → { success: false, error: "Authentication canceled" } if (result?.success) showAccount(); } ``` | Value | Android | iOS | | --- | --- | --- | | `type` | `fingerprint`, `face`, `iris`, `biometric` | `faceid`, `touchid` | | Extra errors | `not_available`, `busy` | The system's message | `whenSaasToStore` waits until the bridge has loaded. Its code is in the [JavaScript bridge](https://saastostore.com/docs/javascript-bridge) reference. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Inside the app, window.saastostore?.biometric gives access to Face ID and fingerprint unlock. In a normal browser it doesn't exist, and nothing must change. In the settings page, show an "Unlock with fingerprint / Face ID" switch only when navigator.userAgent includes "SaasToStoreApp" and biometric.isAvailable() returns available: true. Save the choice in localStorage. When the switch is on, hide the signed-in content when the app opens and call biometric.authenticate("Unlock your account"). Show the content when it returns success: true, and offer a retry and a sign-out button otherwise. ``` Paste it as is, then launch a new build if you haven't added the plugin yet. ## Frequently asked questions ### Does biometric unlock replace my sign-in? No. It confirms that the person holding the phone is its owner. Your site still handles accounts and sessions. ### Can I read the fingerprint or face data? No. Your site only gets a yes or a no. Biometric data never leaves the phone's secure hardware. ### What if the phone has no biometrics? isAvailable returns available: false. Skip the lock, or use your site's password check instead. ### Does it need a permission prompt? Not on Android. On iOS, the system asks once before the first Face ID use, with a message the build provides. --- # In-app subscriptions plugin (RevenueCat) Source: https://saastostore.com/plugins/billing This plugin sells Google Play and App Store subscriptions from your website code, through RevenueCat. Your site opens the purchase sheet and receives the result. There's no native code to write and no commission from SaasToStore. Android and iOS use the same calls and the same events. ## Fields to fill in | Field | Where to find it | Example | | --- | --- | --- | | Android API key | RevenueCat, public key of your Android app | `goog_xxxxxxxx` | | App Store API key (optional) | RevenueCat, public key of your iOS app | `appl_xxxxxxxx` | | Entitlement ID | RevenueCat, the access your subscription gives (same on Android and iOS) | `premium` | The API keys are public by design and end up inside the app. Never paste a secret key here. Without the App Store key, the iOS app has no in-app purchases. ## Set it up 1. **Add the plugin** In your project's plugin library, add In-App Subscriptions, then fill in the fields. 2. **Launch a new build** On Android, it needs an Android Build (Native) with native navigation. On iOS, any iOS build: launch a new one after setting the App Store key. 3. **Add the calls to your site** Identify the signed-in person, read their status, then start a purchase from your button. ## JavaScript API ```js const billing = await whenSaasToStore("billing"); window.addEventListener("s2s:billing", (e) => { const d = e.detail; if (d.type === "identify_result" && d.success) billing.getStatus(); if (d.type === "status") setPremium(d.isEntitled); if (d.type === "purchase_result" && d.success) setPremium(d.isEntitled); }); if (billing?.isAvailable) billing.identify(currentUser.id); billing.purchase("premium_monthly"); // from your button ``` Read [In-app purchases](https://saastostore.com/docs/in-app-purchases) for the full guide: events, tests, and iOS apps built before. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside an Android and iOS app. Inside the app, window.saastostore?.billing sells Google Play or App Store subscriptions. In a normal browser it doesn't exist, and nothing must change. When navigator.userAgent includes "SaasToStoreApp" and billing.isAvailable is true: - call billing.identify(user.id) after sign-in, then billing.getStatus() after the identify_result event; - make my upgrade button call billing.purchase("[PRODUCT ID]") instead of my web checkout; - add a "Restore purchases" button that calls billing.restore(). Results arrive as a window event named "s2s:billing". event.detail.type is identify_result, purchase_result, restore_result or status. Unlock premium when status or purchase_result gives isEntitled: true. On iPhone inside the app, if billing is missing or billing.isAvailable is not true, hide the upgrade button. ``` Replace the values in [BRACKETS]. ## Frequently asked questions ### Is it available on iOS? Yes, in iOS apps built with the App Store key. An iOS app built before doesn't have it: hide your purchase button there until you publish a new build. ### Does SaasToStore take a commission? No. You pay Google's or Apple's fees and, above its free tier, RevenueCat's. ### Can I sell one-time purchases? The plugin checks an entitlement, so it's built for subscriptions. Non-subscription products configured in RevenueCat haven't been tested with it. ### Why doesn't the purchase sheet open? On Android, purchases only work in an app installed from a Google Play test track or from the store, with a product that's active in the Play Console. On iPhone, use a TestFlight build and a sandbox account, with a product that's ready in App Store Connect. --- # Deep links plugin Source: https://saastostore.com/plugins/deep-links With this plugin, links to your domain open your app instead of the browser, on the right page. It's what makes a link in an email or a message land on the exact screen people expect. ## When to use it - Order, delivery or booking emails that link to a page - Magic sign-in links that should come back to the app - Shared links to a product, an article or a profile ## Set it up 1. **Add the plugin** In your project's plugin library, add Deep links, then launch a new build. 2. **Host two small files on your site** `assetlinks.json` for Android and `apple-app-site-association` for iOS. Your project page gives you both, filled in. 3. **Check them** Enter your domain in the [deep link validator](https://saastostore.com/tools/deep-link-validator). 4. **Test on a phone** Tap a link from a notes app or a message. Typing it in a browser doesn't count. [Deep links](https://saastostore.com/docs/deep-links) has the exact file formats, where to put them on each platform, and how to test. ## No code needed Nothing to change in your site's code. The app opens the address of the link, and your site shows that page as usual. If you want to move to a page from your own code, use `navigateTo`: ```js window.saastostore?.navigateTo?.("/orders/42"); ``` > On iOS, deep links need native navigation (Shell V2). A full-screen iOS app doesn't handle them. ## Frequently asked questions ### Do deep links work on the Android Build (Web)? That build opens your site in Chrome, and the assetlinks.json file already links your domain to the app. The plugin itself is for the Native build. ### What if the app isn't installed? The link opens your website in the browser, as usual. ### Why do links stop working after publishing on Google Play? Google Play re-signs your app. Add the SHA-256 of the app signing key to assetlinks.json, next to the existing one. ### Can I limit which pages open in the app? Yes, on iOS through the paths in apple-app-site-association. On Android, all pages of the domain open in the app. --- # Haptic feedback plugin Source: https://saastostore.com/plugins/haptics Haptic feedback is the short vibration that confirms a tap, a success or an error. It's a small detail, but it's one of the things that make an app feel native rather than like a website. What the person feels depends on their phone and its settings. ## When to use it - A light tap on the main buttons - A success feedback when a form is sent - An error feedback when something fails - A soft tick when moving through a picker Keep it for moments that matter. A vibration on every tap quickly gets annoying. ## Set it up 1. **Add the plugin** In your project's plugin library, add Haptic feedback, then launch a new build. 2. **Call it from your site** Call each method optionally: it doesn't exist in a normal browser. ## JavaScript API ```js const haptics = window.saastostore?.haptics; await haptics?.impact({ style: "medium" }); // light | medium | heavy await haptics?.notification({ type: "success" }); // success | warning | error await haptics?.selection(); // a light tick await haptics?.vibrate({ duration: 200 }); // ms, 1 to 1000 // → { ok: true } // → { ok: false, error: "invalid_argument" } e.g. duration: 5000 // → { ok: false, error: "not_available" } Android: the device plays nothing ``` | Method | Argument | Default | | --- | --- | --- | | `impact` | `style`: `light`, `medium`, `heavy` | `medium` | | `notification` | `type`: `success`, `warning`, `error` | `success` | | `selection` | None | None | | `vibrate` | `duration`: 1 to 1000 ms | 300 | iOS can't set a duration, so `vibrate` plays a strong impact. On Android, calls answer `not_available` when the device plays nothing, as on most tablets and TVs. iOS answers `ok: true` in that case. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Inside the app, window.saastostore?.haptics gives access to haptic feedback. In a normal browser it doesn't exist, and nothing must change. Call it optionally: window.saastostore?.haptics?.impact(...). Its promise never rejects. Call haptics.impact({ style: "light" }) when a main button is tapped, and haptics.notification({ type: "success" }) or ({ type: "error" }) after a form succeeds or fails. ``` Then test on a real phone. Emulators don't vibrate. ## Frequently asked questions ### Does it need a permission prompt? No. Android declares the vibrate permission in the app, and no prompt is shown. ### Why don't I feel anything? The phone may have haptic feedback turned off, or no vibrator. On Android, the call then answers not_available. ### Does it work in the Android Build (Web)? No. That build opens your site in Chrome, with no window.saastostore. Use the Android Build (Native). --- # In-app review plugin Source: https://saastostore.com/plugins/app-review This plugin opens the rating window of Google Play or the App Store without leaving your app. People rate you in two taps, and those ratings count on your store page. The store decides whether the window appears, and limits how often. ## Choose the right moment - After a success: an order delivered, a goal reached, a booking confirmed - After several uses of the app, not on first launch - Never in the middle of a task > **Warning:** Don't make it the only action of a "Rate us" button. The window may not appear, and the button would then do nothing. For a button, link to your store page instead. ## Set it up 1. **Add the plugin** In your project's plugin library, add In-app review, then launch a new build. 2. **Call it after a success** One call, optional, from your site's code. ## JavaScript API ```js // after a success, never as the only action of a button const r = await window.saastostore?.appReview?.request(); // → { requested: true } handed to the store, which decides whether to show it // → { requested: false, error: "not_available" } // → { requested: false, error: "busy" } Android: a review window is still open ``` `requested: true` comes back as soon as the request is handed to the store. Your code is never told whether a rating was left. `error` can also be `timeout` or `failed`. ## Test it The window only appears in an app installed from Google Play or the App Store. It never appears in TestFlight, and Google may not show it at each try. An answer of `requested: true` is enough to know your code works. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Inside the app, window.saastostore?.appReview shows the store's rating window. In a normal browser it doesn't exist, and nothing must change. Call window.saastostore?.appReview?.request() once, after [A SUCCESS MOMENT], and never from a button. Remember in localStorage that it was called, so that it runs once per install. ``` Replace the value in [BRACKETS]. ## Frequently asked questions ### Why doesn't the window appear? The store decides. It limits how often the window shows, and it doesn't show it in TestFlight or in an app installed from a file. ### Can I know the rating someone gave? No. Stores never share this with the app. Read your reviews in the store's console. ### Can I offer a reward for a rating? No. Both stores forbid incentives in exchange for ratings. ### Can I filter out unhappy users first? Don't ask 'Do you like the app?' before calling it to send only happy users. Google and Apple both discourage it. --- # Native share plugin Source: https://saastostore.com/plugins/share This plugin opens the phone's share sheet with a text, a link, or both, so people can send a page to any app they have. It handles text and links, not files. Don't confuse it with Receive shares, which lets other apps send content to yours. ## Set it up 1. **Add the plugin** In your project's plugin library, add Native share, then launch a new build. 2. **Connect your share buttons** Inside the app, call `share` rather than your web sharing code. ## JavaScript API ```js const r = await window.saastostore?.share?.({ title: "Trip to Lisbon", // optional text: "Here is our itinerary", url: "https://example.com/trips/42", }); // → { shared: true } the share sheet opened // → { shared: false, error: "invalid_argument" } url not http or https // share() with neither text nor url shares the page shown // in a normal browser: navigator.share?.({ title, text, url }) ``` | Argument | Meaning | | --- | --- | | `title` | Optional. The subject of an email, or the title of the sheet | | `text` | The message | | `url` | A link, `http` or `https` only | `share` is a function, not an object. `shared: true` means the sheet opened, not that something was sent. Your code isn't told which app people chose. ## One button for app and web ```js async function shareTrip(data) { if (window.saastostore?.share) return window.saastostore.share(data); if (navigator.share) return navigator.share(data); await navigator.clipboard.writeText(data.url); // last resort on desktop } ``` ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Inside the app, window.saastostore?.share({ title, text, url }) opens the native share sheet. In a normal browser it doesn't exist, and nothing must change. Make my share buttons call window.saastostore.share when it exists, navigator.share when it doesn't, and copy the link to the clipboard as a last resort. Its promise never rejects, so don't wrap it in a try/catch for the app case. ``` Then launch a new build if you haven't added the plugin yet. ## Frequently asked questions ### Can I share an image or a file? Not with this plugin. It shares text and links. Link to a page that shows the image instead. ### Does navigator.share work in the app? Web sharing isn't dependable inside a web view. Use window.saastostore.share in the app, and keep navigator.share for browsers. ### Can I know if the person really shared? No. You only know the sheet opened. The system doesn't tell the app what happened next. --- # Secure storage plugin Source: https://saastostore.com/plugins/secure-storage This plugin is a small key-value store encrypted by the phone, for a token or a secret your site needs from one launch to the next. It's a safer place than `localStorage`, whose content can be read from the app's files on a compromised device. ## How values are protected | System | Where values live | After uninstalling | | --- | --- | --- | | Android | Encrypted with AES-256-GCM, with a key from the Android Keystore that never leaves the device | Erased, and never backed up | | iOS | The Keychain, for this app only, on this device only, after first unlock | Kept: a reinstall finds the old values | ## Set it up 1. **Add the plugin** In your project's plugin library, add Secure storage, then launch a new build. 2. **Save and read your values** Keep your web code for browsers, and add these calls for the app. ## JavaScript API ```js const vault = window.saastostore?.secureStorage; await vault?.set("refresh_token", token); // → { ok: true } const saved = await vault?.get("refresh_token"); // → { value: "…" }, or { value: null } when the key is missing await vault?.keys(); // → { keys: ["refresh_token"] } await vault?.remove("refresh_token"); // → { ok: true } await vault?.clear(); // e.g. at sign-out await vault?.set("session", JSON.stringify({ id, exp })); // objects: JSON.stringify await vault?.set("auth:token", undefined); // → { ok: false, error: "invalid_argument" } ":" in the key, value not a string ``` ## Limits - **Keys:** letters, digits, `.`, `_` and `-`, from 1 to 128 characters. - **Values:** strings up to 64 KB. Nothing is converted: use `JSON.stringify` for objects. - **One store per site:** like `localStorage`. `www.example.com` and `example.com` share one, `help.example.com` has its own. - **Your page can read it:** values are protected on the phone, not against a script injected into your site. > **Warning:** On iOS, the Keychain survives uninstalling the app. Call `clear()` at sign-out, and don't take an empty store for a first install, or the reverse. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text My website also runs inside a mobile app. Inside the app, window.saastostore?.secureStorage is an encrypted store. In a normal browser it doesn't exist, and nothing must change. Inside the app, also save [VALUE TO PROTECT] with secureStorage.set(key, value). Keys use letters, digits, ".", "_" and "-" only, for example "auth.refresh_token". Values are strings: JSON.stringify objects, and never pass undefined. Read it with secureStorage.get(key), which returns { value }, and call secureStorage.clear() at sign-out. ``` Replace the value in [BRACKETS]. ## Frequently asked questions ### Is it safer than localStorage? Yes, on the phone: values are encrypted with keys held by the system. Against a script injected into your own site, no: your page can read both. ### Does it sync across devices? No. Values stay on that device. On a new phone, the store starts empty. ### Do I still need my own server session? Yes. This store keeps a value on the phone. It doesn't replace your authentication. --- # Location plugin Source: https://saastostore.com/plugins/geolocation This plugin lets the standard `navigator.geolocation` code of your website work inside your app. There's no new API to learn: the code you already use in a browser keeps running. The plugin declares the location permissions, which the app can't use without. ## Set it up 1. **Add the plugin** In your project's plugin library, add Location, then launch a new build. 2. **Ask at the right moment** The system prompt appears the first time your site asks for a position. Call it from a button, after explaining why. 3. **Declare it in the stores** Location counts as personal data. Mention it in Data safety on Google Play and App Privacy on the App Store. ## Code ```js navigator.geolocation.getCurrentPosition( (position) => { const { latitude, longitude } = position.coords; showStoresNear(latitude, longitude); }, (error) => showManualSearch(error.message), { enableHighAccuracy: true, timeout: 10000 }, ); ``` ## What it adds to your app | System | Added | Scope | | --- | --- | --- | | Android | `ACCESS_COARSE_LOCATION`, `ACCESS_FINE_LOCATION` | While the app is open | | iOS | `NSLocationWhenInUseUsageDescription` | While the app is open | Location works while the app is open. Background tracking isn't part of this plugin. > On iOS, Location needs native navigation (Shell V2). Without the plugin, these permissions aren't declared and your site's request fails. ## Prompt for AI builders **Prompt for Lovable, Bolt or Base44** ```text On [PAGE], add a button that says why I need the location, then calls navigator.geolocation.getCurrentPosition. Handle a refusal or an error by showing a manual search. Never ask for the location when the page loads. Use a timeout of 10 seconds. ``` Replace the value in [BRACKETS]. ## Frequently asked questions ### Does it work in the background? No. Location works while the app is open. ### Does it use a new JavaScript API? No. It's the standard navigator.geolocation of browsers, so the same code works on your website and in the app. ### Why do I need to declare location in the stores? Google Play and the App Store both ask you to declare the personal data your app accesses, and location is on the list. ### A person refused. Can I ask again? The system doesn't show the prompt again after a firm refusal. Offer a manual search, and tell them they can allow it in the phone's settings.