We have defined custom uri scheme for our Mac OS X using install4j but couldn't find a way to pass query parameters to the app as arguments using custom uri so that those are being passed to the underlying main method as arguments for us to process.
Example :
customuri://?somekey=value
when opened in a browser the app opens up with the parameters to be processed.