Closed dg76 closed 4 days ago
Hi @dg76,
Thank you for this contribution, it makes a lot of sense and I can indeed reproduce the issue. The suggested update looks really good, however do you mind updating the version number (increasing the patch number by one) and add an entry to the CHANGELOG.md (according to the changelog style guidelines)?
No problem, I have changed the CHANGELOG.md and pubspec.yaml. It should appear as a second commit in the same pull request. Is it good now? Thank you for your quick response!
Thanks again, I have just published version 0.1.3+4 of the permission_handler_html package to pub containing this fix.
Thank you very much, I have configured my project to use 0.1.3+4 and it works correctly now. Thank you very much for publishing the new version so quickly!
Hi! Unfortunately it seems like the dart:js_util
import breaks wasm compilation.
I am sorry, I think I have fixed it with this PR: https://github.com/Baseflow/flutter-permission-handler/pull/1411
I am now using a method to access "mediaDevices" that was already used for "permissions" in the same file.
I have just published version 0.1.3+5 of the permission_handler_html package containing the fix provided by @dg76
Thanks @dg76 for the quick fix.
This PR fixes the bug mentioned here:
https://github.com/Baseflow/flutter-permission-handler/issues/1386
It seems that "mediaDevices" is only available when using https or localhost, but not when using e.g. http://0.0.0.0. Thus it is necessary to check if "mediaDevices" exists before accessing it.