Release 3.11.0
This release modularizes the iOS SDK to resolve issue #396 regarding a warning when including OneSignal in your Notification Service Extension.
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
OneSignal
for your app target, and productOneSignalExtension
for your Notification Service Extension target. - Then in your NotificationService class import
OneSignalExtension
instead ofOneSignal
and change references ofOneSignal
in method bodies toOneSignalExtension
For Cocoapods
- In your Podfile make sure that your Notification Service Extension target is nested in your App target.
- Use pod
OneSignal
orOneSignalXCFramework
(they are now identical) for your app target, and subspecOneSignal/OneSignalExtension
orOneSignalXCFramework/OneSignalExtension
for your Notification Service Extension target. - Then in your NotificationService class import
OneSignalExtension
instead ofOneSignal
- Lastly from the
Other Linker Flags
build setting in your Notification Service Extension target remove$(inherited)
and-framework "OneSignal"