Skip to main content
Plaud’s iOS and Android SDK can be used through a Capacitor plugin to turn any web app into a native mobile app!
capacitor app
The PlaudPlugin for Capacitor implements the basic methods for:
  1. Connecting to Plaud Devices
  2. Syncing audio files
  3. Transcription
For advanced usage of the Embedded SDK methods for use cases like WiFi fast transfers, we recommend adding more methods to this plugin or using the native Embedded iOS SDK or Embedded Android SDK directly

Video Walkthrough

How it works

Capacitor is a runtime to run web apps on native platforms. It works by wrapping your web app in a native shell, while Capacitor’s bridge sends data from your web app to native features like iOS APIs and BLE.
Capacitor plugins like the PlaudPlugin still use native swift code (built on top of the Embedded iOS SDK), but these plugins can be called and listened to using the Capacitor bridge.

Running the Demo App

The demo app is included in the Plaud Embedded plugin as reference for implementing the plugin in your own app and seeing how everything works.
1

Clone the Embedded Capacitor repo

2

Install dependencies and set up env vars

You can retrieve your environment credentials from the developer portal.
3

Build the app

For iOS, make sure to include your Apple developer credentials and certificate in XCode.
Then run on a physical device to test out the demo app with your Plaud devices.
demo app ss

Setting Up Plaud Embedded’s Capacitor Plugin

The Plaud Embedded Capacitor Skill has all of the context in these docs so your agent can immediately start wrapping your web app into a native iOS app with Plaud Embedded.

Step 1: Clone our Embedded Capacitor Repo

This repo includes:
  1. PlaudPlugin for Capacitor runtime
  2. Typescript interfaces and utility functions for the PlaudPlugin
  3. A sample app with a NextJS application using the Capacitor wrapper to work as a native iOS app
  4. Plaud Capacitor Wrapper Skill for agents to implement the Plaud Plugin and the Capacitor runtime wrapper

Step 2: Setup Capacitor

1
2
Then initialize Capacitor to setup your Capacitor configs
3
Lastly, add ios to your capacitor project and sync your web app

Step 3: Setup the PlaudPlugin

1

Copy plugin

For iOS

Copy the ios/PlaudPlugin/ framework and paste into the ios/ directory.

For Android

Copy android/app/libs/plaud-sdk.aar into your android/app/libs/ directory.Then, copy android/app/src/main/java/ai/plaud/pwademo/PlaudSdkPlugin.java into your app’s package directory, and change its package declaration to match your applicationId.
2

Setup the PlaudPlugin

For iOS

Copy the ios/App/App/MainViewController.swift into your ios/App/App directory to register the PlaudPlugin.Your ios/ directory should look like this:

For Android

In MainActivity.java that Capacitor generated, register the PlaudSdkPlugin class.
Your android/ directory should look like this:
3

Declare dependencies and permissions

For iOS

Link PlaudPlugin into the App target in Xcode.Open the project (npx cap open ios), then File -> Add Package Dependencies -> Add Local,Select ios/PlaudPlugin, and add the PlaudPlugin library product to the App target (the same way CapApp-SPM is already linked).
add swift package
Then, add the Bluetooth entitlement in ios/App/App/Info.plist

For Android

Declare all dependencies as the SDK does not come with a pom.xml file.
And add the matching versions to android/variables.gradle:
4

Point Capacitor to your web app

Lastly, point the native shell at your web app’s URL. Set this in the root capacitor.config.ts — that’s the source of truth.

Start Using Plaud Embedded in Your “Web App”

With Capacitor, your web app can stay a web app AND be a native iOS app!
demo app ss
The key is to have mobile specific logic execute when your users are using a native mobile platform:
Use plaud-sdk.ts as a convenient typescript interface for interacting with the native iOS Plaud SDK, and write logic for connecting to devices, exporting audio, and triggering transcriptions directly from your web app.
For the full list of relevant SDK methods for interacting with Plaud devices, see our iOS SDK reference and Android SDK reference.