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
 

Vidéos

Ouvrir le menu Fermer le menu
  • Collections
  • Toutes les vidéos
  • À propos

Plus de vidéos

  • À propos
  • Code
  • What's new in App Clips

    Explore the latest updates to App Clips! Discover how we've made your App Clip even easier to build with improvements to the size limit as well as CloudKit and keychain usage. We'll also show you how to use our validation tool to verify your App Clip and automate workflows for your advanced App Clip experiences using App Store Connect.

    Ressources

    • App Clips
      • Vidéo HD
      • Vidéo SD

    Vidéos connexes

    WWDC21

    • Build light and fast App Clips
    • What's new in App Clips

    WWDC20

    • Design great App Clips
    • What's new in App Store Connect
  • Rechercher dans cette vidéo…
    • 4:41 - Read your CloudKit public database from your App Clip

      // Read your CloudKit public database from your App Clip
      
      let container = CKContainer.default()
      let publicDatabase = container.publicCloudDatabase
      let record = try await publicDatabase.record(for:
          CKRecord.ID(recordName: "A928D582-9BB6-E9C5-7881-E4EAF615E0CD"))
      
      if let title = record["Title"] as? String,
          let description = record["Description"] as? String {
              print(“Fetched a food item from CloudKit: \(title) \(description)")
      }
    • 6:03 - Read and Write from your App Clip's keychain

      // Write authentication token to App Clip keychain
      
      let addSecretsQuery: [String: Any] = [
          kSecClass as String: kSecClassGenericPassword,
          kSecValueData as String: "smoothie-secret".data(using: .utf8),
          kSecAttrLabel as String: "foodsample-appclip"
      ]
      SecItemAdd(addSecretsQuery as CFDictionary, nil)
      
      // Read authentication token from app or App Clip
      
      var readSecretsQuery: [String: Any] = [
          kSecClass as String: kSecClassGenericPassword,
          kSecReturnAttributes as String: true,
          kSecAttrLabel as String: "foodsample-appclip",
          kSecReturnData as String: true
      ]
      var secretsCopy: AnyObject?
      SecItemCopyMatching(readSecretsQuery as CFDictionary, &secretsCopy)
    • 7:10 - Get your App Clip resource ID

      # Get the App Clip resource ID
      
      GET /v1/apps/1234567890/appClips?filter[bundleId]=com.example.foodsample.Clip
      
      # Response
      
      {
          "data": {
              "attributes": {
                  "bundleId": "com.example.foodsample.Clip"
              },
              "id": "726ad1bb-3e1b-40eb-a986-d8a9897e4f1e"
          }
      }
    • 7:25 - Upload a header image for the advanced App Clip experience

      # Upload a header image for the advanced App Clip experience
      
      POST /v1/appClipAdvancedExperienceImages
      {
          "data": {
              "type": "appClipAdvancedExperienceImages",
              "attributes": {
                  "fileName": "Hero_image_US.png",
                  "fileSize": 43500
              }
          }
      }
      
      # Response
      
      {
          "data": {
              "attributes": "..."
              "id": "91c52741-832b-48a2-8935-1797655edbe7"
          }
      }
    • 7:34 - Create the advanced App Clip experience

      # Create advanced App Clip experience
      
      POST /v1/appClipAdvancedExperiences
      {
          "data": {
              "type": "appClipAdvancedExperiences",
              "attributes": {
                  "action": “OPEN",
                  "businessCategory": "FOOD_AND_DRINK",
                  "defaultLanguage": "EN",
                  "isPoweredBy": true,
                  "link": "https://fruta.example.com/restauraunt/simply_salad",
                  "place": {
                      "names": [ "Caffe Macs" ],
                      "mapAction": "RESTAURANT_ORDER_FOOD",
                      "displayPoint": {
                          "coordinates": { "latitude": 37.33611, "longitude": -122.00731 },
                          "source": "CALCULATED"
                      }
                  }
              },
              "relationships": {
                  "appClip": {
                      "data": {
                          "type": "appClip",
                          "id": "726ad1bb-3e1b-40eb-a986-d8a9897e4f1e"
                      }
                  },
                  "headerImage": {
                      "data": {
                          "type": "appClipAdvancedExperienceImages",
                          "id": "91c52741-832b-48a2-8935-1797655edbe7"
                      }
                  }
              },
              "included": {
                  "type": "appClipAdvancedExperienceLocalizations",
                  "attributes": {
                      "language": "EN",
                      "subtitle": "Fresh salad every day",
                      "title": "Simply Salad"
                  }
              }
          }
      }

Developer Footer

  • Vidéos
  • WWDC22
  • What's new in App Clips
  • 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