How to get the source app from a iOS share extension? The reminder app knows the text is shared from the notes app - ios

When I share a note from iOS notes app into Reminders, the reminders is able to know that it is from the notes app, and display the notes app icon.
I have looked at NSExtensionContext etc and couldn't figure this out. Is this specific only to Apple Apps?
I am implementing a share extension that others can share to, however, I can't figure out how to get that I am getting a share from notes vs other apps.

Related

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.

Has anyone noticed strange UIPasteboard behaviour when using apps which integrate Google services?

I just opened an iOS app (App Store version) I made which includes the Google AdMob and Firebase SDKs. As the app was loading, I saw the standard iOS alert for pasting contents from iCloud's Universal Clipboard feature. My understanding is that this happens when a user retrieves UIPasteboard contents, mainly via the "Paste" menu item in UITextInput controls.
I know for certain that none of the first-party code references UIPasteboard, and no user interaction could have triggered this. My fear is that one of these analytics services is retrieving the contents of the pasteboard, which I would think is egregious.
Does anyone have any experiences with this or recommendations to resolve it?

My App Inside WhatsApp's Share Extension

Hello when i am in WhatsApp and i want share a image, its going to open Share Extension with many apps like Slack. And when i am in App Photos and i want share a image, its going to opens Share Extension with apps like Flicker but isn't Slack. So my question is, can i add my own app to Whatsapp's Share Extension? and How can i catch it in my own app with Swift?
Yes, you can. So actually it will not be your main app,but it will be an extension to your main app.
Share extensions are made for the exact same purpose.
Kindly check for "Share Extension"
Following link may help you.
https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Share.html#//apple_ref/doc/uid/TP40014214-CH12-SW1

How to make your app available in UIActivityViewcontroller listed activities

How to make your app available in UIActivityViewcontroller listed activities.
Im unable to find the exact name of this feature.
Here is what I wanna do. My app is a social app where whenever other apps will share the content in UIActivityViewController I want my app to appear in the activities list.
I Apologise that I have no idea about what it is called. Anyone can please help me out.
it's called App Extension, you can use share extensions to share the data between the extension and your app. For more information refer the App Extensions Guide

How to get listed in the share menu?

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option.
How do I get my app listed in there?
This is the menu I would like to get listed in:
In iOS 8, Apple has now enabled a way for you to add your application to a user's Share Sheet as one of many features of Extensibility, which aims to make your app available to the user even when closed.
You can read a lot more about share extensions here, or go straight to Apple's pre-release documentation to dive into the code.
Update: Above link of Apple documentation is not working, check here App Extension Programming Guide: Share
You can do this by adding a few entries into your apps info.plist.
Here's a post that should answer this for you.
slashdot post
also here another link
You can't automatically be added to the UIActivityViewController in other apps. The only things that appear on that "share menu" are a few predefined apps that Apple has added support for, as well as any other app specific activities an app decides to add.
You can setup your app to appear in a list of apps for opening a file but that is not the same as what you are asking for here.

Resources