Skip to content

Commit

Permalink
Use callbacks passed to activateApp method
Browse files Browse the repository at this point in the history
Fixes jeduan#18
  • Loading branch information
Noah Cooper committed Jan 27, 2021
1 parent 37ff99c commit 04be120
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/android/ConnectPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public boolean execute(String action, JSONArray args, final CallbackContext call
@Override
public void run() {
AppEventsLogger.activateApp(cordova.getActivity().getApplication());
callbackContext.success();
}
});

Expand Down
2 changes: 2 additions & 0 deletions src/ios/FacebookConnectPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ - (void) getDeferredApplink:(CDVInvokedUrlCommand *) command
- (void) activateApp:(CDVInvokedUrlCommand *)command
{
[FBSDKAppEvents activateApp];
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

#pragma mark - Utility methods
Expand Down

0 comments on commit 04be120

Please sign in to comment.