Skip to content

Guides

How to Use Kysely with Capacitor and SQLite

Working with raw SQL in a Capacitor app gets messy fast — queries are just strings, results are untyped, and refactoring a column name means hunting through your entire codebase. Kysely solves this with a type-safe query builder that catches errors at compile time while keeping you close to SQL. In this guide, you'll learn how to set up Kysely with the SQLite plugin using the new @capawesome/capacitor-sqlite-kysely dialect.

How to Use Drizzle ORM with Capacitor and SQLite

If you're building a Capacitor app that needs a local database, you've probably dealt with writing raw SQL strings and mapping results manually. It works, but it's error-prone and doesn't scale well. Drizzle ORM offers a better approach: a lightweight, type-safe ORM that lets you define your schema in TypeScript and write queries that feel like SQL — with full autocompletion and compile-time checks. In this guide, you'll learn how to set up Drizzle ORM with the SQLite plugin using the new @capawesome/capacitor-sqlite-drizzle adapter.

Tips for Setting Up In-App Purchases with Capacitor

Setting up in-app purchases in a mobile app involves more than just writing code. Between Apple's agreements, Google's compliance checks, and platform-specific gotchas, there's a lot of ground to cover before you can charge your first customer. Here are some practical tips to help you get started with in-app purchases on both iOS and Android using the Purchases plugin.

CI/CD for Capacitor Apps: Choosing the Right Approach

If you're still building and deploying your Capacitor app by hand, you're wasting time and shipping slower than you need to. CI/CD automates the repetitive parts — building, signing, and deploying — so you can focus on writing code. But setting it up for mobile apps isn't as straightforward as for web apps. Native builds, code signing, and app store submissions add layers of complexity that catch many teams off guard.

In this post, we'll walk through what a CI/CD pipeline for Capacitor apps looks like, how to set one up yourself, and when it makes sense to use a managed solution like Capawesome Cloud instead.

How to Fix Capacitor Plugin Build Errors with AGP 9

If you recently upgraded to Android Gradle Plugin (AGP) 9 in your Capacitor project, you may have noticed that your Android build suddenly fails. AGP 9 introduces a breaking change that affects Capacitor core and many Capacitor plugins. The good news: fixes are already available.

How to Sign In with Auth0 Using Capacitor

Auth0 is one of the most popular identity platforms, offering authentication and authorization as a service. If you're building a cross-platform app with Capacitor, the OAuth plugin makes it easy to integrate Auth0 using the Authorization Code flow with PKCE. This guide walks you through application setup, sign-in, token management, and fetching user profile information.

How to Sign In with Google Using Capacitor

Google Sign-In is one of the most widely used authentication methods in mobile and web apps. It lets users sign in with their existing Google account in just a few taps, avoiding the need to create and remember yet another password. Whether you're building with Ionic or another framework, the Google Sign-In plugin provides a simple way to integrate Google Sign-In into your Capacitor app on Android, iOS, and web. This guide walks you through creating the required credentials, configuring the plugin for each platform, and implementing the sign-in flow.

Key-Value Storage Made Simple with the SQLite Plugin

Storing simple key-value data in Ionic and Capacitor apps often means choosing between unreliable browser storage or writing boilerplate SQL. The SQLite plugin now includes SqliteKeyValueStore — a built-in class that gives you a familiar get/set API backed by a real SQLite database. No SQL queries, no schema setup, no risk of data loss from WebView storage clearing. In this guide, you'll learn how to use SqliteKeyValueStore in your Capacitor apps and when to choose it over the Secure Preferences plugin.

How to Sign In with Azure Entra ID Using Capacitor

Many enterprise applications rely on Microsoft Entra ID (formerly Azure Active Directory) for identity and access management. If you're building a cross-platform app with Capacitor, the OAuth plugin makes it straightforward to integrate Entra ID authentication using the Authorization Code flow with PKCE. This guide walks you through app registration, sign-in, token management, and accessing the Microsoft Graph API.