Releases: SelligentMarketingCloud/MobileSDK-iOS
Releases · SelligentMarketingCloud/MobileSDK-iOS
v3.5.0
- Add
SMManager/areInAppMessagesEnabled
to get the current status of the in-app message service state last push message
isViewed flag is now set synchronously- Fix bug where only push messages containing in-app messages would be added as the
last push message
when the app was in the background/killed - Fix bug where
SMManager/displayLastReceivedNotification
would display the push without theRich Content
when usingSMManagerSetting/shouldAddInAppMessageFromPushToInAppMessageList
and having calledSMManager/displayInAppMessage(id:options:)
orSMManager/displayNotification(id:options:)
previously, for the samenotification Id
v3.4.0
- Fix bug where isViewed flag wasn't properly stored in the
last push message object
- Remove geolocation feature
v3.3.0
- Deprecate
SMManager/displayLastReceivedRemoteNotification(options:)
in favor ofSMManager/displayLastReceivedNotificationContent(options:)
- Deprecate
SMManager/displayNotification(id:options:)
in favor ofSMManager/displayInAppMessage(id:options:)
- Deprecate
SMManager/retrieveLastRemoteNotification()
- Add
SMManager/displayLastReceivedNotification()
to display the last Selligent push notification - Add
SMManager/retrieveLastReceivedNotificationContent()
which returns aSMNotificationMessage
instead of aDictionary
withid
andtitle
- Deprecate
SMConstants/kSMNotification_Data_RemoteNotification
- Add
SMConstants/kSMNotification_Object_RemoteNotification
which returns aSMNotificationMessage
instead of aDictionary
withid
andtitle
- Deprecate
SMConstants/kSMNotification_Data_InAppMessage
- Add
SMConstants/kSMNotification_Object_InAppMessage
which returns an array ofSMInAppMessage
instead of an array ofDictionary
withid
andtitle
- Deprecate
SMManager/executeLinkAction(_:inAppMessage:)
andSMManager/executeLinkAction(_:inAppContent:)
in favor ofSMManager/executeLinkAction(_:message:)
v3.2.1
- Add robustness around
Opened
event sent from Notification Content Extension - Fix bug that could send an
Opened
event when dismissing a notification in foreground
v3.2.0
- Improve
SMInAppMessageStyleOptions/transition/.verticalSlide
dismiss transition smoothness - Fix
SMManagerSetting/shouldAddInAppMessageFromPushToInAppMessageList
andSMManager/displayLastReceivedRemoteNotification
behavior: it will now work properly with notifications that have just been received but not displayed or clickd (Notification Service Extension needs to be integrated for this to correctly work) - Fix bug where simple push notifications (without IAM) could get added to the IAM message list when setting
SMManagerSetting/shouldAddInAppMessageFromPushToInAppMessageList
totrue
and usingSMManager/displayLastReceivedRemoteNotification
- Changed IAM of type
alert
implementation from usingUIAlertController
to a custom set of views - Add
SMInAppMessageStyleOptions/alertBackgroundColor
,SMInAppMessageStyleOptions/alertCornerRadius
,SMInAppMessageStyleOptions/alertTitleColor
,SMInAppMessageStyleOptions/alertTitleFont
,SMInAppMessageStyleOptions/alertBodyColor
,SMInAppMessageStyleOptions/alertBodyFont
,SMInAppMessageStyleOptions/alertLinksColor
,SMInAppMessageStyleOptions/alertLinksBackgroundColor
,SMInAppMessageStyleOptions/alertLinksSeparatorColor
andSMInAppMessageStyleOptions/alertLinksFont
to customize the appearance of IAM of typealert
- Add
SMInAppMessageStyleOptions/transition/.opacity
transition option - Add networkManager to IAM of type
image
andurl
so the content is automatically reloaded upon regaining connectivity (if it wasn't successfully loaded before) - Fix bug where the notification
SMConstants/kSMNotification_Event_DidReceiveRemoteNotification
was broadcasted shortly after callingSMManager/didReceive(_:options:)
instead ofSMManager/willPresent(_:options:completionHandler:)
v3.1.2
- Fix
SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition
behavior when combined withSMInAppMessageStyleOptions/imageCanBeTapped
set totrue
and the message contains only one link - Fix links menu position when
SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition
is set totrue
and running on iPad
v3.1.1
- Fix
SMInAppMessageStyleOptions/transition/.verticalSlide
crash when running on iPad - Fix IAM of type
url
to not reload the initial page but the current one when cancelling the dismiss gesture
v3.1.0
- Fix navigation bar custom icon proportions
- Fix IAM of type
html
,url
,image
andmap
view size when multiple ones are presented at the same time and its parent is of typealert
- Fix bug where navigation arrows for IAM of type
url
would not get enabled when multiple IAM are be displayed at the same time - Add robustness if some SDK public APIs are wrongly implemented by calling them from a background thread
- Add robustness if multiple IAM are requested to be displayed and/or removed at the same time
- Re-add support to change logLevel from App extensions
SMManager/apply(_:)
- Add
SMInAppMessageStyleOptions
style options for specific IAM displays (if you want to differ from the global styling provided inSMManagerSetting/configureInAppMessageService(with:)
) from methods:SMManager/displayNotification(id:options:)
,SMManager/displayLastReceivedRemoteNotification(options:)
,SMManager/didReceive(_:options:)
, andSMManager/willPresent(_:options:completionHandler:)
- Add
SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition
to switch the position of theMenu
andClose
buttons - Add
SMInAppMessageStyleOptions/presentWithTransition
andSMInAppMessageStyleOptions/transitioningDelegate
to define whether the default SDK IAM view controllers will be presented with a transition and the possibility to define a custom transition - Add
SMInAppMessageStyleOptions/transition
to use a predefined SDK view transition instead of a custom one - Add
SMInAppMessageStyleOptions/navigationMenuButtonAlternateAssetName
,SMInAppMessageStyleOptions/navigationCloseButtonAlternateAssetName
,SMInAppMessageStyleOptions/navigationArrowBackButtonAlternateAssetName
,SMInAppMessageStyleOptions/navigationArrowForwardButtonAlternateAssetName
andSMInAppMessageStyleOptions/reloadButtonAlternateAssetName
to use different images depending on the IAM (or from where is it being displayed) - Add
SMInAppMessageStyleOptions/imageCanBeTapped
to define whether IAM of typeimage
can execute the (first) link action when clicking on the image directly - Add support for
Rate app
andOpen a method in your app
links, when included as Push Notification buttons and implementing theUNNotificationContentExtension/didReceive(_:completionHandler:)
delegate method - Add
UIActivityIndicatorView
to IAM of typeimage
andurl
before the content is fully loaded - Add reload button (
SM.Relaod
) to IAM of typeimage
andurl
if the content could not be loaded (i.e no connectivity) andSMInAppMessageStyleOptions/reloadButtonColor
property to define its color - Add
SMManager/webView(_:didFailProvisionalNavigation:withError:)
to properly have IAM of typeurl
working (reload/navigation buttons) when usingSMManager/inAppMessageWKNavigationDelegate(_:)
- Add
UIPanGestureRecognizer
to IAM of typehtml
,url
,image
andmap
so they can be dismissed by swiping from the left/top, ifSMInAppMessageStyleOptions/presentWithTransition
is set totrue
and depending on theSMInAppMessageStyleOptions/transition
option
v3.0.1
- Fix bug where the deeplink as a main action of a push message would not execute when having both
SelligentMobileSDK
andSelligentMobileExtensionsSDK
included in the same target (i.e Cocoapods)
v3.0.0
- Migrate SDK to Swift: introduce breaking changes, mostly signature changes: migration document
- Remove
armv7
,armv7s
, andi386
support: Xcode 14 built - Raise minimum supported version to iOS 11
- Create new SDK
FrameworkExtension/SelligentMobileExtensionsSDK.xcframework
to use (only) in App extension targets (i.e notification extensions). Main SDK is to (only) be used in the main App target - Remove all deprecated APIs and properties
- Remove universal library support
- Correct bug where actionsheets from IAM where showing title and body instead of only menu buttons
- Add new method to initialize custom events by providing a name
- Change InApp message of type
image
handling: it doesn't use WebView anymore but UIImageView and caching. Increase performance. Align with Android, there is no scrolling anymore, image fits the size of the screen while maintaining the aspect ratio - NotificationCenter messages aren't necessarily posted on the main thread anymore
- Add close links menu feature when tapping outside the links actionsheet for IAM of type image, html, map and url
- Add IAM styling options via
SMInAppMessageStyleOptions
(learn more) - Fix bug where the links menu (actionsheet) in IAM would not display for iPad
- Fix bug where the type of IAM (iamType) would not be stored properly (new property to be used
type
)