-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added download event #743
Added download event #743
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
I left a few comments but due to the nature of this PR, I would also invite you to join our dev mailing list for discussion on Cordova development. I'm personally hesitate to merge any new features that only supports a single platform, unless if there is a good reason for it.
@breautek Is there any chance of this getting merged in? I'd like to avoid forking this repo to enable file downloads on android. |
I can't really guarantee it, but overall I think this PR is good. I invited Nik for a second pair of eyes since he frequently uses/maintains this plugin... and the inappbrowser isn't something I actually use in my own projects. Assuming that he's okay with it, I'll then allocate some time to rebase the PR to get it merged. Unless if @shaikh-amaan-fm is still around and does that rebase first. My concern back in 2020 about it being android only still applies, but it isn't really a deal breaker, imo. |
Thank you for the quick response. This should resolve issue #311 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must admit I haven't worked on an app with the IAB plugin in a long time but the code looks good to me. I think we can merge it if someone gets to use it.
Thanks Nik, I should have some time tonight after my work day to spend some time rebasing, and it will give me a chance to actually test the code as well. So the plan is to merge sometime later tonight. |
Platforms affected
Android
Motivation and Context
This change enables, generation of a download event.
closes #311
Description
Whenever the InAppBrowser receives or locates to a url which leads in downloading a file, the callback assgined to the "download" event is called. The parameter passed to this callback is an object with the the follwing properties