简体   繁体   中英

How to open app from Twitter for iOS WebView on iOS 9

My question pertains to deeplinking from a link shared on Twitter into my app on iOS 9.

Prior to iOS 9, using an app's URL scheme in a redirect would take the user from Twitter into that app. Now, as described here (I'm assuming this is the reason it no longer works), URL schemes for other apps can not be opened by Twitter. It still works on the Facebook app for iOS 9, and I assume the difference is Twitter uses canOpenUrl: , which now returns NO .

This led me to try Universal Links , but with my current implementation these only work in Safari.

Has anyone found a solution or workaround?

Add Twitter scheme to your Info.plist.

 <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>twitter</string>
    </array> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM