iOS SDK · v0.2.0
Drop AppMate into your iOS app.
A tiny Swift Package — iOS 16+, zero external dependencies. Three calls and the cancel flow you built in the dashboard renders in an in-app Safari sheet, captures the reason, and hands the user back to your app via a typed deep-link callback.
1 · Install
// Package.swift
dependencies: [
.package(
url: "https://github.com/fil-technology/appmate-ios",
from: "0.2.0"
)
]2 · Use
import AppMate
// Once at app start
AppMate.configure(appSlug: "your-app-slug")
// When the user taps Cancel Subscription
AppMate.startCancelFlow(from: viewController) { action in
switch action {
case .returnToApp: break
case .manageSubscription: AppMate.openAppleSubscriptions()
case .openOffer(let id): presentOffer(id)
case .openPremium(let id): presentPaywall(id)
case .openFeature(let id): route(to: id)
case .openSupport(let topic, let message):
openSupport(topic: topic, message: message)
}
}Full reference + deep-link contract at docs.appmate.cloud/ios-sdk.