Skip to content

Commit

Permalink
Release 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Selligent committed Oct 17, 2023
1 parent 7b33fc9 commit 98e0aac
Show file tree
Hide file tree
Showing 83 changed files with 7,372 additions and 3,079 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# SDK Changelog

- __SDK 3.8.0__
- Add video and audio handling in Notification Content extensions when subclassing `SMNotificationContentViewController`
- Add public visibility to `SMNotificationMessage/mediaType` property
- Add public visibility to `SMNotificationMediaType` enum
- PushOpened event is no longer sent when expanding a Rich Push (align with Android)

- __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`
Expand Down
1 change: 1 addition & 0 deletions Documentation/MobileSDK Reference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
- [SMLogLevel](enums/SMLogLevel.md)
- [SMMessageNature](enums/SMMessageNature.md)
- [SMNotificationButtonType](enums/SMNotificationButtonType.md)
- [SMNotificationMediaType](enums/SMNotificationMediaType.md)
- [SMNotificationMessageType](enums/SMNotificationMessageType.md)
- [SMRemoteMessageDisplayType](enums/SMRemoteMessageDisplayType.md)
- [SMViewTransition](enums/SMViewTransition.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@objc var activityIndicatorStyle: UIActivityIndicatorView.Style { get set }
```

>Set the UIActivityIndicator style<br/>By default, it is UIActivityIndicatorView.Style.gray
>Set the UIActivityIndicator style<br/>By default, it is UIActivityIndicatorView.Style.gray / UIActivityIndicatorView.Style.medium
```swift
@objc var isStatusBarHidden: Bool { get set }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,63 @@

>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...)
```swift
var mediaPlayPauseButtonType: UNNotificationContentExtensionMediaPlayPauseButtonType { get set }
```

>Implement this property when you want the system to display a media playback button in your notification interface. Return an appropriate constant indicating the type of button you want.
```swift
@objc var mediaPlayPauseButtonTintColor: UIColor { get set }
```

>The tint color for the media playback button.
```swift
@objc var mediaPlayPauseButtonFrame: CGRect { get set }
```

>The frame rectangle to use for displaying a media playback button.
## Methods
```swift
@objc override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
```

>Default initializer called by UNNotificationContentExtension
```swift
@objc open func didReceive(_ notification: UNNotification)
```

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

>Handles the UNNotificationContentExtension behaviour when clicking in a notification button<br/>
```swift
@objc override func viewDidLoad()
```

>Creates an specific implementation of the UNNotificationContentExtension view
>Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers unarchived from a nib, this is after the view is set.
```swift
@objc func didReceive(_ notification: UNNotification)
@objc override func viewWillDisappear(_ animated: Bool)
```

>Handles the UNNotificationContentExtension behaviour when a push is to be expanded<br/>
>Called when the view is about to be dismissed, covered, or otherwise hidden.
```swift
@objc func mediaPlay()
```

>Tells you to begin playback of your media content.
```swift
@objc func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void)
@objc func mediaPause()
```

>Handles the UNNotificationContentExtension behaviour when clicking in a notification button<br/>
>Tells you to pause playback of your media content.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# SMNotificationMessage

## Properties
```swift
@objc var mediaType { get }
```

>The ``SMNotificationMediaType`` type of rich media that the notification has.
```swift
@objc var mediaUrl: String { get }
```
Expand Down
28 changes: 28 additions & 0 deletions Documentation/MobileSDK Reference/enums/SMNotificationMediaType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SMNotificationMediaType

>
## Cases
```swift
case unknown = -1
```

>
```swift
case audio = 2
```

>
```swift
case image = 3
```

>
```swift
case video = 4
```

>
2 changes: 1 addition & 1 deletion Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Objective-C
| `appGroupId` | Provide the App GroupId to the SDK (`group.yourGroupName`) that you will have previously configured in your Apple Developer Portal. This is mandatory when you use one Notification extension (service and/or content) ([learn more](#notification-extensions)). |
| `remoteMessageDisplayType` | This value defines the behavior that the SDK will adopt when a remote-notification is received when in Foreground ([learn more](MobileSDK%20Reference/classes/SMManagerSetting.md#/api/name/remoteMessageDisplayType)). |

-Optionally initialize and configure In-App Messages.
- Optionally initialize and configure In-App Messages.

Swift

Expand Down
Binary file modified Documentation/iOSSDKTemplate.zip
Binary file not shown.
14 changes: 7 additions & 7 deletions Framework/SelligentMobileSDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>SelligentMobileSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SelligentMobileSDK.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -29,22 +32,19 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SelligentMobileSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 98e0aac

Please sign in to comment.