Migration to SDK 3.0
The migration to JOIN Stories SDK 3.0 offers several enhancements and new features that improve the functionality and performance of the experience in your application.
This guide will help you smoothly migrate your existing implementation to JOIN Stories SDK 3.0.
SDK Initialization
When you wanted to initialise the SDK in your AppDelegate class, you had to create a JoinConfiguration
object and add it to JoinStories.setConfiguration(configuration)
. Now you need to use :
JOINStoriesConfiguration.setValues(teamId: "<your_join_team_id>")
UI Customizations
Bubble View
Integration
The integration of a bubble widget has been improved and simplified. Before, you had to integrate BasicThumbViewController
and StoryPlayer
views like that :
class YourThumbViewController: UIViewController {
let thumbView = BasicThumbViewController()
let config = JoinStoriesThumbConfig(alias: "<YOUR_ALIAS>", ...)
override func viewDidLoad() {
...
contentView.addSubview(thumbView.view)
thumbView.startThumbView(config: config)
}
}
Now you just need to integrate the bubble with BubbleTriggerView
. The player is fully managed by the SDK :
let bubbleTriggerView = BubbleTriggerView(alias: "<your_join_alias>")
view.addSubview(bubbleTriggerView)
Info
On the previous SDK, widgets were of type
UIViewController
. For easier integration, widgets are now of typeUIView
.
Configuration
To customize bubble and player, you had to use JoinStoriesThumbConfig
to customize the widget and player. To simplify reading and configuration management, you now need to use two configuration classes for the widget and the player :
let bubbleConfigurationModel = JoinStoriesBubbleConfigurations(...)
let playerConfiguration = JoinStoriesPlayerConfigurations(...)
let bubbleTriggerView = BubbleTriggerView(bubbleConfigurationModel, playerConfiguration, ...)
Bubble Initialization
To initialize stories data, you just need to add the alias in the BubbleTriggerView
constructor :
let bubbleTriggerView = BubbleTriggerView(alias: "<your_join_alias>")
Deeplink
The integration and use of deeplinks has been modified. You can find details of the implementation here: Deeplink.
Configurations changes
Bubble View
Parameters | Changes | Informations |
---|---|---|
showPlayButton | New | Allow to display a play button |
thumbViewSize | New | Bubble thumbview size can now be customized |
labelFont (fontName) | Modified | Font size of labels can now be modified (replace the old fontName parameter) |
thumbViewOverlayColor | Removed | We now have animations to show clicks on bubbles, overlay is not needed anymore. |
loaderInnerViewWidth | Removed | Always the same width to respect UI standards |
loaderInnerViewColor | Removed | Always transparent to respect UI standards |
Player
Parameters | Changes | Informations |
---|---|---|
playerShowShareButton | Removed | The sharing is now always disabled (may be updated in the future) |
playerClosingButton | Removed | The closing button is now always displayed |
Updated 6 months ago