diff --git a/src/ios/IntercomBridge.h b/src/ios/IntercomBridge.h index 1f8ad97..ee715ef 100644 --- a/src/ios/IntercomBridge.h +++ b/src/ios/IntercomBridge.h @@ -15,6 +15,7 @@ - (void)unreadConversationCount:(CDVInvokedUrlCommand*)command; +- (void)displayMessenger:(CDVInvokedUrlCommand*)command; - (void)displayMessageComposer:(CDVInvokedUrlCommand*)command; - (void)displayConversationsList:(CDVInvokedUrlCommand*)command ; diff --git a/src/ios/IntercomBridge.m b/src/ios/IntercomBridge.m index fe1b907..a7cef86 100644 --- a/src/ios/IntercomBridge.m +++ b/src/ios/IntercomBridge.m @@ -89,6 +89,11 @@ - (void)unreadConversationCount:(CDVInvokedUrlCommand*)command { [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; } +- (void)displayMessenger:(CDVInvokedUrlCommand*)command { + [Intercom presentMessenger]; + [self sendSuccess:command]; +} + - (void)displayMessageComposer:(CDVInvokedUrlCommand*)command { [Intercom presentMessageComposer]; [self sendSuccess:command];