I am developing an application in java for mac osx. I need to implement a custom protocol for it. Its same as some inbuilt application in osx, like when we hit mailto:// in Safari browser it open default mail application.
My requirement is same as it. I have written following code in info.plist of application bundle and its working fine.
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>SBR</string>
<key>CFBundleURLSchemes</key>
<array>
<string>sbr</string>
</array>
</dict>
</array>
I can open my application using Safari browser by hitting sbr://.
Problem-
I want to pass some argument with this protocol like sbr://user:[email protected] and then take these arguments user:[email protected] as String in java code to perform some operation.
Any help or suggestion is appreciated. thanks.