Expand description
§tauri-plugin-revenuecat
Bridges the platform store (StoreKit 2 on iOS, Play Billing on Android)
into the revenuecat crate’s StoreBilling seam through a Tauri 2
mobile plugin. Desktop targets have no store — configure the SDK with a
test_ Test Store key there, or sell via web billing.
ⓘ
tauri::Builder::default()
.plugin(tauri_plugin_revenuecat::init())
.setup(|app| {
let billing = tauri_plugin_revenuecat::store_billing(app.handle())?;
let purchases = revenuecat::Purchases::configure(
revenuecat::Configuration::builder("goog_or_appl_KEY")
.store_billing(billing)
.build()?,
)?;
// manage(purchases) ...
Ok(())
})Status: the Rust side and native shims are code-complete; end-to-end purchases still need store accounts + devices to verify (see README).
Structs§
- Configure
Options - Options for [
configure], mirroring the essentials ofConfigurationBuilder.platform_flavoris set to Tauri automatically. - Login
Result - Plugin
Product - Plugin
Transaction - Session
Info
Functions§
- init
- Initializes the plugin; registers the native shim on mobile targets and is a no-op on desktop.
- store_
billing - Returns a
StoreBillingbacked by the platform store, forConfigurationBuilder::store_billing. Errors on desktop targets, where no store exists.