Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Open URL with custom protocol

Community Beginner ,
Dec 30, 2020 Dec 30, 2020

I'm developing an extension that communicates with a separate app that the user is expected to have installed and running. This app has registered a custom URL protocol, like foo:// which opens the app. When this URL is entered from the browser, it correctly opens up the app. However, I'd like to also have a button in my extension that will open the app using that protocol. Using cep.util.openURLInDefaultBrowser will not work, because that function requires that the URL have either the HTTP or HTTPS protocols. I've tried using the npm open package, but that does not appear to do anything (totally possible I'm doing something wrong there). Is there a way to accomplish this?

TOPICS
SDK
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Dec 30, 2020 Dec 30, 2020
Translate
Adobe Employee ,
Dec 30, 2020 Dec 30, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 30, 2020 Dec 30, 2020

In case anybody else is looking for this answer in the future, open does work, I just had a typo in my protocol 🤦‍:female_sign:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 30, 2020 Dec 30, 2020

Confirming: Your custom protocol handler works?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 30, 2020 Dec 30, 2020
LATEST

Correct - not using CEP, but using the open npm module.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines