twitter-archive / twitter-kit-ios

Twitter Kit is a native SDK to include Twitter content inside mobile apps.
Apache License 2.0
688 stars 449 forks source link

[iOS 13] web popped when use Twitter app login #122

Open HackingGate opened 4 years ago

HackingGate commented 4 years ago

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

Question

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

touren commented 4 years ago

Fixed in TwitterKit5 5.0.3

pod 'TwitterKit5'