You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "GitToTheHub (via GitHub)" <gi...@apache.org> on 2026/01/05 10:10:34 UTC
[PR] doc: add section for using native Browser features [cordova-plugin-camera]
GitToTheHub opened a new pull request, #940:
URL: https://github.com/apache/cordova-plugin-camera/pull/940
- Make clear, that it is not necessary to use this plugin for selecting images or using the camera. Native browser features can be used, like `<input>`.
- Add examples for selecting an image and take a picture using the `<input>` element
- Add example for taking a picture with the `getUserMedia` API
<!--
Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
-->
### Platforms affected
### Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
<!-- If it fixes an open issue, please link to the issue here. -->
### Description
<!-- Describe your changes in detail -->
### Testing
<!-- Please describe in detail how you tested your changes. -->
### Checklist
- [ ] I've run the tests to see all new and existing tests pass
- [ ] I added automated test coverage as appropriate for this change
- [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
- [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
- [ ] I've updated the documentation if necessary
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [PR] doc: add section for using native Browser features [cordova-plugin-camera]
Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on PR #940:
URL: https://github.com/apache/cordova-plugin-camera/pull/940#issuecomment-4126656895
I think you are right. I wanted to make it easy for users to use the native browser features, but this would duplicate documentation and we would have to keep the documentation up-to-date. I didn't take over the link to `web.dev` because MDN documents everything and has also examples for using the features.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [PR] doc: add section for using native Browser features [cordova-plugin-camera]
Posted by "erisu (via GitHub)" <gi...@apache.org>.
erisu commented on PR #940:
URL: https://github.com/apache/cordova-plugin-camera/pull/940#issuecomment-4124675042
I wonder if this could be shortened.
For Example:
```markdown
> [!NOTE]
> Depending on your use case, this plugin may be unnecessary.
>
> We strongly recommend using the WebView's native `<input type="file" accept="image/*" capture>` element before opting for this plugin.
>
> The example above demonstrates how to capture an image. If you only need to select an existing image, simply remove the `capture` attribute.
>
> For more information:
>
> - [MDN – HTML element: `<input type="file">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file)
> - [MDN – HTML attribute: `accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept)
> - [MDN – HTML attribute: `capture`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/capture)
> - [web.dev – Capturing an image from the user](https://web.dev/articles/media-capturing-images)
>
> For advanced use cases, this plugin may be appropriate.
```
While the detailed examples are helpful, standard web development topics may be out of scope for this documentation. A short note pointing out the recommendation and guiding users to external resources for further research might be sufficient, allowing this doc to stay focused on the plugin.
What do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [PR] doc(readme): add note about using native browser features [cordova-plugin-camera]
Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub merged PR #940:
URL: https://github.com/apache/cordova-plugin-camera/pull/940
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org