Home / IOS Development / problems with swifter.authorize – code successful: Swifter.TokenSuccessHandler never gets access: iOSProgramming

problems with swifter.authorize – code successful: Swifter.TokenSuccessHandler never gets access: iOSProgramming



I am calling Swifter.authorize(withCallback: URL, presentingFrom: UIViewController, success: Swifter.TokenSuccessHandler, failure: Swifter.TokenFailureHandler) from a push of a button in one UIViewControllerRepresentable. When you click the button, I’m sent to a Safari website to authorize my app. So far so good. After approving my app and getting back off Callback URL: “MyTwitterApp://“ neither the code inside Swifter.TokenSuccessHandler nor inside Swifter.TokenFailureHandler run. Even the debugger does not go into it. In addition, I get many warnings about construction time init(account:) is being discontinued since iOS 1

1.0 along with other things. When I use the latest version of Swifter and as I have found a fairly recent tutorial (definitely created after the launch of iOS 11) that appears Swifter works, I’m not sure if it creates any problem.

My main complaint, however, is that I am not able to authorize my app, as the code in success is not available.


Source link