development

    Building Layag: What It Takes to Ship an AI Travel Planner to the App Store

    By Ayesha IftikharSenior Software Engineer & Product Engineer
    Building Layag: What It Takes to Ship an AI Travel Planner to the App Store

    Short answer

    Let the AI do the planning, but keep the parts travellers must trust simple and free: visa checks and emergency numbers cost nothing and work offline. Make location sharing expire on its own, keep analytics opt-in, say exactly where trip data goes, and put the paywall on the features that actually cost money to run.

    Planning a trip abroad usually means a dozen tabs: a blog for the itinerary, a government site for the visa, a spreadsheet for the budget, a group chat for splitting costs and, when something goes wrong, a panicked search for the local emergency number.

    Layag puts all of that in one app. Its name is Filipino for "to set sail". I built it in collaboration with PureMatrix Data Solutions and ran the whole development and deployment process myself, from the first build to the App Store launch. Here's what went into it.

    One trip, one page

    Every trip in Layag gets a single page with tabs: Itinerary, Flights, Visa, Stays, Activities, Rules, Budget and Help & Support. The AI itinerary builds a day-by-day plan with photos and a map for each stop, and the days can be reordered. If you'd rather talk it through, the Smart Agent lets you plan by chat and then save the conversation as a trip.

    The lesson: an AI feature is only as good as where its output lands. A chat reply you can't edit or reuse is a demo. A trip you can reorder, budget against and share is a product.

    Free where safety matters, paid where AI costs money

    Every AI request has a real cost, so a paywall was always going to exist. The question was where to put it. We drew the line like this:

    • Free: visa checks for 195+ countries, trip alerts, buying creator guides and reading your trips.
    • Layag Pro (monthly or yearly, with a 7-day free trial): AI itineraries, Smart Agent, Hidden Gems, flight and stay search, trip sharing and Creator Studio.

    Nobody should have to subscribe to find out whether they need a visa or how to reach their embassy. Purchases go through Apple's billing, and RevenueCat confirms each one, so the app and the backend agree on what someone has paid for.

    Travel SOS has to work with no signal

    The moment you need emergency numbers is often the moment you have no data. Travel SOS shows the police, ambulance and fire numbers for the country you're in, plus the nearest embassy for your passport, and saves them for offline use. It's a small feature with a big rule: it can't depend on the network.

    Location sharing that always ends

    Live location is shared for 15 minutes, 1 hour or 8 hours, and the other person can view it in any browser without installing anything. There's no "until I turn it off" option. Forgetting to stop sharing is how people get tracked by accident, so every share expires on its own.

    AI with a clear data story

    Trip messages and details are sent to Google Gemini through Vertex AI to generate plans. The privacy policy says so in plain words, and it also says that trip content isn't used to train third-party foundation models. Analytics and crash reporting stay off until the user opts in, there are no ad-network SDKs, and every third-party service the app uses is listed by name.

    App Review increasingly asks where AI output comes from and where user data goes. Answering that in the privacy policy before submission is much easier than answering it in a rejection thread.

    A marketplace needs safety on day one

    Layag also has a human layer: creators build and sell travel guides in Creator Studio, and travellers get a free Day 1 preview before buying. A guide you buy is yours to keep. As soon as strangers can publish content, you need reporting and blocking, so both are one tap, and people can browse guides without creating an account.

    What the stack looks like

    • Firebase: Auth (email, Google, Apple), Firestore, Storage, Cloud Functions, Messaging, App Check, and opt-in Analytics and Crashlytics
    • Google Gemini via Vertex AI for itineraries and the Smart Agent
    • Google Maps and Places, Travelpayouts for flight fares and OpenWeatherMap for weather alerts
    • RevenueCat for subscriptions and guide purchases
    • Siri Shortcuts on iOS ("Plan a trip with Layag")

    If you're building an AI app

    Decide early which features must be free, which must work offline and where user data goes, and put those answers in the product and the privacy policy before you write the paywall. The AI is the headline, but trust is what keeps people using it.

    Layag is available on the App Store, with Android coming soon. Read the full Layag case study, or if you're planning an AI app and want help getting it to the stores, here's how I can help.

    Share this article

    You Might Also Like

    Built with an AI App Builder? What to Check Before You Submit to the Stores

    Built with an AI App Builder? What to Check Before You Submit to the Stores

    AI app builders get you a working app fast, but they don't know the store rules. The checklist I used to audit CircleCam, a Rork-built social app, for App Store, Google Play and GDPR before submission.

    Read More →
    Scheduling Class Reminders in Flutter Around iOS's 64-Notification Limit

    Scheduling Class Reminders in Flutter Around iOS's 64-Notification Limit

    How ClassPing schedules a whole semester of class reminders offline with flutter_local_notifications: a 60-reminder rolling window under iOS's 64 cap, stable notification IDs, a serial scheduling queue, inexact Android alarms and reboot handling.

    Read More →
    PDF Perfect, Nine Months On: What Shipped, What Broke and What I Got Wrong

    PDF Perfect, Nine Months On: What Shipped, What Broke and What I Got Wrong

    An honest update on PDF Perfect, my free browser-based PDF toolkit: from three tools to six, compression moved into a Web Worker with a target-size mode, two production-only build bugs, and the privacy and marketing claims I had to take back.

    Read More →