How to receive file using "Copy to" share intent from other apps swift iOS - share

I want Copy to, Edit with, Save to, Email to options in third party share intents for my app like Copy to my app, Edit with my app, Save to my app, Email to my app. Do we need to use Share extension or something else, thanks?

Related

How do I open the Contacts app Swift

Is there a URL to open the contacts application from within my application? I know you can achieve this with the settings app by using the UIApplicationOpenSettingsURLString constant in Swift; however, I wasn't sure if I could do the same with the Contacts app.
There isn't a deep link for opening the Contacts App.
Apple is very picky when it comes to deep-linking. They have to provide one for Settings since many apps need services like Data, Location, Bluetooth, Wifi, etc.
Unfortunately they do not extend this to the Contacts App.
However if your app needs contact information then for that Apple has provided a Contacts framework to browse through your contacts within your app itself.
Read more about it here.
In order to add/update/delete/merge contacts directly from your app without using the Apple's Contact UI, use the CNSaveRequest APIs. More on that here.
The closest thing you can get to opening a contact is to write them a message in IMessage. From this screen the user can press the contact icon and open the contact page for that particular contact.
You can do this by opening the url sms://+44776382223 where the number is the number of the person that you would like to view the contact of.

Prefill user data just after download and first launch iPhone app

User downloads my iPhone app from the appStore link I provide from invite email. Is it possible to persist/cache the user-data say email Address and pre-fill when the app launched.
Thank you.
You can get all the data that Apple allows you to get, which is absolutely none - you can't get the user's email, you can't get his phone number, you can't get his UDID. No way to identify him. If you want anything from the user, he needs to enter it manually. If you think about it - it's actually a good thing. All your iphone information is completely secure and protected.
No, this can't be done. Your special link might take the user to the app store, but then that's it. The act of installing the app has nothing to do with your link anymore and no data can be passed to the freshly installed app.
Of course once the app is installed, if the user taps on a special link you provide, it could force your app to run and provide data to it.
Maybe you could provide a QR code the use can scan with your app the first time they run it. The QR code can contain the data you want. Of course the user may choose to not scan the code. Then again, the user can install your app without using your link to begin with.

iphone - adding option for gifting the app

In my iphone app, i'd like to add the option to "Gift" the app.
Basically I like to add a button which pops up the username to whom i want to gift.
Is this possible?
As far as i know this functionality is part of the App Store and there is no API to provide that functionality in-app.
CheersShai
The best you can do is make the "gift" button open up the app store pointing to the app's page (which is still useful, IMO).
Once you have the web URL for your app, tell your UIApplication to open it and the user will land in the App Store app:
How to link to apps on the app store
Make sure you use the itms-apps:// hint below the accepted answer or you'll wind up with a double redirect which is annoying.

auto text messaging syncing

What I want this App to be able to do, is to be able to allow the individual copy all the text messages on his/ her phone and then send them to their profile on the website that I am creating. Is this possible ?
If you mean the user copying from the SMS app to your app via cut and paste yes. But I think you mean can your app programmatically grab all of someone's text messages and the answer to that is no.

Sharing application link via the same application, iphone

Possible duplicate:
How can i give app store link in my apps before approving another apps
linking to an app on the Itunes store
How to link to apps on the app store
Hi all,
I'm a littile bit confused. I need to provide the download link of my application (the iTunes link) inside my application. ie when the user would like to invite others via mail or some other means, have to provide the application link too with that.Is there any way to provide that before submitting the application to apple. Or i need to use the link as an update after getting my application approved by apple?
To be able to provide an iTunes URL, you should know the unique ID for your app and AFAIK, there's no way to get this ID before getting your app in the store first.
You can try and construct a search URL, but it doesn't always give the desired result. For example, I currently have only one app in the store, but there's another developer who uses the same developer name as me, so a search URL for my app produces two results. If this is your first app, and searching for your developer name produces no results, it could be safe for you to go with a search URL.
Even if you use a search URL, you will want to replace it with a proper iTunes URL in the first update.
Read this article by Bjango for more information on iTunes URLs and quirks of using search URLs: Dissecting iTunes links