Wednesday, November 11, 2026
HomeiOS Developmentios - UIApplication.shared.open shedding all get parameters besides the primary one

ios – UIApplication.shared.open shedding all get parameters besides the primary one

[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&param2=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!

Twitter conduct



[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments