Code Monkey home page Code Monkey logo

Comments (5)

imsuspend avatar imsuspend commented on August 10, 2024 1

Missing Command Error on winphone 10 too

from cordova-plugin-sim.

JorgeTorres-BM avatar JorgeTorres-BM commented on August 10, 2024 1

same issue on w10 mobile, even after adding the empty constructor.
Help plz
@pbakondy

from cordova-plugin-sim.

pbakondy avatar pbakondy commented on August 10, 2024

Hi,
currently I dont have a windows device to test.
I have an idea to solve, could you test me one little change?

remove windows platform

add empty constructor fn to plugins/cordova-plugin-sim/src/wp/Sim.cs

    public class Sim : BaseCommand
    {
        public Sim() {}

        public void getSimInfo(string notused)
        {

add windows platform

run again

from cordova-plugin-sim.

imsuspend avatar imsuspend commented on August 10, 2024

remove windows platform
2)
add empty constructor fn to plugins/cordova-plugin-sim/src/wp/Sim.cs
public class Sim : BaseCommand
{
public Sim() {}

    public void getSimInfo(string notused)
    {

add windows platform
4)
run again

done. Instead the functions returns an error callback with the string "Missing Command Error". Cordova 6.4 app running on Windows Phone 10.

from cordova-plugin-sim.

andreszs avatar andreszs commented on August 10, 2024

@pbakondy and company, could it be that some of us have switched to the Windows Universal platform without noticing that the plugin does not support it?

The Missing Command Error message is directly related to a missing plugin file, in this case, there is no plugin file for Windows Universal. The plugin works (partially) with the deprecated and now forgotten Windows Phone 8 platform.

If it helps, these are the contents of the result object on a Windows Phone 8.1 Nokia Lumia 520:

{"carrierName":"Claro AR","countryCode":"","mcc":"","mnc":"","isCellularDataEnabled":"True","isCellularDataRoamingEnabled":"False","isNetworkAvailable":"True","isWiFiEnabled":"True"}

And these are from a Windows 10 Mobile Microsoft Lumia 435:

{"carrierName":"Personal","countryCode":"","mcc":"","mnc":"","isCellularDataEnabled":"True","isCellularDataRoamingEnabled":"False","isNetworkAvailable":"True","isWiFiEnabled":"True"}

To clarify, the shown results above are from Windows Phone 8 (XAP) Platform (CLI 6.5.0), not Windows Universal (APPX). My phones are at the disposal of the developer if he wants further testing of an eventual Windows Universal implementation.

from cordova-plugin-sim.

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.