The provided Christopher Pickslay code works fine, you just need to add the following lines to the info.plist application (open as source):
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>com.mikitamanko.myapp</string> <key>CFBundleURLSchemes</key> <array> <string>some-context</string> </array> </dict> </array>
right after
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>
Here is a complete guide on how to open the application or share default users with the extension and containing the application.
source share