> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nativeline.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations FAQs

> Questions about Supabase, APIs, and external services

# Integrations FAQs

Questions about connecting external services to your apps.

***

> [accordion] Do I need a backend for my app?
>
> Not always. You need a backend if you want:
>
> * User accounts that sync across devices
> * Data shared between users
> * Cloud storage for files
> * Push notifications
> * Admin dashboards
>
> If your app only stores data locally on the device, you don't need a backend.
>
> See our [Do You Need a Backend?](https://docs.nativeline.ai/integrations/do-you-need-backend.md) guide.

> [accordion] What is Supabase?
>
> Supabase is a backend-as-a-service that provides:
>
> * **Database** — Store your data in the cloud
> * **Authentication** — User signup/login
> * **File Storage** — Upload images, files
> * **Realtime** — Live updates
>
> It's free to start and scales with your needs. Nativeline has built-in Supabase integration.

> [accordion] How do I connect Supabase?
>
> 1. Create an account at [supabase.com](https://supabase.com)
> 2. Create a new project
> 3. Copy your Project URL and anon key
> 4. In Nativeline's **Project Settings** tab → **Database** panel, paste your access token
> 5. Ask the AI to use Supabase for your features
>
> See our [Supabase Setup Guide](https://docs.nativeline.ai/integrations/supabase/setup.md) for step-by-step instructions.

> [accordion] Is Supabase free?
>
> Supabase has a generous free tier:
>
> * 500MB database
> * 1GB file storage
> * Unlimited API requests
> * 2 free projects
>
> This is enough for most personal apps and prototypes. Paid plans are available as you scale.

> [accordion] Can I use Firebase instead of Supabase?
>
> Nativeline is optimized for Supabase, which is recommended. Firebase can work but requires more manual configuration and the AI may be less helpful with Firebase-specific code.
>
> For the smoothest experience, use Supabase.

> [accordion] How do I add user authentication?
>
> With Supabase connected:
>
> 1. Enable the auth providers you want in Supabase dashboard
> 2. Ask the AI: "Add login and signup screens using Supabase"
> 3. The AI will create the necessary screens and logic
>
> Supported methods:
>
> * Email/password
> * Magic link (email)
> * Apple Sign In
> * Google Sign In
>
> See [Authentication Guide](https://docs.nativeline.ai/integrations/supabase/authentication.md) for details.

> [accordion] How do I store data in the cloud?
>
> With Supabase:
>
> 1. Create a table in Supabase dashboard
> 2. Tell the AI about your data structure
> 3. Ask the AI to save/fetch data from Supabase
>
> Example: "Store user recipes in Supabase with name, ingredients, and instructions fields."

> [accordion] Can I use my own server?
>
> Yes, though it requires more effort:
>
> * Tell the AI your API endpoints
> * Describe the expected request/response formats
> * The AI will generate networking code
>
> This is more advanced and may require some troubleshooting.

> [accordion] How do I integrate OpenAI/ChatGPT?
>
> 1. Get an API key from [platform.openai.com](https://platform.openai.com)
> 2. Tell the AI: "Add OpenAI integration with my key: sk-xxxxx"
> 3. Describe what you want: chatbot, content generator, etc.
>
> See our [OpenAI Integration Guide](https://docs.nativeline.ai/integrations/external-apis/openai.md) for full details.

> [accordion] Can I accept payments?
>
> Yes, using Stripe:
>
> 1. Create a Stripe account
> 2. Get your API keys
> 3. Ask the AI to add Stripe payment integration
>
> Note: For digital goods sold within the app, Apple requires using In-App Purchases (which take 15-30% commission).
>
> See our [Stripe Guide](https://docs.nativeline.ai/integrations/external-apis/stripe.md) for details.

> [accordion] How do I add maps to my app?
>
> Apple MapKit is built into iOS:
>
> * Ask the AI: "Add a map showing the user's location"
> * The AI will use Apple's native mapping framework
> * No API key needed
>
> See [Maps & Location](https://docs.nativeline.ai/integrations/external-apis/maps.md) for more features.

> [accordion] Can I add weather data?
>
> Yes! Two options:
>
> * **WeatherKit** (Apple's service) — Free tier, easy to use
> * **OpenWeather** — Requires API key, more customization
>
> Ask the AI: "Add weather display for the user's location using WeatherKit"
>
> See [Weather APIs](https://docs.nativeline.ai/integrations/external-apis/weather.md) for setup.

> [accordion] How do I add push notifications?
>
> Push notifications require:
>
> 1. Apple Developer account
> 2. Push notification capability enabled
> 3. A backend to send notifications (like Supabase or your own server)
>
> Ask the AI: "Set up push notifications for my app"
>
> Note: You can test with local notifications without a server.

> [accordion] Can I integrate any API?
>
> Yes, most REST APIs can be integrated:
>
> 1. Get API documentation from the provider
> 2. Get your API key/credentials
> 3. Tell the AI about the API endpoints you need
> 4. Describe what you want to do with the data
>
> The AI can generate networking code for most APIs.

> [accordion] My API calls aren't working. What's wrong?
>
> Common issues:
>
> * **Wrong URL** — Check the endpoint address
> * **Missing/wrong API key** — Verify credentials
> * **Network permissions** — iOS needs permission for network
> * **CORS** — Not usually an issue for native apps
> * **Rate limiting** — Slow down requests
>
> Check the build output for specific error messages.

> [accordion] How do I secure my API keys?
>
> Best practices:
>
> * Never commit keys to public repositories
> * For very sensitive APIs, route through your own server
> * Supabase Row Level Security protects user data
> * Use environment-specific keys (test vs production)
>
> For client-side apps, keys are exposed in the binary. For truly sensitive operations, use a server-side proxy.

***

## Related FAQs

> [card] [Building Apps](https://docs.nativeline.ai/faqs/building.md)
>
> Creating features

> [card] [Technical](https://docs.nativeline.ai/faqs/technical.md)
>
> Code questions

> [card] [Supabase Overview](https://docs.nativeline.ai/integrations/supabase/overview.md)
>
> Full Supabase docs

> [card] [External APIs](https://docs.nativeline.ai/integrations/external-apis/overview.md)
>
> Third-party integrations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.