Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
feat(#678): add FB key to log msg
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jan 17, 2019
1 parent dcc02c3 commit 53de8f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/android/ConnectPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,12 @@ private void enableHybridAppEvents() {
boolean enableHybridAppEvents = enableHybridAppEventsId != 0 && res.getBoolean(enableHybridAppEventsId);
if (enableHybridAppEvents) {
AppEventsLogger.augmentWebView((WebView) this.webView.getView(), appContext);
Log.d(TAG, "Hybrid app events are enabled");
Log.d(TAG, "FB Hybrid app events are enabled");
} else {
Log.d(TAG, "Hybrid app events are not enabled");
Log.d(TAG, "FB Hybrid app events are not enabled");
}
} catch (Exception e) {
Log.d(TAG, "Hybrid app events cannot be enabled");
Log.d(TAG, "FB Hybrid app events cannot be enabled");
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/ios/FacebookConnectPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ - (void)enableHybridAppEvents {
NSString *is_enabled = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"FacebookHybridAppEvents"];
if([is_enabled isEqualToString:@"true"]){
[FBSDKAppEvents augmentHybridWKWebView:(WKWebView*)self.webView];
NSLog(@"Hybrid app events are enabled!");
NSLog(@"FB Hybrid app events are enabled");
} else {
NSLog(@"Hybrid app events are not enabled!");
NSLog(@"FB Hybrid app events are not enabled");
}
} else {
NSLog(@"Hybrid app events cannot be enabled, this feature requires WKWebView");
NSLog(@"FB Hybrid app events cannot be enabled, this feature requires WKWebView");
}
}

Expand Down

0 comments on commit 53de8f9

Please sign in to comment.