share it button doesn't work ios 7 xcode 5 - ios

i'm trying to make two buttons in one new viewcontroller, one for facebook and the other one for twitter. I'only want to make a simple post for each one.
The problem is when i follow this tutorial http://www.appcoda.com/ios-programming-101-integrate-twitter-and-facebook-sharing-in-ios-6/ and i use it on my new xcode 5 project it doesn't do nothing. I don't know if there's a new way tho share content in xcode5/ios7 but for now can't find a way. If anyone knows how can i fix it it would be great. thank you in advance.
Marc

There is a sample project for sharing images and text on Facebook and
Twitter .
Please go through it .If you have any query ask me.
Here

Related

How to implement sharing suggestions in iOS Swift?

I am trying to follow this apple developer article to implement share suggestions in a sample iOS project.
I have followed these 3 steps exactly as described
Added a share extension in my app.
Declared support for the INSendMessageIntent intent type.
Donated an INSendMessageIntent in app and its share extension.
In the below screenshot, we can see sharing suggestions from Messages app and one other app.
The problem
Although I have followed all the steps as described in the article, my sample app is not showing as a suggested conversation when i try to share something.
Sample code
You can find the sample project on Github
What am I missing here?
Any help would be much appreciated.
Thanks in advance.
1- First you must add your app in suggestions list from the "More" Options. ( Only if you are not seeing your app in apps row in the share sheet )
2- Code Problem: You must provide a not nil image inside intent:
INImage(named: "Image Name") // Won't work if image not exists.
Problem:
Or, Skip Image like this to make it work:
INImage(named: "") // Tested and working
One Interesting test, When image name doesn't have space, it works even if image doesn't exists:
INImage(named: "ImageName") // Tested and working
You can see the working example here: Github
Working:

Xcode swift: How to add a share screen where you can share your own app

I would like to add a share button to my Xcode project which, like for example by WhatsApp (if you press the share button there), displays a screen where you can share this app with a link to the AppStore (for example to share this app with your friends). Would this function also work if you have not yet published your app in the AppStore? Or do you have to publish the app first and then bring an update directly where this function has been added because otherwise, you won't get the app link?
How would that work?
I would be very happy to get help!
Warm greetings
The way I do it is by using firebase and dynamic links, its like getting your URL from apple but also being able to edit what page they see when they click on the link to go to your app.
if you go to the firebase website they have easy documentation and videos to set it up.

Deep link work in iPad, but not in iPhone

I'm working on an old iOS application made in Objective C. I have an html button with a deep link inside a WebView (don't ask why, I have to do this way, not my choice). This Deep Link should open the inApp page of subscription of my app.
It works well when I run my application on iPad but nothing happen when I try it on iPhone (regardless of iOS version or device).
It's not me who implemented the deep link code, so I can't be sure that it's ok. I search a lot, but I didn't find anyone who had the same issue.
If you need more information to help me, let me know.
Thank you.

For google firebase dynamic link, wiith preview page off (efr=1), the link always redirect you to app store even if the app is installed

Seems a few people had the issues too, but didn't figure a solution yet. For example I am having exactly the same this one.
Also according to this a reliable way to test if the universal link set up properly or not is to test the link in the notes app, which works for me. (Also works if I send the message with the link to myself.) However I can't open the app directly in most chat apps (eg. slack, discord) nor safari. On the other hand they works with the preview page on.
Anyone had a fix / workaround? Or that's just how it is (saw this might be issues with app trying to open the link in there build in browser and prevent redirecting somehow ?)
Any help or suggestion will be highly appreciated. Thank you in advance.
I had the same issue, enabling both universal links and custom url schemes for my dynamic link solved the issue.
Dynamic Links -> Edit Link -> Define link behavior for iOS
This is the setup:

Swift 2 open twitter app

since ios 9 and swift 2 this line of code
NSURL(string: "twitter://user?screen_name=YOURNAME")
does not work anymore to open the twitter app, it will redirect to the website instead.
I have been trying to fix this but cannot find anything. Somebody knows how to fix this?
Thank you for any help or support
This actually works again, definitely had problems for a few days where it would not open twitter app. Maybe signing out and back in settings-twitter did the trick.

Resources