View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Videos

Open Menu Close Menu
  • Collections
  • All Videos
  • About

Back to WWDC26

  • About
  • Summary
  • Code
  • Explore Retention Messaging in App Store Connect

    Discover how you can use the power of Retention Messaging to reach subscribers before they cancel. Learn how to configure this feature in App Store Connect and add subscription offers, as well as leverage the Retention Messaging API to deliver real-time messaging and alternative options that encourage people to stay subscribed to your app or game.

    Chapters

    • 0:00 - Introduction
    • 2:38 - Retention Messaging in App Store Connect
    • 6:38 - Real-time Retention Messaging
    • 11:46 - Retention Messaging comparison

    Resources

    • Interest form: Real-time Retention Messaging
    • Supporting monthly subscriptions with a 12-month commitment
    • Retention Messaging API
      • HD Video
      • SD Video

    Related Videos

    WWDC26

    • Enhance your presence on the App Store
    • What’s new in Apple In-App Purchase
  • Search this video…
    • 6:08 - Signed transaction updates

      // Signed transaction updates
      
      {
          "bundleId": "com.example.app",
          "productId": "Yoga_summer_2026",
          "type": "Auto-Renewable Subscription",
          "transactionReason": "RENEWAL",
          "inAppOwnershipType": "PURCHASED",
          "quantity": 1,
          "price": 0,
          "currency": "USD",
          "offerType": 5, // retention offer
          "offerIdentifier": "Yoga_2026_cancel_free_3m",
          "offerDiscountType": "FREE_TRIAL",
          "offerPeriod": "P3M", 
          "transactionId": "1000098916194"
          "originalTransactionId": "1000011859217",
          "appAccountToken": "23a91ca7-06f3-425f-bff6-820904b510a9",
          ...
      }
    • 7:50 - Retention Messaging API

      // Retention Messaging API: https://api.storekit.apple.com/inApps/v1/messaging
      
      // URL configuration
      PUT /realtime/url
      GET /realtime/url
      DELETE /realtime/url
      
      // Message configuration
      PUT /message/{messageIdentifier}
      DELETE /message/{messageIdentifier}
      GET /message/list
      PUT /default/{productId}/{locale}
      DELETE /default/{productId}/{locale}
      GET /default/{productId}/{locale}
      
      // Image configuration
      PUT /image/{imageIdentifier}
      DELETE /image/{imageIdentifier}
      GET /image/list
      
      // Performance testing - Sandbox only
      POST /performanceTest // initiate test
      GET /performanceTest/result/{requestId} // get results
    • 8:34 - Real-time requests

      // Real-time requests
      
      // Request from the App Store
      {
          "originalTransactionId": "123456789",
          "appAppleId": 6745974591,
          "productId": "Yoga_summer_2026",
          "userLocale": "en-US",
          "requestIdentifier": "c03248af-dd76-4e9b-9c1e-4489cd19a768",
          "environment": "Production", // or Sandbox
          "signedDate": 1780920000000
      }
    • 8:57 - Real-time requests with message

      // Real-time requests
      
      // Request from the App Store
      {
          "originalTransactionId": "123456789",
          "appAppleId": 6745974591,
          "productId": "Yoga_summer_2026",
          "userLocale": "en-US",
          "requestIdentifier": 
              "c03248af-dd76-4e9b-9c1e-4489cd19a768",
          "environment": "Production", // or Sandbox
          "signedDate": 1780920000000
      }
      
      // Your response
      {
          "message": {
              "messageIdentifier": 
                  "551ee7c0-c097-418e-9dd5-2a98533a7390"
          }
      }
    • 9:11 - Real-time request with alternate product

      // Real-time requests
      
      // Request from the App Store
      {
          "originalTransactionId": "123456789",
          "appAppleId": 6745974591,
          "productId": "Yoga_summer_2026",
          "userLocale": "en-US",
          "requestIdentifier": 
              "c03248af-dd76-4e9b-9c1e-4489cd19a768",
          "environment": "Production", // or Sandbox
          "signedDate": 1780920000000
      }
      
      // Your response
      {
          "alternateProduct": {
              "messageIdentifier":
                  "ed7f25fc-5741-46a3-8502-062e0fb8afd0",
              "productId": "Yoga_summer_2026_annual"
          }
      }
    • 9:24 - Real-time request with promotional offer

      // Real-time requests
      
      // Request from the App Store
      {
          "originalTransactionId": "123456789",
          "appAppleId": 6745974591,
          "productId": "Yoga_summer_2026",
          "userLocale": "en-US",
          "requestIdentifier": 
        "c03248af-dd76-4e9b-9c1e-4489cd19a768",
          "environment": "Production", // or Sandbox
          "signedDate": 1780920000000
      }
      
      // Your response
      {
          "promotionalOffer": {
              "messageIdentifier": 
                  "80135e2b-ae15-4ec4-8c5c-9ecc8045c0dc",
              "promotionalOfferSignatureV2": "eyJhbGciOiJFUzI…"
          }
      }
    • 0:00 - Introduction
    • Retention Messaging allows you to reach your subscribers when they are about to cancel you subscription, offering you an opportunity to save your subscribers at this critical moment.

    • 2:38 - Retention Messaging in App Store Connect
    • Retention Messaging in App Store Connect allows you to set up retention messages that are automatically delivered to your customers when they are about to cancel a subscription. You can use Asset Library and retention offers to add value to your retention messages.

    • 6:38 - Real-time Retention Messaging
    • Use real-time Retention Messaging and the Retention Messaging API to reach out to your customers in real time when they are about to cancel their subscriptions. The App Store will make a server-to-server call to your configured endpoint to get your real-time message preference.

    • 11:46 - Retention Messaging comparison
    • Compare Retention Messaging in App Store Connect and real-time Retention Messaging to determine which is the right fit for your app.

Developer Footer

  • Videos
  • WWDC26
  • Explore Retention Messaging in App Store Connect
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines