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

Commit

Permalink
Urgent - IOS crash when enableHybridAppEvents is enabled #745 (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr authored and peterpeterparker committed Feb 11, 2019
1 parent f2b73aa commit eaa7236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ios/FacebookConnectPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ @interface FacebookConnectPlugin ()
@property (strong, nonatomic) NSString* dialogCallbackId;
@property (strong, nonatomic) FBSDKLoginManager *loginManager;
@property (strong, nonatomic) NSString* gameRequestDialogCallbackId;
@property (nonatomic, assign) BOOL applicationWasActivated;

- (NSDictionary *)responseObject;
- (NSDictionary*)parseURLParams:(NSString *)query;
Expand Down Expand Up @@ -53,7 +54,10 @@ - (void) applicationDidFinishLaunching:(NSNotification *) notification {

- (void) applicationDidBecomeActive:(NSNotification *) notification {
[FBSDKAppEvents activateApp];
[self enableHybridAppEvents];
if (self.applicationWasActivated == NO) {
self.applicationWasActivated = YES;
[self enableHybridAppEvents];
}
}

#pragma mark - Cordova commands
Expand Down

0 comments on commit eaa7236

Please sign in to comment.