Code Monkey home page Code Monkey logo

Comments (8)

pbakondy avatar pbakondy commented on August 10, 2024

No other configuration needed.
The object should exist, I could not reproduce the error.
What is your environment? Android / iOS?

from cordova-plugin-sim.

 avatar commented on August 10, 2024

It works when i run the app with Android Studio on my phone and in the released apk it works fine too.
It just does not work with phonegap serve and the Phonegap Android Developer App (wich is very practical, except a missing JavaScript debugger). Other plugins like sim do not work too there.
One of many unnecessary problems you get into when you start with phonegap :/

from cordova-plugin-sim.

pbakondy avatar pbakondy commented on August 10, 2024

Why are you expecting to have sim data when you run your app in browser?
Do a platform check and use it only on Android.

from cordova-plugin-sim.

 avatar commented on August 10, 2024

Not in browser, it runs on the phone within Phonegap Developer App.
Some plugins work (like access phone contacts) and some do not.

from cordova-plugin-sim.

pbakondy avatar pbakondy commented on August 10, 2024

Can you tell me what is the return value of the cordova device plugin?

from cordova-plugin-sim.

 avatar commented on August 10, 2024

[phonegap] [console.log] { available: true,
platform: 'Android',
version: '5.1.1',
uuid: 'aaa57b0bf3ed728',
cordova: '4.1.1',
model: 'SM-G903F',
manufacturer: 'samsung' }

from cordova-plugin-sim.

pbakondy avatar pbakondy commented on August 10, 2024

This plugin will not work with PhoneGap Developer App. There is a predefined list of supported plugins for this tester application: http://docs.phonegap.com/references/developer-app/troubleshoot-faq/

If you're using a plugin in your project that is not shown in this list, it will not work with the PhoneGap Developer App out of the box. However, you can create your own custom build of the PhoneGap Developer app locally and include any other plugins there. We recommend always checking for the existence of any plugin in your code first before using it to avoid errors in testing in general.

If you are using PhoneGap CLI I would recommend using the following commands (requires connecting your device with USB cable):

phonegap platform add android
phonegap run android

from cordova-plugin-sim.

 avatar commented on August 10, 2024

The run android is not working with usb but usb is working with android studio.
big thanx for your explanations!

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.