
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
capacitor-chottulink-sdk
Advanced tools
ChottuLink is your all-in-one solution for creating, managing, and tracking dynamic links across platforms. Boost your marketing campaigns with smart deep linking and comprehensive analytics.
ChottuLink is your all-in-one solution for creating, managing, and tracking dynamic links across platforms. Boost your marketing campaigns with smart deep linking and comprehensive analytics.
npm install capacitor-chottulink-sdk
npx cap sync
Before installing this plugin, ensure you have the following set up:
Before using any ChottuLink features, you must initialize the SDK with your API key:
import { ChottuLinkIonicSDK } from 'capacitor-chottulink-sdk';
await ChottuLinkIonicSDK.initialize({
apiKey: 'your-api-key-here'
});
Create dynamic links with customizable parameters:
import { ChottuLinkIonicSDK, CLDynamicLinkBehaviour } from 'capacitor-chottulink-sdk';
const result = await ChottuLinkIonicSDK.createDynamicLink({
builder: {
destinationURL: 'https://example.com/product/123',
domain: 'your-domain.com',
linkName: 'product-link',
iosBehaviour: CLDynamicLinkBehaviour.app,
androidBehaviour: CLDynamicLinkBehaviour.app,
socialTitle: 'Check out this product!',
socialDescription: 'Amazing product description',
socialImageUrl: 'https://example.com/image.jpg',
utmSource: 'email',
utmMedium: 'campaign',
utmCampaign: 'summer-sale'
}
});
console.log('Short URL:', result.shortURL);
// Listen for successful deep link resolution
ChottuLinkIonicSDK.addListener('onDeepLinkResolved', (data) => {
console.log('Deep link resolved:', data.url);
console.log('Metadata:', data.metadata);
// Navigate to the appropriate screen in your app
});
// Listen for failed deep link resolution
ChottuLinkIonicSDK.addListener('onDeepLinkFailed', (data) => {
console.error('Deep link failed:', data.error);
console.log('Original URL:', data.originalURL);
});
const resolved = await ChottuLinkIonicSDK.getAppLinkDataFromUrl({
shortURL: 'https://your-domain.com/abc123'
});
if (resolved) {
console.log('Original link:', resolved.link);
console.log('Short link:', resolved.shortLink);
console.log('Short link Raw:', resolved.shortLinkRaw);
console.log('isDeferred:', resolved.isDeferred);
}
⚠️ Note: The plugin methods are not fully implemented on web. They will throw unimplemented errors. This plugin is primarily designed for native mobile platforms.
initialize(...)createDynamicLink(...)getAppLinkDataFromUrl(...)addListener('onDeepLinkResolved', ...)addListener('onDeepLinkFailed', ...)initialize(options: { apiKey: string; }) => Promise<void>
| Param | Type |
|---|---|
options | { apiKey: string; } |
createDynamicLink(options: { builder: CLDynamicLinkBuilder; }) => Promise<{ shortURL: string | null; }>
| Param | Type |
|---|---|
options | { builder: CLDynamicLinkBuilder; } |
Returns: Promise<{ shortURL: string | null; }>
getAppLinkDataFromUrl(options: { shortURL: string; }) => Promise<CLResolvedLink | null>
| Param | Type |
|---|---|
options | { shortURL: string; } |
Returns: Promise<CLResolvedLink | null>
addListener(eventName: 'onDeepLinkResolved', listenerFunc: (data: { url: string; metadata?: Record<string, any>; }) => void) => Promise<PluginListenerHandle>
| Param | Type |
|---|---|
eventName | 'onDeepLinkResolved' |
listenerFunc | (data: { url: string; metadata?: Record<string, any>; }) => void |
Returns: Promise<PluginListenerHandle>
addListener(eventName: 'onDeepLinkFailed', listenerFunc: (data: { error: string; originalURL?: string; }) => void) => Promise<PluginListenerHandle>
| Param | Type |
|---|---|
eventName | 'onDeepLinkFailed' |
listenerFunc | (data: { error: string; originalURL?: string; }) => void |
Returns: Promise<PluginListenerHandle>
| Prop | Type |
|---|---|
destinationURL | string |
domain | string |
linkName | string |
androidBehaviour | CLDynamicLinkBehaviour |
iosBehaviour | CLDynamicLinkBehaviour |
selectedPath | string |
socialTitle | string |
socialDescription | string |
socialImageUrl | string |
utmSource | string |
utmMedium | string |
utmCampaign | string |
utmContent | string |
utmTerm | string |
| Prop | Type |
|---|---|
isDeferred | boolean | null |
link | string | null |
shortLink | string | null |
shortLinkRaw | string | null |
| Prop | Type |
|---|---|
remove | () => Promise<void> |
Construct a type with a set of properties K of type T
{
[P in K]: T;
}
| Members | Value |
|---|---|
browser | 1 |
app | 2 |
Here's a complete example of how to use the plugin in your Capacitor app:
import { ChottuLinkIonicSDK, CLDynamicLinkBehaviour } from 'capacitor-chottulink-sdk';
// Initialize on app startup
async function initChottuLink() {
try {
await ChottuLinkIonicSDK.initialize({
apiKey: 'your-api-key-here'
});
console.log('ChottuLink SDK initialized');
} catch (error) {
console.error('Failed to initialize ChottuLink:', error);
}
}
// Set up deep link listeners
function setupDeepLinkListeners() {
ChottuLinkIonicSDK.addListener('onDeepLinkResolved', (data) => {
console.log('Deep link resolved:', data.url);
// Navigate to the appropriate screen based on data.url
// Example: router.push(parseUrl(data.url));
});
ChottuLinkIonicSDK.addListener('onDeepLinkFailed', (data) => {
console.error('Deep link failed:', data.error);
// Handle error appropriately
});
}
// Create a dynamic link
async function shareProduct(productId: string) {
try {
const result = await ChottuLinkIonicSDK.createDynamicLink({
builder: {
destinationURL: `https://yourapp.com/products/${productId}`,
domain: 'your-domain.com',
linkName: `product-${productId}`,
iosBehaviour: CLDynamicLinkBehaviour.app,
androidBehaviour: CLDynamicLinkBehaviour.app,
socialTitle: 'Check out this amazing product!',
socialDescription: 'You won\'t believe what this product can do.',
socialImageUrl: `https://yourapp.com/images/products/${productId}.jpg`,
utmSource: 'app',
utmMedium: 'share',
utmCampaign: 'product-sharing'
}
});
if (result.shortURL) {
// Share the short URL
await Share.share({ url: result.shortURL });
}
} catch (error) {
console.error('Failed to create dynamic link:', error);
}
}
// Initialize on app load
initChottuLink();
setupDeepLinkListeners();
For more detailed troubleshooting steps and testing procedures, visit: https://docs.chottulink.com/troubleshooting
FAQs
ChottuLink is your all-in-one solution for creating, managing, and tracking dynamic links across platforms. Boost your marketing campaigns with smart deep linking and comprehensive analytics.
The npm package capacitor-chottulink-sdk receives a total of 20 weekly downloads. As such, capacitor-chottulink-sdk popularity was classified as not popular.
We found that capacitor-chottulink-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.