iOS extension- sharing bubble vs sharing button? - ios

I have read the apple docs about app extensions- sharing
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ShareSheet.html
What they say is that when an host app has a sharing button , you can choose your app extension to share content .
But it seems that there is another sharing option that is not in the docs, and i cant figure out whats the different and how you enable this extension.
When you mark any text in ibooks ,or Safari , there is a little bubble opened with copy, past, select all, and share.
there if you hit the share button, you prompt with apps extensions, and you can share that highlighted text with the extension .
So, questions are :
the highlighted text sharing- is it enabled in every app that lets you to highlight any text ?
How you enable this extension, and is it the same as the regular sharing extension? (where you have a button with a rect and an arrow). Developing an app with sharing extension would be relevant to both cases ?
thanks.

Well , it seems that the sharing extension is working with the "bubble" sharing button , but with the regular sharing button(a rect and an arrow) you get as an input -a link to the page, much as Pocket do .
So software speaking its the same, functionality is different.

Related

How to make iOS application appear in list of suggested applications after screenshot?

I'd like my app to appear in the list of suggested applications that can be seen after taking a screenshot in iOS.
For example, currently when a user takes a screenshot and taps the send/export button, a modal appears over the bottom half of the screen which contains a list of applications that the user can export the image to, and even a more button which contains further app options.
What needs to be done in swift iOS app project (using xcode ide) in order to achieve this?
To display your app in theUIActivityViewController, you need to create a Share Extension for your application. To create a share extension for your project, go to file > new > target > Share Extension. You can refer to Apple's Documentation for share extension!

How do I share a link to Whatsapp on Xamarin.iOS?

I'm working on a cross-platform PLC project on Xamarin.Forms. Specifically on iOS and Android.
In one of the views I have 3 sharing buttons, one for Whatsapp, one for Snapchat and one for general sharing. The idea is that when the user taps on one of these he sends an invitation (a deep link) to his friends trough social media.
I've implemented some android-specific code to share a link trough Whatsapp or Snapchat when tapping those buttons, and to show the normal sharing screen to pick an app on the other share button. For this I just used Intent.SetPackage method to share on the specific apps.
On iOS however, even tho there's a code to open the general sharing screen, I couldn't find any code to send the link to Whatsapp or Snapchat specifically.
My question would be, is there a way to achieve this on iOS?
This could maybe be a solution for WhatsApp, https://faq.whatsapp.com/en/general/26000030
Snapchat: Snapchat url scheme not working properly - camera opens but not profile
On the end we didn't find what we where looking for, but we noticed apps usually just have a common share button on iOS, so we left only the normal sharing code in iOS.

It is showed up two same apps button in UIDocumentInteractionController popup

I appologize for my low level English.
I developed Share Extension in my app to support the extention added at iOS8.
But, my app has been already showing up in UIDocumentInteractionController popup.
So, my app has been showing up two items for same app after supporting share extension:"xyz, copy to xyz".
'xyz' is my app name.
I want to make to show up only one item at UIDocumentInteractionController popup menu.
Is there any way to do it?
I have suffer this familiar situation when i research share extention.When i open safari to share web url to my APP, the safari's share menu has two same APP button.Then i click Product-->Clean solve this problem.This seems caches should be blame for it. I also apologize for my poor English.

Is it possible to jump directly to one of the share extensions in UIActivityViewController?

Instead of using e.g. ShareKit or custom URL-scheme(to share to e.g. WhatsApp or Instagram), can you tap a button inside the app and skip the share extension dialog and go directly to one of the sharers there?
What I want to achieve is to have a button for each share type in our app, and tapping that button brings the user directly to the share screen for that type.
EDIT: We already have the share extension sharing working today, but we want to have a separate button for each sharer, like many apps have today. See attached example from musical.ly.
Yes it is possible but depends on what exactly you want? Did you want to send some file to printer? Or Email something? share via AirDrop?

Is it possible to create "Add to Home Screen" like feature from another app?

Currently "Add to Home Screen" works only with Safari browser. 1. Is it possible to programmatically create "Add to Home Screen" short cut from a custom native iOS app ? 2. Is it possible to make the short cut to launch another app, not the safari app?
This is a bit broad a question, but I'll attempt an answer. Short answer: no. You cannot add a home screen icon that launches another app from within your app without going through Safari first. (You can, however, link to another app directly from yours. See below.)
More intricate answer: if you want to launch another application from your own, and the application supports URL schemas (i.e. instagram:// for launching Instagram), you will be able to. Please see this link for the official docs.
The part that may remain unanswered here is whether a UIWebView can create a home screen shortcut from inside another app. It seems you cannot do this, after a bit of googling. This answer explains.

Resources