So it looks like I can have our app intercept URLs...
# compose-desktop
s
So it looks like I can have our app intercept URLs on mac by modifying the plist:
Copy code
infoPlist {
    extraKeysRawXml = """
    |  <key>CFBundleURLTypes</key>
    |  <array>
    |    <dict>
    |      <key>CFBundleURLName</key>
    |      <string>AdCentral App</string>
    |      <key>CFBundleURLSchemes</key>
    |      <array>
    |        <string>AdCentral</string>
    |        <string>ad-central</string>
    |      </array>
    |    </dict>
    |  </array>
    |""".trimMargin()
}
Now my app will open when I trigger any url with the schema
<ad-central://test>
, but I don't seem to be able to actually gain access to the URL that was used to open the app to retrieve information I'd like to pass to the app. Does anyone know how to do this, or have any places I could start to look? I'm a bit stumped.
s
Thank you sir! It appears
Desktop.getDesktop().setOpenURIHandler
is the piece that I'm missing
works perfectly. Thanks again~