Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions intercom_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 0 additions & 1 deletion intercom_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ But you can pre-define some Intercom settings, if you want (optional).
- [ ] unreadConversationCount
- [ ] setInAppMessagesVisibility
- [ ] sendTokenToIntercom
- [ ] handlePushMessage
- [ ] isIntercomPush
- [ ] handlePush
- [ ] displayCarousel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
10 changes: 0 additions & 10 deletions intercom_flutter/lib/intercom_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> handlePushMessage() {
return IntercomFlutterPlatform.instance.handlePushMessage();
}

/// To open the Intercom messenger to the composer screen with [message]
/// field pre-populated.
Future<void> displayMessageComposer(String message) {
Expand Down
2 changes: 1 addition & 1 deletion intercom_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> handlePushMessage() {
throw UnimplementedError('handlePushMessage() has not been implemented.');
}

/// To open the Intercom messenger to the composer screen with [message]
/// field pre-populated.
Future<void> displayMessageComposer(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> handlePushMessage() async {
await _channel.invokeMethod('handlePushMessage');
}

@override
Future<void> displayMessageComposer(String message) async {
await _channel.invokeMethod('displayMessageComposer', {'message': message});
Expand Down
1 change: 0 additions & 1 deletion intercom_flutter_web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading