- Navigate to
ios-library/SwiftSample
and remove the.sample
file extension from theAirshipConfig.plist.sample
file. - Open the
AirshipConfig.plist
file and add your development appkey underdevelopmentAppKey
and your development appsecret underdevelopmentAppSecret
. If you have production credentials, place your production appkey underproductionAppKey
and your production appsecret underproductionAppSecret
- Open
SwiftSample.xcodeproj
and update the bundle identifier of the SwiftSample project to match the bundle identifier of your provisioned application. - Run the SwiftSample target and enable push using the
Enable Push
button on the home screen, or thePush Enabled
switch on the settings screen.
- Push notifications will not function in the simulator.
- Setup instructions for Cocoapods and Carthage are available in the ios-library README.
- Bundle identifiers added to the sample must correspond to a provisioned application in the Apple developer portal and have a valid Universal push certificate.