This repository contains sample applications demonstrating how to integrate Airship's iOS SDK across different platforms and languages.
- Platform: iOS, visionOS, ipadOS
- Language: Swift
- Features: Push notifications, Message Center, Preference Center, Live Activities, Deep linking
- Architecture: SwiftUI with modern iOS patterns
- Platform: iOS
- Language: Objective-C
- Features: Push notifications, Message Center, Preference Center, Deep linking
- Architecture: UIKit with traditional iOS patterns
- Platform: tvOS
- Language: Swift
- Features: Push notifications, Preference Center
- Architecture: SwiftUI optimized for Apple TV
- Xcode 26.0 or later
- Valid Airship account with app credentials
-
Clone the repository
git clone <repository-url> cd apple-sample-apps
-
Open the workspace
open AirshipSamples.xcworkspace
-
Configure your app credentials
Depending on the sample app, update the credentials in:
- Airship Sample:
Airship Sample/Airship Sample/AirshipInitializer.swift - Airship Sample ObjC:
Airship Sample ObjC/Airship Sample ObjC/AirshipInitializer.m - Airship Sample tvOS:
Airship Sample tvOS/Airship Sample tvOS/AirshipInitializer.swift
- Airship Sample:
-
Verify Bundle Identifier
- Ensure your app's bundle identifier matches the one configured in your Airship dashboard
- Update the bundle identifier in Xcode project settings if needed
-
Build and run
- Select your target device/simulator
- Build and run the sample app
- App Key: Found in your Airship dashboard under Project Settings
- App Secret: Found in your Airship dashboard under Project Settings
- Bundle Identifier: Must match the bundle ID configured in your Airship app settings
- Log into your Airship dashboard
- Navigate to your project
- Go to Settings → Project Details
- Copy your App Key and App Secret
- Verify your Bundle Identifier matches your Xcode project
"Airship failed to initialize (takeOff)" Error
- ✅ Verify your App Key and App Secret are correct
- ✅ Rebuild and run the app after updating credentials
Push Notifications Not Working
- ✅ Verify push notification capabilities are enabled in Xcode
- ✅ Check that your provisioning profile includes push notifications
- ✅ Ensure your bundle identifier matches your Airship app configuration
- ✅ Check your internet connection
- ✅ Ensure the device is registered for remote notifications
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request