[ad_1]
I’m making an attempt to cross a URL to twitter and whatsapp, by way of using deeplinks utilizing the next code (instance of twitter)
if let shareURL = URL(string: "https://twitter.com/intent/tweet?url=https://www.dummydomain.com/somepage?param1=ex1¶m2=ex2") {
print("--- right here for (shareURL.absoluteString)")
// this print assertion right here reveals appropriate url with each parameters
UIApplication.shared.open(shareURL, choices: [:]) { _ in
self.presentingViewController.dismissWithAnimation()
}
}
After I faucet on the button liable for invoking this operate, it does take me to the twitter app, however on the twitter app, the URL loses param2. Any concepts on repair the conduct? Thanks prematurely!
[ad_2]
