Install Sahha SDK for Ionic Capacitor

Learn how to integrate the Sahha SDK into your Ionic Capacitor project.


Step 1) Install NPM package

Install the sahha-capacitor NPM Package inside the root folder of your Ionic Capacitor project.

View Sahha Capacitor SDK on NPM

shell-session
$ npm i sahha-capacitor

Step 2) Setup iOS Project

Follow these additional steps to install the Sahha SDK in your iOS project.

Install CocoaPods

You will need to install CocoaPods before you can install the Sahha SDK to your iOS project.

Visit Cocoapods to learn how to install CocoaPods.

Install Sahha Pod

Run pod install from the Terminal app in your iOS project root folder.

shell-session
$ pod install

Step 3) Import Sahha Module

Import the Sahha module into any files inside your Ionic Capacitor project that use the SDK.

javascript
import { Sahha } from 'sahha-capacitor';

Next Steps

Continue to Step 3.) Configure Settings to configure the Sahha SDK.

Previous
Expo