Launching an app with image data from an email - ios

I know I can launch an iOS app using URL Schemes embedded in an email. How would I launch my app and pass it an image that is included in the email? Can the URL reference the image in the email? Or is it possible to automatically load the image to the clipboard? I'm trying to do this in one step and not have the user manually tap and hold to put an image on the clipboard. Thanks for your help.

Assuming the image is available from the web in some consistent format, perhaps it's best to:
Include the image's web address as part of the URL that opens your app
(myapp://getImage/uniqueImagePath/)
Get the image path via the referrer
Add the base url (myphotohost.com) and extension (.jpg) to the path
Download the image client-side
The consistent format would be myphotohost.com/uniqueImagePath.jpg
Here's a link that explains using an identifier (like uniqueImagePath in this context)

Related

How to get url with image with ios ShareExtension at the same time?

I want to share image URL with main homepage URL when sharing in safari to my iOS app with ShareExtension.
Example
Currently, I am only getting an image URL.
Is this possible to get a homepage URL with an image URL with ShareExtension?
[Edit]
Actually, I am using https://github.com/meedan/react-native-share-menu in React Native.
I've also gone through the ShareExtension doc in iOS but it seems that it checks the share type and sends image URL only for the intent. Code is all there in the GitHub and you may test it out with the Test project in Github.
I am just wondering if there is any way to get a homepage URL with an image URL when sharing the image. Because the system is easy to know the homepage url while sharing an image URL.

How to post image to instagram Feed Directly in Swift?

is there any way to share image to instagram feed directly. I can Only Share image using default share functionality i m using swift 5 and xcode 11
it is not possible to post images/video to the Instagram app directly. Instead you can pass the image/video to the app and follow the process of manually posting to Instagram normally, there is another catch as well you cannot pass the title (caption) either you would have to copy the text to clipboard and on the final process of posting you can paste that text from clipboard.

iOS 8 UIActivity: disable specific third-party sharers?

I'm fighting with UIActivityViewController in iOS 8. I'd built a custom Pinterest sharing mechanism which works beautifully in iOS 7 -- specifically, it uploads an image to my server, and then creates a Pin with that image and a URL which I specify. This is the desired functionality.
Now, in iOS 8, Pinterest has implemented its own sharer, which accepts either a URL or an image. If a URL is included in the list of Activity Items, the sharer pops up and asks the user which image s/he wants to share from the page at that URL, and totally ignores the image which is also in the list of Activity Items. If there's no URL, and just the image, then the uploaded pin doesn't include a URL.
In order to resolve this, I need to do one of these things:
Disallow Pinterest's sharer from appearing in the list, so my customized sharer can show up instead;
Somehow specify a Source URL within a pin of an image using Pinterest's sharer (I doubt this is possible);
Remove all the other images from the generated web page. I'd really rather not do this.
Or if all else fails, it would be useful to at least be able to detect if the user has Pinterest's sharer selected to show up in their list.
Does anyone know if there's a way to achieve any of these things?
Just an idea, you could set a custom UIActivitySource on your UIActivityViewController.
Then check the incoming activity type for Pinterest. Then disable that via the exclusions.

Post link to Facebook including app URL scheme - iOS 6

I'm using the UIActivityViewController to share an image and url from within my app.
I'm having trouble formatting the facebook post. I attach an image using a subclassed UIActivityItemProvider and provide the text for the post in the same way.
I want to add a url, but it needs my apps custom url scheme in front of it like this
myurl://image?url=http://imageurl.com
The problem is, when this is posted, only the last half of the url is clickable (from http:// onwards). Which means it doesn't open my app with the url.
Is there another way to do this?
I know I can create an app on Facebook, but how can I tie the two together using the UIActivityViewController?
Thanks
You have 2 options :
Create a simple server-side web service that will redirect from http://yourserver.com/linkToApp/image to myurl://image .
It could even show a different page/preview if the app is not installed/if you're not on an ios device.
Create a facebook app and use "Deep linking" (it will basically do the same for you..)

iOS tweet image - Can I get the image url before upload?

I want to be able to share images from my app on twitter/facebook/email etc..
There's probably hundreds of different ways to do this which is quite simple.
However what I need/want to do, is allow the images to be opened by other people straight into my app (If they have it installed).
So I have a url scheme so a url will open my app with an image like this:
myurlscheme://image?url=http://imageurl.com
The problem I have, is the process for uploading the image, but adding my url scheme to the beginning of the url.
If I could know the url twitter/facebook is going to use before I send the tweet, I could add my url scheme to the front of the image url and put it in the tweet. I'm guessing this might not be possible though.
Another thought is to upload the image to another service, get the url, then compose and send the tweet. Are there any suitable services for doing this? (Preferably free services) I dont really want to have to host the images myself.
Thanks
1) I don't see how you plan on conjuring an image URL before you upload the image - that is a chicken/egg situation. I would recommend taking a look at an actual image URL after you upload it to facebook, twitter, etc and try to figure out even one character of what it would be for the next image you upload. Regarding twitter specifically the image URL is also going to vary depending on what upload service is being used.
2) regarding uploading the image and getting the URL why not look into tapping into the flickr API?

Resources