cordova-docs icon indicating copy to clipboard operation
cordova-docs copied to clipboard

Add handleOpenURL to documentation

Open HarelM opened this issue 5 years ago • 3 comments

Feature Request

Motivation Behind Feature

I want to be able to open specific file types with iOS app (file association if you will). This is already implemented basically, but not documented. A documentation of how to achieve this would be amazing :-) (including what needs to be added to the plist file)

Feature Description

Add more documentation to handleOpenURL function which is currently not documented. I needed to reverse engineer the code to find out this is already implemented.

Alternatives or Workarounds

None, google search got me to 3.4 cordova docs where it is half mentioned there. I eventually found out about this by trial and error and reading the code...

Don't get me wrong, I think you are doing a great job with the cordova project, but this is a very nice addition that can be easily implemented using the edit-config for the -plist file and a simple js code: window.handleOpenURL = () => { ... }

HarelM avatar Nov 07 '20 21:11 HarelM

It seems the document was added here: https://github.com/apache/cordova-ios/blob/master/guides/Cordova%20Custom%20URL%20Scheme%20Handling.md

Without digging into the commit history, I don't know when this was added or why they didn't add docs there.

I will transfer this ticket to the cordova-docs repo, which is where all of our docs are stored that are displayed on the website.

erisu avatar Nov 09 '20 03:11 erisu

Thanks for the info. Please note that this can be used for file association as well and not only for custon url scheme as far as I understand... I might be wrong though...

HarelM avatar Nov 09 '20 05:11 HarelM

Is there an easy way to do it on android as well without any plugin? some sort of intent handling?

HarelM avatar Nov 29 '20 19:11 HarelM