TwitterKit doesn't have interface to control redirection to native twitter app - ios

Currently I use TWTRTweetView from TwitterKit to display the tweets. When I tap on the tweet, the iOS system's popup shows up "MyAppName" wants to open "Twitter", and gives 2 buttons, Cancel and Open respectively.
Then the problem is no matter which button I press on, it will redirect to the twitter native app.

Ok, I have downloaded their source code and looking into it. And I drew a flow diagram to illustrate the issue.
As the diagram shows, the twitter SDK will try to call the deep link on tap first, if user taps "cancel" on the apple's default pop up, then the SDK will try the second attempt by calling universal link. This will cause the issue as I described in the question, which is even user taps on "cancel", my app still redirects to twitter app.

Related

How can I remove the new back-to-previous-app iOS 9 button from my app?

For example, when a user logs in to my app with Facebook, I open the Facebook app for auth, and then the Facebook app switches back to my app. But from then on, "Back to Facebook" stays in the top-left.
At this time, I do it by hiding status bar. I am still looking for a better solution.

Whatsapp update and sharing video

I am making an app that shares a video through whatsapp.
Implementation is super easy, and it worked well until the beginning of August. When you trigger WhatsApp with the DocumentInteractionController, the controller will propose 2 options for WhatsApp:(can't post a screenshot due to reputation...)
"WhatsApp"
"Open in WhatsApp"
"WhatsApp" will push a vc within your app, when "Open in WhatsApp" will put your app in background as usual and open WhatsApp. The problem is that the first option "WhatsApp" doesn't give any information in the delegate method of the DocumentInteractionController, I can't manage to detect if the user pressed the button or not, as well as when the sharing is done. Anyone encountered the issue?

Facebook login in an iOS app

I am wondering how things should work when using facebook login in an iOS app.
I have set up a trial app in order to understand the facebook login process within an iOS app.
I have a “Login with Facebook” button. When I tap it for the first time, it goes asking for permissions, then I tap YES and it comes back to my app.
At this point all is fine, I have a “Log out” button. I tap it, I get logged out as expected and can see the “Login with Facebook” button again.
Now here comes the question. When I tap the “Login with Facebook” button for the 2nd (or Nth) time, it shows me the facebook Confirm page displaying:
“You have already authorized THIS APP”
with a Cancel and an OK button.
Is this the way it should be?
It seems to me that the user knows he has already authorized THIS APP and does not need to be prompted each time.
In other words after tapping the “Login with Facebook” button it should not go through the facebook Confirm page.
Am I wrong?
If NO, why is this happening in my app?

How to return to app if user cancel Facebook Login?

I m working on facebook login. Everything is fine, when I tap on the login button it will take me to safari (or FB app) and ask me for FB login.
my question is how to make safari return to my app if I decide not to login and hit cancel button? its currently taking me to my facebook main page after hitting cancel and is not useful
thanks in advance!
I don't know how to do it exactly as you suggest but what you could do is create another view controller with a web view inside of it, and a navigation bar at the top that has a cancel button on it. This way they could log on to facebook from within the app, so they don't have to switch between things which can be a little lengthy! It would also allow an easy cancel button with 'dismissModalViewController' or whatever it has changed to in iOS6. I believe this should work :)

iOS UIActionsheet and flickr sdk conflict

We are using flickr ios sdk in order get photos. And app should start to download
images when user clicks to uiactionsheet item. After clicking item the current controller pops from navigation stack. And after that the app crashes and I see only [LFHTTPRequest(PrivateMethods) readStreamHasBytesAvailable] message.
When we use some view instead of actions sheet all work very well.
I read that this is a flickr's bug but I haven't found any solution for this.

Resources