-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
6,920 additions
and
1,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
Documentation/MobileSDK Reference/classes/SMNotificationContentViewController.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
Documentation/MobileSDK Reference/classes/SMNotificationService.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.