3. XCode project configuration

XCode project configuration

  1. Adding the Notification Service Extension

  2. Adding Pushologies Library
    a. SPM
    b. CocoaPods

Adding the Notification Service Extension

Xcode File -> New -> Target and select "Notification Service Extension".

Enter a descriptive name such as MyAppNotificationServiceExtension.

Adding Pushologies Library

Swift Package Manager

https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app

URL for Pushologies SDK

https://bitbucket.org/pushologiesdev/pushologiessdk

12361236

Replacemaster with specific version of the SDK or leave it as master to always be on the most recent release.

Once the library has been resolved add it as a framework to both the MyApp and MyAppNotificationServiceExtension targets.

bCocoaPods

https://cocoapods.org

Add the Pushologies pod to your pod file for both target and update CocoaPods.


target 'MyAppName' do 

  pod 'Pushologies', '~> 1' 

end 

 

target 'MyAppNotificationServiceExtension' do 

  pod 'Pushologies', '~> 1' 

end 


What’s Next