Share Image and text together on WhatsApp in swift

10k Views Asked by At

I share image and text using UIActivitycontroller it works fine for all application installed in device but in WhatsApp, it only share text not image. Why?

So, what i have to do share image and text together in WhatsApp in iOS.

1

There are 1 best solutions below

2
Karen Hovhannisyan On

You can post Image or Text on WhatsApp. However you can't post both at a time as whatsapp does not provide any API that you can add caption and post image with text.

Now there is an api available for interacting with WhatsApp:

http://www.whatsapp.com/faq/en/iphone/23559013

Also Find below helpful answer:

You can use the UIDocumentInteractionController as mentioned in the 2nd answer to this question as of August 4, 2014: Share image/text through WhatsApp in an iOS app