Skip to content

Commit 5a8601d

Browse files
Release - SDK v0.10.21
1 parent 0261173 commit 5a8601d

File tree

7 files changed

+49
-5
lines changed

7 files changed

+49
-5
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 0.10.21 (04/10/2024)
2+
### Features
3+
* Added new SDK public API to dismiss FreshchatSDK screen if currently visible.
4+
### Bug Fixes
5+
* Fixed an issue where links without descriptions were not working in the Bot Article flow in Android.
6+
* Fixed an issue where quick actions were not hidden immediately after a conversation was resolved in Android.
7+
* Fixed an issue where anonymous implementations of FreshchatWebListener were getting garbage collected after a locale change in Android.
8+
* Fixed an issue where the country code was not retained in the view in Android.
9+
* Fixed an issue where images captured with the camera were rotated 90 degrees to the left on some devices in Android.
10+
* Fixed an issue where the file name preview was not consistent for images taken via the camera in Android.
11+
* Fixed an issue with hyperlink breakage in Android.
12+
* Fix for notification not working in iOS 18 sandbox environment.
13+
* Fix occasional issues with the reply editor display in the dropdown, carousel and option selections in iOS.
14+
* Fix for quick option selection menu buttons are not hidden after a conversation is resolved in iOS.
15+
* Fix for bot articles flow where links without descriptions are not working in iOS.
16+
* Fix rare crash during resetUser API call in iOS.
17+
* Fix the image with text alignment issue in conversation message in iOS.
18+
* Fix the issue where the “Was this answer helpful?” feedback options (Yes/No) were not displaying at the bottom of the article in iOS.
19+
* Fix where we removed the 256-character limit for setting up the user properties in iOS.
20+
* Fix added support for this year’s new devices in iOS.
21+
* Fix the issue where the reply editor was visible when sending a carousel via the public API. Now, the reply editor will not appear for carousels sent through the public API in iOS.
22+
* Fix an issue where the “Select All” button was not displayed in the multi-select carousel in some edge cases in iOS.
23+
### Enhancement
24+
* Removed the character count limitation for setting user properties
25+
126
## 0.10.20 (28/08/2024)
227
### Bug fixes
328
* Fixed orientations of quick reply option for RTL users in iOS.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ android {
3636

3737
dependencies {
3838
implementation 'com.android.support:localbroadcastmanager:28.0.0'
39-
implementation 'com.github.freshworks:freshchat-android:6.2.9'
39+
implementation 'com.github.freshworks:freshchat-android:6.3.0'
4040
}
4141

4242

android/src/main/java/com/freshchat/consumer/sdk/flutter/FreshchatSdkPlugin.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ public void notifyAppLocaleChange() {
563563
Freshchat.notifyAppLocaleChange(context);
564564
}
565565

566+
public void dismissFreshchatView() {
567+
Intent dismissIntent = new Intent("com.freshchat.consumer.sdk.actions.DismissFreshchatScreens");
568+
LocalBroadcastManager.getInstance(context).sendBroadcast(dismissIntent);
569+
}
570+
566571
@Override
567572
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
568573

@@ -686,6 +691,10 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
686691
notifyAppLocaleChange();
687692
break;
688693

694+
case "dismissFreshchatView":
695+
dismissFreshchatView();
696+
break;
697+
689698
default:
690699
result.notImplemented();
691700
break;

ios/Classes/FreshchatSdkPlugin.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,9 @@ -(void)openFreshchatDeeplink:(FlutterMethodCall *) call{
491491
[[Freshchat sharedInstance] openFreshchatDeeplink:link viewController:visibleVC];
492492
}
493493

494+
-(void)dismissFreshchatView{
495+
[[Freshchat sharedInstance] dismissFreshchatViews];
496+
}
494497

495498
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
496499
if ([@"getSdkVersion" isEqualToString:call.method]) {
@@ -555,6 +558,8 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
555558
NSLog(@"Linkify not available for iOS");
556559
}else if([@"notifyAppLocaleChange" isEqualToString:call.method]){
557560
NSLog(@"notifyAppLocaleChange not available for iOS");
561+
} else if([@"dismissFreshchatView" isEqualToString:call.method]){
562+
[instance dismissFreshchatView];
558563
}
559564
else{
560565
result(FlutterMethodNotImplemented);

ios/freshchat_sdk.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'freshchat_sdk'
7-
s.version = '0.10.20'
7+
s.version = '0.10.21'
88
s.summary = 'Freshchat Flutter SDK - iOS'
99
s.description = <<-DESC
1010
Freshchat Flutter SDK - iOS.
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
1919
s.platform = :ios
20-
s.dependency "FreshchatSDK", '6.2.5'
20+
s.dependency "FreshchatSDK", '6.2.7'
2121

2222
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2323
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }

lib/freshchat_sdk.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class Freshchat {
229229
final String sdkVersion = await _channel.invokeMethod('getSdkVersion');
230230
final String operatingSystem = Platform.operatingSystem;
231231
// As there is no simple way to get current freshchat flutter sdk version, we are hardcoding here.
232-
final String allSdkVersion = "flutter-0.10.20-$operatingSystem-$sdkVersion ";
232+
final String allSdkVersion = "flutter-0.10.21-$operatingSystem-$sdkVersion ";
233233
return allSdkVersion;
234234
}
235235

@@ -495,6 +495,11 @@ class Freshchat {
495495
_channel.invokeMethod("notifyAppLocaleChange");
496496
}
497497

498+
/// Dismiss freshchat screen, if currently visible.
499+
static void dismissFreshchatView() {
500+
_channel.invokeMethod("dismissFreshchatView");
501+
}
502+
498503
/// Stream which triggers a callback if the restoreID is generated for the user
499504
static Stream get onRestoreIdGenerated {
500505
restoreIdStreamController.onCancel = () {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Freshchat is a modern messaging software for sales and customer eng
33
repository: https://github.com/freshworks/freshchat-flutter-sdk
44

55
# Whenever this version is updated, it must also be updated in Freshchat::getSdkVersion()
6-
version: 0.10.20
6+
version: 0.10.21
77
homepage: https://www.freshworks.com/
88

99
environment:

0 commit comments

Comments
 (0)