OneSignal Help & Documentation

Welcome to the OneSignal New IA developer hub. You'll find comprehensive guides and documentation to help you start working with OneSignal New IA as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussions

Swift Package Manager Setup

1. Open your project in Xcode and navigate to the project's settings > Package Dependencies and press the + button.

2. If using Xcode 12+, enter Package URL: https://github.com/OneSignal/OneSignal-XCFramework

If using Xcode 11, enter Package URL: https://github.com/OneSignal/OneSignal-iOS-SDK

3. Set the Dependency Rule to: Range of Versions and 3.0.0 < 4.0.0
Click Add Package

4. On the next screen to choose your Package, select the OneSignal Package and Add Package to your main app Target.

5. Open your Main App Target and under "Frameworks, Libraries, and Embedded Content" ensure that the OneSignal SDK has been added.

6. Select the OneSignalNotificationServiceExtension (follow the setup guide if you have not created one yet) and under "Frameworks and Libraries" click the + button.

7. You should see the OneSignal Package under "OneSignalXCFramework Package".

Select it and press Add.

πŸ‘

Done! Continue with the rest of your setup guide.

Updated 4 days ago


Swift Package Manager Setup


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.