GithubHelp home page GithubHelp logo

Comments (10)

EzioLi01 avatar EzioLi01 commented on June 7, 2024

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.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

Hey @DaanSchuitmaker , do you have any update to this?

from cordova-simulate.

DaanSchuitmaker avatar DaanSchuitmaker commented on June 7, 2024

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.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

Maybe it caused by incorrect device id. What API command are you used? Only simulate or add some arguments for it?

from cordova-simulate.

DaanSchuitmaker avatar DaanSchuitmaker commented on June 7, 2024

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}" }

example1

from cordova-simulate.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

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?

image

from cordova-simulate.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

Hey @DaanSchuitmaker , any updates on this?

from cordova-simulate.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

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.

DaanSchuitmaker avatar DaanSchuitmaker commented on June 7, 2024

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.

EzioLi01 avatar EzioLi01 commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.