Skip to content

Commit ae52a97

Browse files
authored
Remove handle push message (#622)
1 parent 9024e9e commit ae52a97

9 files changed

Lines changed: 5 additions & 37 deletions

File tree

intercom_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 9.6.2
4+
5+
* Removed deprecated `handlePushMessage` API (removed from native Intercom SDK)
6+
37
## 9.6.1
48

59
* Bump Intercom iOS SDK version to [19.5.6](https://github.com/intercom/intercom-ios/releases/tag/19.5.6)

intercom_flutter/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ But you can pre-define some Intercom settings, if you want (optional).
144144
- [ ] unreadConversationCount
145145
- [ ] setInAppMessagesVisibility
146146
- [ ] sendTokenToIntercom
147-
- [ ] handlePushMessage
148147
- [ ] isIntercomPush
149148
- [ ] handlePush
150149
- [ ] displayCarousel

intercom_flutter/android/src/main/kotlin/io/maido/intercom/IntercomFlutterPlugin.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ class IntercomFlutterPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Str
202202
result.success("Token sent to Intercom")
203203
}
204204
}
205-
"handlePushMessage" -> {
206-
Intercom.client().handlePushMessage()
207-
result.success("Push message handled")
208-
}
209205
"displayMessageComposer" -> {
210206
if (call.hasArgument("message")) {
211207
Intercom.client().displayMessageComposer(call.argument("message"))

intercom_flutter/ios/intercom_flutter/Sources/intercom_flutter/IntercomFlutterPlugin.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ - (void) handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
170170
result(@"Logged event");
171171
}
172172
}
173-
else if([@"handlePushMessage" isEqualToString:call.method]) {
174-
result(@"No op");
175-
}
176173
else if([@"displayMessageComposer" isEqualToString:call.method]) {
177174
NSString *message = call.arguments[@"message"];
178175
[Intercom presentMessageComposer:message];

intercom_flutter/lib/intercom_flutter.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,6 @@ class Intercom {
210210
return IntercomFlutterPlatform.instance.sendTokenToIntercom(token);
211211
}
212212

213-
/// When a user taps on a push notification Intercom hold onto data
214-
/// such as the URI in your message or the conversation to open.
215-
///
216-
/// When you want Intercom to act on that data, use this method.
217-
@Deprecated(
218-
"Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.")
219-
Future<void> handlePushMessage() {
220-
return IntercomFlutterPlatform.instance.handlePushMessage();
221-
}
222-
223213
/// To open the Intercom messenger to the composer screen with [message]
224214
/// field pre-populated.
225215
Future<void> displayMessageComposer(String message) {

intercom_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: intercom_flutter
22
description: Flutter plugin for Intercom integration. Provides in-app messaging
33
and help-center Intercom services
4-
version: 9.6.1
4+
version: 9.6.2
55
homepage: https://github.com/v3rm0n/intercom_flutter
66

77
dependencies:

intercom_flutter_platform_interface/lib/intercom_flutter_platform_interface.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,6 @@ abstract class IntercomFlutterPlatform extends PlatformInterface {
189189
throw UnimplementedError('sendTokenToIntercom() has not been implemented.');
190190
}
191191

192-
/// When a user taps on a push notification Intercom hold onto data
193-
/// such as the URI in your message or the conversation to open.
194-
///
195-
/// When you want Intercom to act on that data, use this method.
196-
@Deprecated(
197-
"Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.")
198-
Future<void> handlePushMessage() {
199-
throw UnimplementedError('handlePushMessage() has not been implemented.');
200-
}
201-
202192
/// To open the Intercom messenger to the composer screen with [message]
203193
/// field pre-populated.
204194
Future<void> displayMessageComposer(String message) {

intercom_flutter_platform_interface/lib/method_channel_intercom_flutter.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,6 @@ class MethodChannelIntercomFlutter extends IntercomFlutterPlatform {
175175
await _channel.invokeMethod('sendTokenToIntercom', {'token': token});
176176
}
177177

178-
@Deprecated(
179-
"Calling this API is no longer required. Intercom will directly open the chat screen when a push notification is clicked.")
180-
@override
181-
Future<void> handlePushMessage() async {
182-
await _channel.invokeMethod('handlePushMessage');
183-
}
184-
185178
@override
186179
Future<void> displayMessageComposer(String message) async {
187180
await _channel.invokeMethod('displayMessageComposer', {'message': message});

intercom_flutter_web/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ But you can pre-define some Intercom settings, if you want (optional), such as `
2121
- unreadConversationCount
2222
- setInAppMessagesVisibility
2323
- sendTokenToIntercom
24-
- handlePushMessage
2524
- isIntercomPush
2625
- handlePush
2726
- displayCarousel

0 commit comments

Comments
 (0)