-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue 934: added URL scheme support for MAC. #1769
Conversation
@rogerwang Please merge this - it is very useful for custom URL schemes that work already on all platforms but MAC and this pull request fixes it. |
👍 here here! |
Will this be merged soon ? I can't release the Mac version of my application because of this ... |
@dougtedd could you please update to the latest base? So @rogerwang can merge easily |
@gpetrov Reading your earlier comment, does that mean that there is already some URL scheme support for WIndows and Linux systems within node-webkit? ("Please merge this - it is very useful for custom URL schemes that work already on all platforms but MAC and this pull request fixes it.") |
Conflicts: src/browser/app_controller_mac.mm
The merge of rogerwang/node-webkit master has been performed. The result is in https://github.com/ribrain/node-webkit |
@dougtedd does this allow deep linking? or reading the url from within the app at all? |
@tommoor This fix should enable you to get access to the URL that the application was invoked through. E.g. if your app is bound to the protocol myapp and you open a link 'myapp://one.two' then the URL 'myapp://one.two' should be available in your node webkit app. This URL can be either accessed through the arguments passed to the app (gui.App.argv) or by adding an open listener, e.g.: |
perfect, sounds great. @rogerwang is there anything specific preventing a merge of this functionality? |
Fix for issue 934: added URL scheme support for MAC.
Thanks. I thought this implementation is platform specific. |
@dougtedd @rogerwang Can this be added back please, we can't update to the latest version because of this. Please help... |
I really need this feature :'( |
@rogerwang - Could you please check this and put it back in nw13? We really would like to finally be able to register custom Data Schemes on the Mac as well |
It's crazy that this has been removed, bring it back! |
Will fix this. Thanks for your patience. |
Merged to v0.12 as 98b1ef8 . Will port to v0.13 as well. |
@rogerwang Thanks! It should be noted that @achwedyk mentioned that he also needed to make this change: achwedyk@6f3ba7c to this PR in order for it to work on |
Will 0.12.4 be released soon with this fix? |
@rogerwang this still not in 0.13 - please merge it, it is a small code fix but very useful |
Any news on this feature for 0.12.4 or 0.13? We are waiting for this feature to launch our app. |
@rogerwang Please merge this in 0.13 - we are depending on it as well! then we will finally be able to switch to 0.13! This fix is only needed for the mac - on Windows it is all ok! |
I'll rework this patch since the architecture is changed in this version. Hopefully it will be released with beta. |
Thanks @rogerwang looking forward to it! |
@gpetrov could you please provide a sample app and steps so I can test it? |
@rogerwang you can test it very easy on any nwjs app, just follow the following few steps.
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>Test Extension</string>
<key>CFBundleURLSchemes</key>
<array>
<string>test333</string>
</array>
</dict>
</array>
var Gui = require('nw.gui');
Gui.App.on('open', function(url) {
console.log('APP OPEN EVENT! cmd: ', url);
});
On Windows the registration process is different but it results on the same of the app being started/or activated if running and the open event fired with the url. |
any progress @rogerwang ? I thought you will get it in the next beta ... |
+1 |
@hthetiot this was fixed in #4240 and was released with 0.13.0-beta6: http://nwjs.io/blog/v0.13.0-beta6/ |
No description provided.