diff --git a/intercom_flutter/CHANGELOG.md b/intercom_flutter/CHANGELOG.md index f30a453..5ea78d8 100755 --- a/intercom_flutter/CHANGELOG.md +++ b/intercom_flutter/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 8.0.12 + +* Fix never completing future when calling displayMessageComposer on iOS + ## 8.0.11 * Automatically Injected Intercom Script, if it is not added. diff --git a/intercom_flutter/ios/Classes/IntercomFlutterPlugin.m b/intercom_flutter/ios/Classes/IntercomFlutterPlugin.m index cd0f9c5..21a703e 100644 --- a/intercom_flutter/ios/Classes/IntercomFlutterPlugin.m +++ b/intercom_flutter/ios/Classes/IntercomFlutterPlugin.m @@ -176,6 +176,7 @@ - (void) handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result else if([@"displayMessageComposer" isEqualToString:call.method]) { NSString *message = call.arguments[@"message"]; [Intercom presentMessageComposer:message]; + result(@"Presented message composer"); } else if([@"sendTokenToIntercom" isEqualToString:call.method]){ NSString *token = call.arguments[@"token"]; if(token != (id)[NSNull null] && token != nil) { diff --git a/intercom_flutter/pubspec.yaml b/intercom_flutter/pubspec.yaml index 6bf083e..4ed3e76 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: 8.0.11 +version: 8.0.12 homepage: https://github.com/v3rm0n/intercom_flutter dependencies: