magiclabs / magic-ios

MagicSDK library for IOS
Apache License 2.0
7 stars 8 forks source link

Magic login not working #45

Open amcoderz opened 2 weeks ago

amcoderz commented 2 weeks ago

Describe the bug Integrated code but it's just showing SDK error and login screen is not appear.

Please help if any know about this solution, thanks in advance.

pratikpatan commented 2 weeks ago

Hi,

There is an issue with MagicLink SDK. I have spent almost 2 days behind this. It was working before, but after updating to latest version, login screen is not showing. It was presenting behind my active Window view controller.

To solve this, go to 'WebViewController' in MagicLink SDK. Search for 'private func attachWebView() throws -> Void {' function. Remove 'keyWindow.sendSubviewToBack(self.view)' line and replace it with 'keyWindow.bringSubviewToFront(self.view)'. You are all done!!!

Run app again.