-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Capacitor mode not working with an https devServer #7264
Comments
The issue is with your localhost certification you need to generate or renew/setup ssl certificate for your local development first. Enabling Https for Local Development It should work afterwards just in case you run into trouble you can always use the generated certificate to open a Https enabled public server |
Hi @bezhanSalleh, and thanks for this. It becomes a problem as the webview on the android device won't accept the certificate as being signed (whereas I think any I also tried tunnelling the webpack devServer through ngrok / localhost.run, but quasar automatically overrides the |
@nklayman Can you weigh in on this please? |
This line determines if the app is running on capacitor. For some reason, it appears |
Closing as Noah has provided a solution. |
A bug report should probably be created for capacitor as |
Im currently facing the same problem, and just checking If I use the check when deciding to either use the node package for firebase messaging or the native capacitor plugin I get the error @nklayman if you could look into this again it would be greatly appreciated! Edit:
statement and added it to the |
Describe the bug
Capacitor doesn't seem to be recognised when running in dev mode with an https devServer.
Codepen/jsFiddle/Codesandbox (required)
--> capacitor mode, won't help
To Reproduce
Steps to reproduce the behavior:
https: true
in the devServer section inquasar.conf.js
Expected behavior
When running capacitor with
quasar dev -m capacitor -T android
, the value ofPlatform.is
is:But when turning in
devServer.https
totrue
inquasar.conf.js
,Platform.is
then is:It basically behaves like capacitor native has not been loaded at all.
I wish I could use the
http
devServer mode, but unfortunately I have to usenavigator.mediadevices
that can only be accessed in a secure context...Platform (please complete the following information):
OS: MacOS
Node: v13.11.0
NPM: 6.9.0
Yarn: 1.22.4
Browsers: N/A
iOS: N/A
Android: 10
Electron: N/A
Additional context
@quasar/app: 2.0.0
@capacitor/core: 2.2.0
It may worth to notice the following error in the ADB logs:
and a recurrent:
Many, many thanks in advance!
The text was updated successfully, but these errors were encountered: