Facebook SDK Login Dialog

Viewed 1061

I've got the problem while working with facebook iOS sdk. I integrated it with my app and everything works fine except one thing.

In iOS 11 there is login dialog:
AppName wants to use "facebook.com" to sign in

So, if I lock the device when this dialog is on the screen and then unlock it, dialog disappears and I could not login until restart the app because completion of method

- (void)logInWithReadPermissions:(NSArray *)permissions
              fromViewController:(UIViewController *)fromViewController
                         handler:(FBSDKLoginManagerRequestTokenHandler)handler;

will never be called.

I've walked through the method calls in FacebookSDK and found, that internal _state of FBSDKLoginManager is in FBSDKLoginManagerStateStart state and do not drop down if the device is blocked. So, manager will not allow us to go further.

Is there any way to drop down this state?

1 Answers
Related