Releases: iadvize/iadvize-react-native-sdk
Releases · iadvize/iadvize-react-native-sdk
4.0.0 (Cantal)
Features
- Fixed the Secured Authentication flow being wrongly synchronous. This is a breaking API change, thus the major version update.
Upgrading from 3.4.7 to 4.0.0
In previous versions the Secured Auth callback was synchronous (waiting for a direct return). This was not intended.
This version fixes it by making the flow asynchronous. Here is the updated flow:
// To activate Secured Auth, first set the onJWERequested listener
IAdvizeSDKListeners.onJWERequested(function (eventData: any) {
console.log('onJWERequested' + ' ' + eventData);
// TODO Fetch JWE from your 3rd-party auth system
});
// Activate the SDK as usual
await IAdvizeSDK.activate(projectId, '', ...);
// When the JWE is fetched, you must call this API to proceed:
IAdvizeSDK.provideJWE(jwe);
3.4.7 (Cantal)
Bug fixes
- (Android) Fix secured preferences initialization issue in case of modified decryption key
3.4.6 (Cantal)
Features
- (Android) Add copy-paste selection in messages
Bug fixes
- (Android) Fix secured preferences initialization issue with Android auto-backup strategy
3.4.5 (Cantal)
Features
- (Android) Rework the initiate API, adding a callback + implementing retry behavior (see
UPGRADING.md
for more info)
Bug fixes
- Fix markdown links not triggering the SDK click handler
- (Android) Fix a crash occuring when visitor spam messages
- (Android) Add some missing obfuscation instructions
- (iOS) Fix deadlock state in case of first XMPP connection error
3.4.4 (Cantal)
Features
- Clear iAdvize Push Notifications on chatbox opening
- Add an API for clearing iAdvize Push Notifications on demand
Bug fixes
- (iOS) Fix a UI thread crash when displaying error view
- (iOS) Fix the default browser opening on link clicks
3.4.3 (Cantal)
Features
- Support simple Markdown syntax inside QuickReply messages
- Add some translations for GDPR messages (cs, da, pl, sk, sv)
- Add API to unset GDPR & Secured Auth listeners
Bug fixes
- (Android) Fix a display issue on ProductOffer messages when no offer pric is set
- (iOS) Fix GDPR mode not updating after multiple activations
Dependencies
- (Android) Removed deprecated
play-services-safetynet
dependency in favor ofplay-services-basement
3.4.2 (Cantal)
Features
- (iOS) Support multiline in QuickReply choices
Bug fixes
- (Android) Fix potential stuck state during GDPR process
- (Android) Fix conversation not being started properly if network disconnects during MUC/SUB subscription
- (Android) Remove OnBackPressedHandler which was causing issues in ReactNative back button handling
- (iOS) Add missing completion call on secured auth activation failure callback
- (iOS) Fix conversation closing regression caused by the token refresh strategy
Dependencies
The iAdvize SDK Android plugin dependencies were aligned to use React Native 0.72.7
default dependencies to avoid build conflicts:
- React
18.2.0
- Kotlin
1.7.22
- Gradle
7.6
- Android Gradle Plugin
7.4.1
- Android minimum SDK
33
- Android SDK Target
33
- Android SDK Build Tools
33.0.2
3.4.1 (Cantal)
This version was discontinued due to build issues. Please use the version 3.4.2
.
3.4.0 (Cantal)
Features
- Add automatic auth token refresh management
- Remove preview image when it is empty (previously used a placeholder)
- Add
onChatboxOpened
&onChatboxClosed
API
Bug fixes
- Fix web & markdown links display
- (iOS) Fix QuickReplies hit detection when no avatar is set
- (iOS) Review of Chatbox APIs computation on main UI thread
Dependencies
- (iOS) Xcode target
14.2
->15.0
- (Android) Gradle Plugin
8.1.0
->8.1.1
3.3.0 (Beaufort)
Features
- Allow a more sophisticated message color customization
- Add a LogLevel mode to remove all logs
Bug fixes
- Fix conversation management after various network connection issues (phone sleep / app in bakground)
- (iOS) Fix secured auth token concurrency spam
Dependencies
- (iOS) Updated min supported iOS platform from
12.0
to13.0
- (Android) Gradle Plugin
7.4.1
->8.1.0
- (Android) Build Tools
33.0.1
->33.0.2
- (Android) Kotlin
1.8.10
->1.8.21