twitter-kit-ios icon indicating copy to clipboard operation
twitter-kit-ios copied to clipboard

[iOS 13] web popped when use Twitter app login

Open HackingGate opened this issue 6 years ago • 1 comments

UIApplicationOpenURLOptionsSourceApplicationKey (aka sourceApplication) returns nil in iOS 13. You can no longer use that value to detect login authenticate is web based or app based.

Expected behavior

SafariController will NOT popped up when using app login.

Actual behavior

SafariController will popped up.

Steps to reproduce the behavior

  • Use iOS 13
  • Twitter app is installed
  • Tap "Login with Twitter" from your app
  • Tap "Authenticate" in Twitter

Question

How to detect login is web based or app based in iOS 13? (without using sourceApplication) Or is there any other solution here?

HackingGate avatar Sep 25 '19 09:09 HackingGate

Fixed in TwitterKit5 5.0.3

pod 'TwitterKit5'

touren avatar Oct 03 '19 22:10 touren