1

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.

1 Answers1

0

The application has to be registered to handle the URL invocation.

This is not related to install4j.

See

Handle custom URL schemes in an OS X Java application

Community
  • 1
  • 1
Ingo Kegel
  • 46,523
  • 10
  • 71
  • 102
  • Thanks Ingo. We have already done that custom XML fragment definition in install4j to register the custom URI. But what i was looking at is how do we pass query parameters so that those are passed to the underlying main method mentioned in the install4j installable. Since install4j generated the installable i am not sure how do we handle the custom URI parameters? Any suggestions? Can we write custom native App and embed it together with the install4j generated file? – user2321393 Dec 22 '14 at 03:30
  • You have to write a JNI library that registers the application for handling URL application like outlined in the referenced question. – Ingo Kegel Dec 22 '14 at 07:34