Skip to content
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

Add handleOpenURL to documentation #1135

Open
HarelM opened this issue Nov 7, 2020 · 3 comments
Open

Add handleOpenURL to documentation #1135

HarelM opened this issue Nov 7, 2020 · 3 comments

Comments

@HarelM
Copy link

HarelM commented Nov 7, 2020

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 = () => { ... }

@erisu
Copy link
Member

erisu commented Nov 9, 2020

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.

@HarelM
Copy link
Author

HarelM commented Nov 9, 2020

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...

@erisu erisu transferred this issue from apache/cordova-ios Nov 9, 2020
@HarelM
Copy link
Author

HarelM commented Nov 29, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants