my oauth working fine except when login twitter redirects server 'post', want know how can make app redirect application after making post (2nd picture)at server.
in appdelegate (this function called when url request done):
func application(application: uiapplication, openurl url: nsurl, sourceapplication: string?, annotation: anyobject) -> bool { dispatch_async(dispatch_get_main_queue()) { if (url.scheme == "your applications url scheme"){ // want } } return true }
you set url scheme in info.plist file in
<key>cfbundleurlschemes</key> <array> <string>urlscheme</string> </array>
Comments
Post a Comment