• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Deep linking from 1 tvOS app to another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deep linking from 1 tvOS app to another


  • Subject: Deep linking from 1 tvOS app to another
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Fri, 16 Jun 2017 15:00:24 +0000

I have deep linking working, but if I introduce spaces into the URL, it
fails. Is this expected or can I do this another way?

textfield value "hello my name is Eric"

@IBAction func editingEnded(_ sender: Any) {
        if let supplied = textEntry.text {

         *   //If I don't do this, url is nil*
            let modified = supplied.replacingOccurrences(of: " ", with: "+")
            let url = URL(string: "(mySchemeHere)://article/\(modified)")
            UIApplication.shared.open(url!, options: [:],
completionHandler: nil)
        }
    }

--> comes in to my other tvOS application as

"hello+my+name+is+Eric"

URLs need encoded for real-world use, so I assume that it needs done for
app to app comm too?

Eric
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Deep linking from 1 tvOS app to another
      • From: Jens Alfke <email@hidden>
    • Re: Deep linking from 1 tvOS app to another
      • From: Aandi Inston <email@hidden>
  • Prev by Date: Unable to extract JPEG from PHAsset
  • Next by Date: Re: Release mode bindings crash and release pools
  • Previous by thread: Re: Unable to extract JPEG from PHAsset
  • Next by thread: Re: Deep linking from 1 tvOS app to another
  • Index(es):
    • Date
    • Thread