From c7a74c74c2b440f853c30c8eb3e82f700f4ae3b7 Mon Sep 17 00:00:00 2001 From: Deepak Date: Mon, 6 Apr 2026 12:32:46 +0530 Subject: [PATCH 1/2] Remove handlePushMessage --- intercom_flutter/README.md | 1 - .../kotlin/io/maido/intercom/IntercomFlutterPlugin.kt | 4 ---- .../Sources/intercom_flutter/IntercomFlutterPlugin.m | 3 --- intercom_flutter/lib/intercom_flutter.dart | 10 ---------- .../lib/intercom_flutter_platform_interface.dart | 10 ---------- .../lib/method_channel_intercom_flutter.dart | 7 ------- intercom_flutter_web/README.md | 1 - 7 files changed, 36 deletions(-) diff --git a/intercom_flutter/README.md b/intercom_flutter/README.md index e6f8c800..bc352d30 100755 --- a/intercom_flutter/README.md +++ b/intercom_flutter/README.md @@ -144,7 +144,6 @@ But you can pre-define some Intercom settings, if you want (optional). - [ ] unreadConversationCount - [ ] setInAppMessagesVisibility - [ ] sendTokenToIntercom -- [ ] handlePushMessage - [ ] isIntercomPush - [ ] handlePush - [ ] displayCarousel diff --git a/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt b/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt index 0abed7b4..22ae91c8 100644 --- a/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt +++ b/intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt @@ -202,10 +202,6 @@ class IntercomFlutterPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Str result.success("Token sent to Intercom") } } - "handlePushMessage" -> { - Intercom.client().handlePushMessage() - result.success("Push message handled") - } "displayMessageComposer" -> { if (call.hasArgument("message")) { Intercom.client().displayMessageComposer(call.argument("message")) diff --git a/intercom_flutter/ios/intercom_flutter/Sources/intercom_flutter/IntercomFlutterPlugin.m b/intercom_flutter/ios/intercom_flutter/Sources/intercom_flutter/IntercomFlutterPlugin.m index 1e7b2aa2..1fbffa9c 100644 --- a/intercom_flutter/ios/intercom_flutter/Sources/intercom_flutter/IntercomFlutterPlugin.m +++ b/intercom_flutter/ios/intercom_flutter/Sources/intercom_flutter/IntercomFlutterPlugin.m @@ -170,9 +170,6 @@ - (void) handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result result(@"Logged event"); } } - else if([@"handlePushMessage" isEqualToString:call.method]) { - result(@"No op"); - } else if([@"displayMessageComposer" isEqualToString:call.method]) { NSString *message = call.arguments[@"message"]; [Intercom presentMessageComposer:message]; diff --git a/intercom_flutter/lib/intercom_flutter.dart b/intercom_flutter/lib/intercom_flutter.dart index e6c6e122..525b69a8 100755 --- a/intercom_flutter/lib/intercom_flutter.dart +++ b/intercom_flutter/lib/intercom_flutter.dart @@ -210,16 +210,6 @@ class Intercom { return IntercomFlutterPlatform.instance.sendTokenToIntercom(token); } - /// When a user taps on a push notification Intercom hold onto data - /// such as the URI in your message or the conversation to open. - /// - /// When you want Intercom to act on that data, use this method. - @Deprecated( - "Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.") - Future handlePushMessage() { - return IntercomFlutterPlatform.instance.handlePushMessage(); - } - /// To open the Intercom messenger to the composer screen with [message] /// field pre-populated. Future displayMessageComposer(String message) { diff --git a/intercom_flutter_platform_interface/lib/intercom_flutter_platform_interface.dart b/intercom_flutter_platform_interface/lib/intercom_flutter_platform_interface.dart index 8d5fdda2..c3490e7c 100644 --- a/intercom_flutter_platform_interface/lib/intercom_flutter_platform_interface.dart +++ b/intercom_flutter_platform_interface/lib/intercom_flutter_platform_interface.dart @@ -189,16 +189,6 @@ abstract class IntercomFlutterPlatform extends PlatformInterface { throw UnimplementedError('sendTokenToIntercom() has not been implemented.'); } - /// When a user taps on a push notification Intercom hold onto data - /// such as the URI in your message or the conversation to open. - /// - /// When you want Intercom to act on that data, use this method. - @Deprecated( - "Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.") - Future handlePushMessage() { - throw UnimplementedError('handlePushMessage() has not been implemented.'); - } - /// To open the Intercom messenger to the composer screen with [message] /// field pre-populated. Future displayMessageComposer(String message) { diff --git a/intercom_flutter_platform_interface/lib/method_channel_intercom_flutter.dart b/intercom_flutter_platform_interface/lib/method_channel_intercom_flutter.dart index 914dd811..a8ddbc2e 100644 --- a/intercom_flutter_platform_interface/lib/method_channel_intercom_flutter.dart +++ b/intercom_flutter_platform_interface/lib/method_channel_intercom_flutter.dart @@ -175,13 +175,6 @@ class MethodChannelIntercomFlutter extends IntercomFlutterPlatform { await _channel.invokeMethod('sendTokenToIntercom', {'token': token}); } - @Deprecated( - "Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.") - @override - Future handlePushMessage() async { - await _channel.invokeMethod('handlePushMessage'); - } - @override Future displayMessageComposer(String message) async { await _channel.invokeMethod('displayMessageComposer', {'message': message}); diff --git a/intercom_flutter_web/README.md b/intercom_flutter_web/README.md index 0f7f2d30..b4b451a5 100755 --- a/intercom_flutter_web/README.md +++ b/intercom_flutter_web/README.md @@ -21,7 +21,6 @@ But you can pre-define some Intercom settings, if you want (optional), such as ` - unreadConversationCount - setInAppMessagesVisibility - sendTokenToIntercom -- handlePushMessage - isIntercomPush - handlePush - displayCarousel From fac86059d2194f7a7298bff73acf6b318cb96b6b Mon Sep 17 00:00:00 2001 From: Deepak Date: Mon, 6 Apr 2026 12:35:44 +0530 Subject: [PATCH 2/2] Version 9.6.2 --- intercom_flutter/CHANGELOG.md | 4 ++++ intercom_flutter/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/intercom_flutter/CHANGELOG.md b/intercom_flutter/CHANGELOG.md index 36693c5f..310f3452 100755 --- a/intercom_flutter/CHANGELOG.md +++ b/intercom_flutter/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 9.6.2 + +* Removed deprecated `handlePushMessage` API (removed from native Intercom SDK) + ## 9.6.1 * Bump Intercom iOS SDK version to [19.5.6](https://github.com/intercom/intercom-ios/releases/tag/19.5.6) diff --git a/intercom_flutter/pubspec.yaml b/intercom_flutter/pubspec.yaml index 0e2b4f15..cd0c870c 100644 --- a/intercom_flutter/pubspec.yaml +++ b/intercom_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: intercom_flutter description: Flutter plugin for Intercom integration. Provides in-app messaging and help-center Intercom services -version: 9.6.1 +version: 9.6.2 homepage: https://github.com/v3rm0n/intercom_flutter dependencies: