Post

Replies

Boosts

Views

Created

Share Issue
We are facing an issue where we share the Taqeem app (https://apps.apple.com/app/id6692622292) but sharing is not working properly. Few iPhone gives image, url however few share only image as shown in attached screenshot. Also with our devices (iPhone 16 Pro, iPhone 14 Pro - especially Pro series) if we share any ad from our app, it is sharing only image and text + url that we share also not get shared. We were using regular code as below. So we believe that Share using UIActivityViewController is having an issue. Images are available at below links. https://ibb.co/RkG70NqH https://ibb.co/dJKBR9jc Code I used is as below. func shareDetails(shareText : String, shareURLString : String) { if let shareURL : NSURL = NSURL(string: shareURLString) { // If you want to use an image let image : UIImage = UIImage(named: "logo.png") let activityViewController : UIActivityViewController = UIActivityViewController(activityItems: [shareText, shareURL, image], applicationActivities: nil) // This lines is for the popover you need to show in iPad activityViewController.popoverPresentationController?.sourceView = topVC?.view // This line remove the arrow of the popover to show in iPad activityViewController.popoverPresentationController?.permittedArrowDirections = UIPopoverArrowDirection.down activityViewController.popoverPresentationController?.sourceRect = CGRect(x: 150, y: 150, width: 0, height: 0) // Pre-configuring activity items if #available(iOS 13.0, *) { activityViewController.activityItemsConfiguration = [ UIActivity.ActivityType.message ] as? UIActivityItemsConfigurationReading } if #available(iOS 13.0, *) { activityViewController.isModalInPresentation = true } topVC?.present(activityViewController, animated: true, completion: nil) } } Thanking You
2
0
137
3w