Swift Package Manager Setup
Pushwoosh visionOS SDK setup with Swift Package Manager (Xcode 15+)
Requirements
Create Pushwoosh account if you do not already have one.
A Mac with a new version of Xcode (Apple Silicon only).
An iOS Push Certificate. Details see: iOS configuration
Integration
Open your project in Xcode and Navigate to the project's settings -> Package Dependencies -> and press '+' button.
Enter the following Package URL:
https://github.com/Pushwoosh/PushwooshVision-XCFramework
Set up Dependency Rule
On the next screen, to choose your Package, select Pushwoosh Package and Add Package to your main app Target.
Open your Main App Target and under Frameworks, Libraries, and Embedded Content ensure that the Pushwoosh iOS SDK has been added.
Well done! You've just integrated the Pushwoosh visionOS SDK into your project.
Add Required Capabilities
Select the root project (1) and your main app target (2), then go to the Signing and Capabilities tab.
Press + Capability button (3) and select the Push Notifications capability.
Then, add the Background Modes capability and check the Remote notifications check box (4).
Well done! Xcode capabilities configuration completed.
Add the Pushwoosh Initialization code
Add the following code to your App
In your Info.plist, add a string type key
Pushwoosh_APPID
with your Pushwoosh Application Code as a value.
Replace XXXXX-XXXXX with your Pushwoosh APP ID
Well Done! Now you can send your first push notification!
Share your feedback with us
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us via this form.
Last updated