Skip to content

Commit

Permalink
Release 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Selligent committed Aug 31, 2023
1 parent c042a01 commit 919e869
Show file tree
Hide file tree
Showing 66 changed files with 6,920 additions and 1,180 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SDK Changelog

- __SDK 3.7.0__
- Add easier way to implement Notification Content and Notification Service extensions by subclassing `SMNotificationContentViewController` and `SMNotificationService`
- Add out of the box support for GIF in Rich Push (Image) when subclassing `SMNotificationContentViewController`
- Add GIF support for in-app messages and in-app contents of type `image`

- __SDK 3.6.1__
- Fix bug where in-app messages could not display, in some occasions, if the app was also running with multiple UIWIndow and/or multiple UIWindowScene
- Fix bug where SMEventSetInfo and SMEventSetInfoIAM could not be sent, in some occasions, if multiple events were also being sent and the app was in the background
Expand Down
2 changes: 2 additions & 0 deletions Documentation/MobileSDK Reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
- [SMManagerSettingIAC](classes/SMManagerSettingIAC.md)
- [SMManagerSettingIAM](classes/SMManagerSettingIAM.md)
- [SMNotificationAnnotationData](classes/SMNotificationAnnotationData.md)
- [SMNotificationContentViewController](classes/SMNotificationContentViewController.md)
- [SMNotificationMessage](classes/SMNotificationMessage.md)
- [SMNotificationService](classes/SMNotificationService.md)
- [SMSuccess](classes/SMSuccess.md)
- [SMUIViewController](classes/SMUIViewController.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SMNotificationContentViewController

## Properties
```swift
@objc var settings: SMManagerSetting? { get set }
```

>`SMManagerSetting` object that will be used when dealing with the extension behaviour
```swift
@objc var notificationButtonClicksShouldOpenTheApp: Bool { get set }
```

>Whether clicking in a notification button should (always) open the App first, default true.<br/>If set to false, actions that do not need the app to be opened to be executed, won't open it (i.e Open Url, Deeplink, Mail, SMS...)
## Methods
```swift
@objc override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
```

>Default initializer called by UNNotificationContentExtension
```swift
@objc override func viewDidLoad()
```

>Creates an specific implementation of the UNNotificationContentExtension view
```swift
@objc func didReceive(_ notification: UNNotification)
```

>Handles the UNNotificationContentExtension behaviour when a push is to be expanded<br/>
```swift
@objc func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void)
```

>Handles the UNNotificationContentExtension behaviour when clicking in a notification button<br/>
27 changes: 27 additions & 0 deletions Documentation/MobileSDK Reference/classes/SMNotificationService.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SMNotificationService

## Properties
```swift
@objc var settings: SMManagerSetting? { get set }
```

>`SMManagerSetting` object that will be used when dealing with the extension behaviour
```swift
@objc var encryptionEnabled: Bool { get set }
```

>Whether encryption is enabled or not (needs to be aligned with the Selligent backend configuration), default false
## Methods
```swift
@objc override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping(UNNotificationContent) -> Void)
```

>Handles the UNNotificationServiceExtension behaviour when a push is received<br/>
```swift
@objc override func serviceExtensionTimeWillExpire()
```

>If encryption is enabled and the process times out, the push content will be marked as "(Encrypted)" before being delivered to the user
Loading

0 comments on commit 919e869

Please sign in to comment.