This beta release modularizes the iOS SDK to resolve issue #396.
Resolving the issue will require changes to how the SDK is imported, but this release in general should be a non breaking change.
For Swift Package Manager
- Use product
OneSignalfor your app target, and productOneSignalExtensionfor your Notification Service Extension target. - Then in your NotificationService class import
OneSignalExtensioninstead ofOneSignal
For Cocoapods
- In your Podfile make sure that your Notification Service Extension target is nested in your App target.
- Use pod
OneSignalorOneSignalXCFramework(they are now identical) for your app target, and subspecOneSignal/OneSignalExtensionorOneSignalXCFramework/OneSignalExtensionfor your Notification Service Extension target. - Then in your NotificationService class import
OneSignalExtensioninstead ofOneSignal - Lastly from the
Other Linker Flagsbuild setting in your Notification Service Extension target remove$(inherited)and-framework "OneSignal"