UIActivityViewController not showing facebook and twitter in iOS 8 - ios

I need to share two things:
1. Audio file
2. Image file
I am passing local paths as items to the UIActivityViewController. Previously on iOS 7 it was showing all required options like SMS, Mail, Facebook, Twitter. If I choose SMS or Email it attaches photo and audio both. If I choose Facebook or Twitter it shares photo only that is fine to me.
Now on iOS 8 it just shows SMS and Email. Why here it is not showing Facebook and Twitter like iOS7?

Related

How to fetch only WhatsApp Contacts from iPhone Contacts?

How can I fetch only WhatsApp contacts from iPhone contact list using swift.
I fetched contacts information from my phone got following response:
whats app contact
<CNContact: 0x13bd92310: identifier=04B80557-011F-4437-B132-43E2B0D70CD9, givenName=Tech, familyName=.vijaykart, organizationName=, phoneNumbers=("<CNLabeledValue: 0x170661e80: identifier=579A8A18-F113-4C6E-878A-68D18BFE4A8B, label=_$!<Mobile>!$_, value=<CNPhoneNumber: 0x17023f420: countryCode=in, digits=+919791291980>>"), emailAddresses=(not fetched), postalAddresses=(not fetched)>
Non WhatsApp contact
<CNContact: 0x13bd808d0: identifier=E09E916A-7829-4288-8731-A3789FA75F18, givenName=Kcm, familyName=Milk, organizationName=, phoneNumbers=("<CNLabeledValue: 0x174264bc0: identifier=CCF42FEB-2062-4425-81B9-1BF9EABE771C, label=_$!<Mobile>!$_, value=<CNPhoneNumber: 0x17422ddc0: countryCode=in, digits=+919443551702>>"),emailAddresses=(not fetched), postalAddresses=(not fetched)>
But not able to detect if it's WhatsApp contact or not.
Yes according to #Bittoo who have commented above is rit, It is not possible to get only WhatsApp contact, IOS Not allowed you to get others data within the app without the apps permission, if suppose WhatsApp provides their sdk like FB or instagram then it may allowed you through their sdk, if user phone has whatsapp installed, then through their sdk, they may allow you to get their contacts.

ios - whatsapp url scheme doesn't work when adding hashtag (%23)

I have an angular based website with a whatsapp share button using the url-scheme.
I'm trying to open whatsapp with text containing a URL. As in angular based sites, the site name contains an hashtag (%23). Like the following example:
whatsapp://send?text=Hello All%0AHow are you%0A%0Ahttp://www.example.com/%23/login
This works perfectly on android device.
However, on iOS, the whatsapp get opened but the text isn't imbeeded in the input area. (specifically version 9 as I only have devices of that version)
Any Suggestions ?

How to share URL using Xamarin iOS

I'm developing an app for my local newspaper. When you press the "Share" button, I want the standard iOS share interface to appear allowing users to share the URL of an article with Facebook, Twitter, etc. I'm trying to use the UIActivityViewController, and while it appears, it's not giving me all of the options.
Here's the code I use:
NSObject[] activitiesItems = {
new NSString(post.Title),
new NSUrl(post.URL)
};
var activityController = new UIActivityViewController(activitiesItems, null);
PresentViewController(activityController, true, null);
When the UI opens, this is all I see (no Twitter or Facebook):
This is in comparison to what I see when I share a page from Safari, which has the Facebook and Twitter options, along with a variety of others:
What do I have to change in my code to allow more of these options to appear?
1) Your code is fine
2) On your iOS Simulator go to the Setting and login to Twitter and/or FaceBook accounts and retest your app.
iOS Simulator Setting (botton off screen):
Here is my Simulator view with me logged into Twitter but not Facebook using the same code you posted:
3) Safari is a using a custom ViewController to display what you are seeing... If you actually try to share a link via that Twitter button you will be force to login..
4) Use an actual device for complete testing of all the possible sharing applications installed.
Those options are only supposed to show when you are logged in to an account in the Settings app for FB and Twitter. They are hidden if not.
However that doesn't really explain why they show up in Safari.
Perhaps including the NSString for post.Title in the items array is causing it to exclude some sharing options.

Share text AND media with WhatApp Share Extension

I'm using a UIActivityViewController to enable the user to share photos and videos created with my app. I attached two UIActivityItemProviders to it: one for the media and one for a default text to use ("Created with...").
This works well for all share extensions I tested—except for WhatsApp. WhatsApp only shows the text in the message dialog—no photo or video. When I leave the text blank, however, it will show the media file.
Is there any way I can share a photo or video with a default text/caption via WhatsApp?
I'm facing the same challenge. I implemented my own extension using https://github.com/sascha/SSCWhatsAppActivity. The downside is that you'll get two WhatsApp entries when sharing. WhatsApp's own one, and the custom one. I tried excluding WhatsApp's own extension using UIActivityViewController.excludedActivityTypes with the activityType net.whatsapp.WhatsApp.ShareExtension but since iOS 8.1 this is not possible anymore (on purpose or a bug). More on that here: http://johnszumski.com/blog/excluding-third-party-apps-from-ios-8-share-sheet
My conclusion, there is no way to provide both text + media to WhatApp own sharing extension. I decided to keep my custom WhatsApp sharing extension and name it "WhatsApp (+Image)" so the user can distinguish the two.

How to Show Tweet via [MyAppName] in Twitter when I tweet via SLComposeViewController iOS sdk

I have implemented to tweet by default ios sdk using SLComposeViewController ,
But In twitter , Its Shows via iOS by default,
How I can set my Appname, that it will show "via [MyAppName]" in twitter
I have already create app with same name of ios app in twitter and its only 5 character name,
My App is live on app store. Still It doesn't show via[My App name]
Please give feedback of any other suggestion or any idea you have.
I don't think you can do that using SLComposeViewController.
You'll need to have registered an "application" (AKA obtain an API key) on dev.twitter.com to use custom name in "via [MyAppName]" on Twitter.
After that, you can create your own custom view to post to Twitter.

Resources