diff --git a/ios/Classes/IntercomFlutterPlugin.m b/ios/Classes/IntercomFlutterPlugin.m index ac2b4bec..527ee3d2 100644 --- a/ios/Classes/IntercomFlutterPlugin.m +++ b/ios/Classes/IntercomFlutterPlugin.m @@ -34,7 +34,9 @@ + (void)registerWithRegistrar:(NSObject*)registrar { UnreadStreamHandler* unreadStreamHandler = [[UnreadStreamHandler alloc] init]; [unreadChannel setStreamHandler:unreadStreamHandler]; - + #if DEBUG + [Intercom enableLogging]; + #endif } - (instancetype)initWithChannel:(FlutterMethodChannel *)channel { @@ -153,11 +155,6 @@ - (void) handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result else if([@"displayMessageComposer" isEqualToString:call.method]) { NSString *message = call.arguments[@"message"]; [Intercom presentMessageComposer:message]; - } else if([@"sendTokenToIntercom" isEqualToString:call.method]){ - NSString *token = call.arguments[@"token"]; - NSData* encodedToken=[token dataUsingEncoding:NSUTF8StringEncoding]; - [Intercom setDeviceToken:encodedToken]; - result(@"Token set"); } else if([@"sendTokenToIntercom" isEqualToString:call.method]) { NSString *token = call.arguments[@"token"]; diff --git a/ios/intercom_flutter.podspec b/ios/intercom_flutter.podspec index da675095..a97d1576 100644 --- a/ios/intercom_flutter.podspec +++ b/ios/intercom_flutter.podspec @@ -17,7 +17,6 @@ A new flutter plugin project. s.dependency 'Flutter' s.dependency 'Intercom' s.static_framework = true - s.dependency 'Intercom', '~> 7.1.0' s.ios.deployment_target = '10.0' end