Skip to content
Open
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
9 changes: 3 additions & 6 deletions ios/Classes/IntercomFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
UnreadStreamHandler* unreadStreamHandler =
[[UnreadStreamHandler alloc] init];
[unreadChannel setStreamHandler:unreadStreamHandler];

#if DEBUG
[Intercom enableLogging];
#endif
}

- (instancetype)initWithChannel:(FlutterMethodChannel *)channel {
Expand Down Expand Up @@ -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"];
Expand Down
1 change: 0 additions & 1 deletion ios/intercom_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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