Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Twitter Universal Deep Links

Update: It appears Twitter has fixed this issue. Clicking the authorize button now works! Thank you all for the responses.

I have a UIWebView that opens and directs to Twitters Oauth/Authorize webpage. The user signs in with there Twitter details and authenticates the use of our application with there Twitter account. This process worked perfect before the release of Twitter 6.37 iOS application. What happens now is when the WebView detects https://twitter.com/oauth/authorize?oauth_token instead of staying in the WebView it opens the native Twitter application and dies. If you uninstall the Twitter application everything works as usually it staying within the WebView. How can I prevent this from happening? I want to stay within my UIWebView and not automatically open deep links. I have been reading about the new URL deep link changes in iOS 9, but not sure of how to stop them from my application to other native applications. Thanks for any help!

enter image description here

like image 315
mikemike396 Avatar asked Sep 28 '15 13:09

mikemike396


People also ask

How do I turn off Universal link?

You can disable Universal links by blacklisting the paths in your AASA file. Adding NOT before the path in your AASA file won't trigger app open for your url.

What are universal deep links?

When an Universal Link and App Link is clicked, the operating system detects whether the app is installed on a user's device. If the app is installed, the link will immediately direct the user to the app. This is called deep linking.

What is a universal link iOS?

Universal links allow your users to intelligently follow links to content in your app or to your website. Learn how the latest enhancements in universal links give your users the most integrated mobile and desktop experience, even when your app isn't installed on their device.

What is the difference between deep links and app links?

When a user click an URL, it might open a dialog which asks the user to select one of multiple apps handling the given URL. On the other hand, An Android App Link is a deep link based on your website URL that has been verified to belong to your website. When user clicks that URL, it opens your app.


1 Answers

As a workaround, in twitter authentication screen we can use the Go button on iOS typing keypad instead of using the sign in button on web view until twitter fixes. Please refer the attached screenshot link for clarity.

Screenshot for the workaround

like image 82
Bharath Avatar answered Oct 12 '22 06:10

Bharath