Comments (10)
Hey @DaanSchuitmaker , thanks for reaching us. Actually the simulate version is wrong, the latest cordova-simulate version should be 1.1.6, and it works well on my side. Are you using simulate android
without any other arguments(like device?) to open the simulator? Could you please confirm it?
from cordova-simulate.
Hey @DaanSchuitmaker , do you have any update to this?
from cordova-simulate.
On a new install (new virtual) it work so it seems to be a local issue.
Any ideas how to find the issue?
Tried to reinstall vs code, checked npm, cleared the npm cache, clear vs code extenstions.
Nothing seems to help
from cordova-simulate.
Maybe it caused by incorrect device id. What API command are you used? Only simulate
or add some arguments for it?
from cordova-simulate.
im trying to run it from vscode with the Cordova Tools extensions
launch config
{ "name": "Simulate Android in browser", "type": "cordova", "request": "launch", "platform": "android", "target": "chrome", "simulatePort": 8000, "livereload": true, "sourceMaps": true, "cwd": "${workspaceFolder}" }
from cordova-simulate.
Oh, you're using cordova-tools extension to simulate application, but my local new cordova project is working well with the same configuration. Could you please try to install simulate with npm i -g cordova-simulate
and run simulate
by termimal in your project folder to open your app?
from cordova-simulate.
Hey @DaanSchuitmaker , any updates on this?
from cordova-simulate.
I will close this issue since it has no updates so far, please reopen this or create new issue, if you still need to help, thank you!
from cordova-simulate.
Sorry i was on vacation.
But i've found the issue.
There is a json list of devices and the default device for android is the Nexus10.
{ "id": "Nexus10", "name": "Nexus 10", "model": "Manta", "device-version-template": "<os-version>", "default-os-version": "4.2.2", "uuid": "6b356755575fce31", "manufacturer": "Samsung", "resolution": { "width": 1600, "height": 2560 }, "viewport": { "width": 800, "height": 1280 }, "pixel-ratio": 2 }
This device has an os-version of 4.2.2 but this version is not supported in the os-versions.json
{ "android": ["4.4.2", "5.0", "6.0", "7.0", "8.0", "9", "10", "11", "12", "13"], "ios": ["4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"], "windows": ["8.1", "10"] }
this leads to an undefined in devices.js.
So it more a data issue of the devices so if this list could be checked/updated this should solve the problem.
from cordova-simulate.
Thanks @DaanSchuitmaker share the details, will reopen this issue and update device list. For now the latest package V1.1.6, the default android device is Nexus6 with 5.0 default os-version. You can try it or some other devices, the fixing will be release on next prod version 1.2.0. Thank you!
BTW, I have added some useful error messages for getting device process, now simulate can give you the meaningful information if it catching some exceptions.
from cordova-simulate.
Related Issues (20)
- Remove redundant localized strings
- Prepare for 1.1.6
- [Feature] Improve user experience: add error message for getting user agent
- [Feature] Refactor browser helper to support MSEdge for MacOS and Linux
- [Unit Test] Add unit test for simulate browser helper
- Update device default os version
- Add unit test for device utils
- Prepare for 1.2.0
- Documentation update: browser, device and API
- [CodeQL] Fix CodeQL analysis alert: Sandbox attribute is missing on the Iframe
- Documentation: simulate cordova application in Docker container
- Documentation: Refactor documentation structures
- [Feature] Add argument to prevent browser launch after simulating HOT 8
- Prepare for 1.2.1
- Handle showbrowser argument for cordova-tools
- Prepare for 1.2.2
- [Feature] Add Chromium as target for the simulate in browser options
- [Feature] Add optional argument for chromium path
- Prepare for 1.3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-simulate.