I want to integrate WhatsApp
sharing in my app but I don't want to use UIDocumentInteractionController
. Is there any way to share image using url scheme
? like we share text using url scheme using following code below
var whatsappURL:NSURL?= NSURL(string: "whatsapp://send?text=Hello%2C%20World!")
if (UIApplication.shared.canOpenURL(whatsappURL)) {
UIApplication.shared.openURL(whatsappURL)
}
I think you can't do it.
Firstly, the Whatapps only support send text via URLScheme
. Secondly, how you can put your image in the urlString? Convert it to base64string?
You can only send image by using UIDocumentInteractionController
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.