11

Capacitor Active Subscriptions Counter

A lightweight Capacitor plugin that counts the number of active subscriptions on the device's App Store or Google Play account, independent of which user is logged into your app.

A lightweight Capacitor plugin that counts the number of active subscriptions on the device's App Store or Google Play account, independent of which user is logged into your app.

This helps developers detect if a store account already has an active subscription without restoring purchases or transferring ownership — solving a key limitation in mobile subscription workflows.

Key Features

  • Read-only, count-only check for active subscriptions
  • No restore operations that could transfer ownership
  • Works independently of app user authentication
  • Prevents duplicate subscriptions on shared devices
  • Compatible with RevenueCat, StoreKit, and Play Billing integrations

Use Cases

  • Multi-account apps: Detect if the store account already has an active subscription before showing a paywall
  • RevenueCat or StoreKit/Play Billing integrations: Prevent unexpected ownership transfers caused by restorePurchases()
  • Shared devices: Avoid duplicate subscriptions when multiple users share the same Apple or Google account
  • Subscription diagnostics: Quickly check whether the device's store account has any active subscriptions for debugging or analytics

Tech Stack

  • Capacitor
  • TypeScript
  • Swift (iOS - StoreKit 2)
  • Java (Android - Google Play Billing Library 7.1.1)