Family Sharing subscription in iOS app

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Family Sharing subscription in iOS app
Medium
~3-5 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Implementing Family Sharing for Subscriptions in iOS App

Family Sharing for subscriptions — feature App Store supports since iOS 14. Essence: one family member buys subscription, others (up to 5 people) get access automatically. For app this means additional transaction verification and access rights logic.

StoreKit 2 and Family Sharing Check

In StoreKit 2 transaction contains ownershipType field: .purchased (bought self) or .familyShared (received via Family Sharing). App must check both when verifying access.

for await verificationResult in Transaction.currentEntitlements {
  switch verificationResult {
  case .verified(let transaction):
    if transaction.productID == "com.app.premium" {
      switch transaction.ownershipType {
      case .purchased:
        grantAccess(source: .directPurchase)
      case .familyShared:
        grantAccess(source: .familySharing)
      @unknown default:
        break
      }
    }
  case .unverified:
    // don't trust transaction — log, deny access
    break
  }
}

For subscription to support Family Sharing, enable in App Store Connect for specific product. Done once in In-App Purchase settings: toggle "Family Sharing" → "On for all members". Once enabled, can't disable for already purchased subscriptions.

Where Problems Appear

Revoke on family exit. If user leaves Family Group, .familyShared transaction gets revocationDate. Transaction.currentEntitlements stops returning it automatically. But if app caches subscription status locally (UserDefaults, Keychain) without checking actual state — user continues premium after revoke.

Correct approach: listen to Transaction.updates constantly, not just at startup:

func listenForTransactionUpdates() {
  Task {
    for await verificationResult in Transaction.updates {
      if case .verified(let transaction) = verificationResult {
        if transaction.revocationDate != nil {
          revokeAccess()
        } else {
          await transaction.finish()
          grantAccess()
        }
      }
    }
  }
}

Testing. In Xcode Sandbox can't fully test Family Sharing without multiple test Apple IDs configured as family in App Store Connect → Users and Access → Sandbox Testers. Create test family there via Family Sharing in Sandbox — mandatory step, without it .familyShared transaction check impossible.

StoreKit 1 vs StoreKit 2. In old API (SKPaymentTransaction) ownershipType unavailable directly. For checking family-shared in SK1 must validate receipt on server — field in_app[].is_in_family_sharing. StoreKit 2 migration significantly simplifies logic.

Work Included

  • Family Sharing enable for products in App Store Connect
  • ownershipType check via StoreKit 2
  • Revoke handling on Family Group exit
  • Persistent Transaction.updates listener throughout app lifetime
  • Testing with Sandbox family
  • Documentation for server side (if backend validation)

Timeline

3–5 days including App Store Connect setup and Sandbox account testing. Cost calculated individually.