Füge In-App-Käufe zu deiner Capacitor-App hinzu
Integriere In-App-Käufe auf iOS und Android mit dem Capacitor SDK von Adapty. Verarbeite Belege, verfolge den Abo-Status und spare dir den Aufbau eines Backends. Alle Funktionen in einer einzigen Integration.
import { adapty } from '@adapty/capacitor';
try {
await adapty.activate({
apiKey: 'YOUR_PUBLIC_SDK_KEY',
params: {
logLevel: 'verbose',
__ignoreActivationOnFastRefresh: true,
}
});
console.log('Adapty activated successfully!');
} catch (error) {
console.error('Failed to activate Adapty SDK:', error);
}Du musst kein Backend für Capacitor-In-App-Käufe erstellen
Das Adapty SDK übernimmt alles, was normalerweise auf dem Server läuft: Belegvalidierung, Abo-Status, Verlängerungen, Testphasen und Rückerstattungen. Du verbindest es nur einmal und erhältst ein funktionierendes Capacitor-In-App-Purchase-Setup für iOS und Android.
Demo planenWarum das Adapty SDK wählen?
Verfolge den Abo-Status plattformübergreifend
Du weißt jederzeit, ob der Nutzer ein aktives Abo auf iOS oder Android hat.
Belege im Backend validieren
Du musst keine eigene Validierung aufbauen, da Adapty dies übernimmt.
Alle Abo-Zustände verwalten
Kostenlose Testphasen, Upgrades, Promo-Angebote, Familienfreigabe, Verlängerungen und mehr.
Skaliere auf einer Enterprise-Grade-Basis
Wir veröffentlichen regelmäßig Updates, halten das SDK stabil und arbeiten mit einer SLA von über 99,99 %.
Plattformen konfigurieren
Adapty SDK installieren
await adapty.activate( 'PUBLIC_SDK_KEY', { customerUserId: 'YOUR_USER_ID', });
Kaufereignisse verarbeiten
Einfache Integration für Capacitor
Richte das Adapty SDK in wenigen Stunden ein und beginne mit In-App-Käufen auf iOS und Android. Brauchst du Hilfe? Sieh dir unser vollständiges Capacitor-IAP-Tutorial an.
Nutze 5 SDK-Methoden, um Capacitor-IAPs zu verwalten
import { adapty } from '@adapty/capacitor';
try {
const result = await adapty.makePurchase({ product });
if (result.type === 'success') {
const isSubscribed = result.profile?.accessLevels['YOUR_ACCESS_LEVEL']?.isActive;
if (isSubscribed) {
// Grant access to the paid features
console.log('User is now subscribed!');
}
} else if (result.type === 'user_cancelled') {
console.log('Purchase cancelled by user');
} else if (result.type === 'pending') {
console.log('Purchase is pending');
}
} catch (error) {
console.error('Purchase failed:', error);
}import { adapty } from '@adapty/capacitor';
try {
const profile = await adapty.restorePurchases();
const isSubscribed = profile.accessLevels['YOUR_ACCESS_LEVEL']?.isActive;
if (isSubscribed) {
// Restore access to paid features
console.log('Access restored successfully!');
} else {
console.log('No active subscriptions found');
}
} catch (error) {
console.error('Failed to restore purchases:', error);
}
import { adapty } from '@adapty/capacitor';
try {
await adapty.identify({ customerUserId: "YOUR_USER_ID" });
// successfully identified
} catch (error) {
// handle the error
}
import { adapty } from '@adapty/capacitor';
const params = {
email: '[email protected]',
phoneNumber: '+18888888888',
firstName: 'John',
lastName: 'Appleseed',
gender: 'other',
birthday: new Date().toISOString(),
};
try {
await adapty.updateProfile(params);
console.log('Profile updated successfully');
} catch (error) {
console.error('Failed to update profile:', error);
}
import { adapty } from '@adapty/capacitor';
try {
await adapty.updateProfile({
codableCustomAttributes: {
key_1: 'value_1',
key_2: 2,
key_3: null, // to remove keys, pass null as their values
},
});
console.log('Custom attributes updated successfully');
} catch (error) {
console.error('Failed to update custom attributes:', error);
}
Adapty unterstützt Apps in jeder Phase – von Indie bis zu Top-Publishern
Alles, was du brauchst, um deine App zu skalieren — bereits im Capacitor SDK enthalten

Steigere Abo-Umsätze ohne App-Releases
Verwalte, segmentiere, lokalisiere und personalisiere Paywalls direkt im Browser.
App-Umsatz steigernRückerstattungen um 40 % senken
Vermeide Umsatzverluste durch Rückerstattungen – Adapty übermittelt automatisch Nutzungsdaten an Apple bei Erstattungsanfragen und reduziert diese.
Refund Saver einrichten

Kenne deine Abo-Zahlen jederzeit
Messe deine In-App-Ökonomie von Testphasen bis Rückerstattungen mit einem einsatzbereiten, Echtzeit-Abo-BI.
Abo-BI ansehenNo-Code-Paywall-Builder
Erstelle wunderschöne native Paywalls für iOS, Android, React Native, Flutter, FlutterFlow, KMP und Capacitor – ganz ohne Dev-Team.
Paywalls in Minuten erstellen







