Skip to content

Releases: SelligentMarketingCloud/MobileSDK-iOS

v3.5.0

27 Jun 15:26
4643de1
Compare
Choose a tag to compare
  • 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 the Rich Content when using SMManagerSetting/shouldAddInAppMessageFromPushToInAppMessageList and having called SMManager/displayInAppMessage(id:options:) or SMManager/displayNotification(id:options:) previously, for the same notification Id

v3.4.0

15 Jun 12:28
aed89cc
Compare
Choose a tag to compare
  • Fix bug where isViewed flag wasn't properly stored in the last push message object
  • Remove geolocation feature

v3.3.0

10 Apr 16:23
29f4f90
Compare
Choose a tag to compare
  • Deprecate SMManager/displayLastReceivedRemoteNotification(options:) in favor of SMManager/displayLastReceivedNotificationContent(options:)
  • Deprecate SMManager/displayNotification(id:options:) in favor of SMManager/displayInAppMessage(id:options:)
  • Deprecate SMManager/retrieveLastRemoteNotification()
  • Add SMManager/displayLastReceivedNotification() to display the last Selligent push notification
  • Add SMManager/retrieveLastReceivedNotificationContent() which returns a SMNotificationMessage instead of a Dictionary with id and title
  • Deprecate SMConstants/kSMNotification_Data_RemoteNotification
  • Add SMConstants/kSMNotification_Object_RemoteNotification which returns a SMNotificationMessage instead of a Dictionary with id and title
  • Deprecate SMConstants/kSMNotification_Data_InAppMessage
  • Add SMConstants/kSMNotification_Object_InAppMessage which returns an array of SMInAppMessage instead of an array of Dictionary with id and title
  • Deprecate SMManager/executeLinkAction(_:inAppMessage:) and SMManager/executeLinkAction(_:inAppContent:) in favor of SMManager/executeLinkAction(_:message:)

v3.2.1

14 Mar 10:17
4e348c8
Compare
Choose a tag to compare
  • 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

01 Mar 10:07
61eb81e
Compare
Choose a tag to compare
  • Improve SMInAppMessageStyleOptions/transition/.verticalSlide dismiss transition smoothness
  • Fix SMManagerSetting/shouldAddInAppMessageFromPushToInAppMessageList and SMManager/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 to true and using SMManager/displayLastReceivedRemoteNotification
  • Changed IAM of type alert implementation from using UIAlertController 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 and SMInAppMessageStyleOptions/alertLinksFont to customize the appearance of IAM of type alert
  • Add SMInAppMessageStyleOptions/transition/.opacity transition option
  • Add networkManager to IAM of type image and url 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 calling SMManager/didReceive(_:options:) instead of SMManager/willPresent(_:options:completionHandler:)

v3.1.2

20 Feb 13:34
4cd1ad2
Compare
Choose a tag to compare
  • Fix SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition behavior when combined with SMInAppMessageStyleOptions/imageCanBeTapped set to true and the message contains only one link
  • Fix links menu position when SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition is set to true and running on iPad

v3.1.1

16 Feb 14:25
56c7512
Compare
Choose a tag to compare
  • 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

15 Feb 12:32
2c38c09
Compare
Choose a tag to compare
  • Fix navigation bar custom icon proportions
  • Fix IAM of type html, url, image and map view size when multiple ones are presented at the same time and its parent is of type alert
  • 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 in SMManagerSetting/configureInAppMessageService(with:)) from methods: SMManager/displayNotification(id:options:), SMManager/displayLastReceivedRemoteNotification(options:), SMManager/didReceive(_:options:), and SMManager/willPresent(_:options:completionHandler:)
  • Add SMInAppMessageStyleOptions/navigationMenuCloseButtonSwitchPosition to switch the position of the Menu and Close buttons
  • Add SMInAppMessageStyleOptions/presentWithTransition and SMInAppMessageStyleOptions/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 and SMInAppMessageStyleOptions/reloadButtonAlternateAssetName to use different images depending on the IAM (or from where is it being displayed)
  • Add SMInAppMessageStyleOptions/imageCanBeTapped to define whether IAM of type image can execute the (first) link action when clicking on the image directly
  • Add support for Rate app and Open a method in your app links, when included as Push Notification buttons and implementing the UNNotificationContentExtension/didReceive(_:completionHandler:) delegate method
  • Add UIActivityIndicatorView to IAM of type image and url before the content is fully loaded
  • Add reload button (SM.Relaod) to IAM of type image and url if the content could not be loaded (i.e no connectivity) and SMInAppMessageStyleOptions/reloadButtonColor property to define its color
  • Add SMManager/webView(_:didFailProvisionalNavigation:withError:) to properly have IAM of type url working (reload/navigation buttons) when using SMManager/inAppMessageWKNavigationDelegate(_:)
  • Add UIPanGestureRecognizer to IAM of type html, url, image and map so they can be dismissed by swiping from the left/top, if SMInAppMessageStyleOptions/presentWithTransition is set to true and depending on the SMInAppMessageStyleOptions/transition option

v3.0.1

31 Jan 19:12
58f11f2
Compare
Choose a tag to compare
  • Fix bug where the deeplink as a main action of a push message would not execute when having both SelligentMobileSDK and SelligentMobileExtensionsSDK included in the same target (i.e Cocoapods)

v3.0.0

31 Jan 13:31
6e18646
Compare
Choose a tag to compare
  • Migrate SDK to Swift: introduce breaking changes, mostly signature changes: migration document
  • Remove armv7, armv7s, and i386 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)