I was just wondering if url schemes work in OS X (or Win32) by chance?
I’m not sure if you’re asking about using or implementing a URL scheme.
Using one on OS X is simple:
system.openURL( "macappstore://itunes.apple.com/us/app/json-toolbox/id525015412?mt=12" )
On OS X … in theory it should be possible to set up a URL scheme in build.settings but I suspect there may be a couple of bugs in that area. I’ll make sure to add URL schemes to my test cases.
I’ll ask about Windows as this is a very OS dependent feature.
[quote=“Perry_Clarke,post:2,topic:334892”]
I’m not sure if you’re asking about using or implementing a URL scheme.
Using one on OS X is simple:
system.openURL( "macappstore://itunes.apple.com/us/app/json-toolbox/id525015412?mt=12" )
On OS X … in theory it should be possible to set up a URL scheme in build.settings but I suspect there may be a couple of bugs in that area. I’ll make sure to add URL schemes to my test cases.
I’ll ask about Windows as this is a very OS dependent feature. [/quote]
Thank I was talking about stuff like myApp://data
If you’re talking about launching your app via a URL scheme, then on Windows, you would set up a URL scheme association with an EXE via the registry as documented by Microsoft here…
https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
***BUT*** writing to the HKEY_CLASSES_ROOT registry requires admin permissions and you can’t assume your app will be running with admin rights on the machine. Windows works this way to help prevent virus makers from taking advantage of this feature which Windows users take very seriously. Writing to this section of the registry is usually done via an install program which is not something Corona is going to create for you. There are many 3rd party install program creation tools out in the market (InstallShield, Wise, WiX, AdvancedInstaller, etc.) that you can use to package your app and it’s up to you to decide how to proceed from there.
Is implementing a URL scheme possible on OS X and if so how?
Thanks,
Scott
As of Daily Build 2695 this is supported for OS X apps. You can find the documentation here: https://docs.coronalabs.com/daily/guide/distribution/osxBuild/index.html#customurlschemes
Daily Builds: http://developer.coronalabs.com/downloads/daily-builds/
Note you’ll have to build the app and run it to test this. The Simulator wont respond to your custom URLs.
I’m not sure if you’re asking about using or implementing a URL scheme.
Using one on OS X is simple:
system.openURL( "macappstore://itunes.apple.com/us/app/json-toolbox/id525015412?mt=12" )
On OS X … in theory it should be possible to set up a URL scheme in build.settings but I suspect there may be a couple of bugs in that area. I’ll make sure to add URL schemes to my test cases.
I’ll ask about Windows as this is a very OS dependent feature.
[quote=“Perry_Clarke,post:7,topic:334892”]
I’m not sure if you’re asking about using or implementing a URL scheme.
Using one on OS X is simple:
system.openURL( "macappstore://itunes.apple.com/us/app/json-toolbox/id525015412?mt=12" )
On OS X … in theory it should be possible to set up a URL scheme in build.settings but I suspect there may be a couple of bugs in that area. I’ll make sure to add URL schemes to my test cases.
I’ll ask about Windows as this is a very OS dependent feature. [/quote]
Thank I was talking about stuff like myApp://data
If you’re talking about launching your app via a URL scheme, then on Windows, you would set up a URL scheme association with an EXE via the registry as documented by Microsoft here…
https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
***BUT*** writing to the HKEY_CLASSES_ROOT registry requires admin permissions and you can’t assume your app will be running with admin rights on the machine. Windows works this way to help prevent virus makers from taking advantage of this feature which Windows users take very seriously. Writing to this section of the registry is usually done via an install program which is not something Corona is going to create for you. There are many 3rd party install program creation tools out in the market (InstallShield, Wise, WiX, AdvancedInstaller, etc.) that you can use to package your app and it’s up to you to decide how to proceed from there.
Is implementing a URL scheme possible on OS X and if so how?
Thanks,
Scott
As of Daily Build 2695 this is supported for OS X apps. You can find the documentation here: https://docs.coronalabs.com/daily/guide/distribution/osxBuild/index.html#customurlschemes
Daily Builds: http://developer.coronalabs.com/downloads/daily-builds/
Note you’ll have to build the app and run it to test this. The Simulator wont respond to your custom URLs.