Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on IOS 13 #4

Open
krizhanovskii opened this issue Sep 25, 2019 · 2 comments
Open

Doesn't work on IOS 13 #4

krizhanovskii opened this issue Sep 25, 2019 · 2 comments

Comments

@krizhanovskii
Copy link

We’ve found an issue with the lib:

 tgRequest.perform(with: scope!, nonce: payload, completionHandler: { (result, error) in 


      // some code that never calls after update on iOS 13 and iOS 13.1
     
})

on IOS 12 all works fine.

@laktyushin
Copy link
Collaborator

laktyushin commented Oct 7, 2019

It works fine for me on iOS 13.1.
Does your app open back after you authorize the request in Telegram?
Please check that your UIApplicationDelegate is set up according to the instructions - https://github.com/TelegramMessenger/TGPassportKit#connect-appdelegate-methods

@krizhanovskii
Copy link
Author

Yes, its back to app after telegram and then nothing happens.
On IOS 12 the same code works fine.

Appdelegate code:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
        // url tgbot*****://passport/success
        let tgResult = TGPAppDelegate.shared().application(app, open: url, options: options)
        Log.debug.log("TG CALLBACK \(tgResult)") // print false

        // my code
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants