Any working SIM plugin? I also can't debug my first app I need Help.

  • 1
  • Question
  • Updated 4 years ago
Every plugin I install is undefined when I try to utilize it in code example: window.plugins.sim what I am doing wrong? Any working phonenumber plugin? I am new to Phonegap also my weinre no targets or gapdebug not apps showing. SAVE ME Please! I can do screen sharing too.
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
  • lost

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@TextNinja,
Since this appears to be your first posting, please answer the following questions.
- is this your first hybrid mobile app?
- are you using phonegap desktop app?
- Are you using CLI, Build or SDK? Please do not assume the answer. Please read the link.

Thanks
Jesse
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
- Yes it's my first hybrid mobile app
- Yes I am using phonegap desktop app
- I am using SDK. I just need an app built using html, js, and CSS. I have installed nodejs, git and I am able to add plugins to the project using 'cordova plugin add'. Thanks.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@TextNinja,
okay you cannot use PhonegapDesktop App with Phonegap Build
Please read the following unpublished blog post and let me know what you would like to do.
Phonegap Desktop App - What it is and is not

Thanks
Jesse
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
That's very good information especially for beginners like me. I never knew Phonegap Desktop App it's a sandbox environment that's why only built in plugins were working but not what I've installed. I am going to use Phonegap Build instead. Thank you so much!
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@TextNinja,
so you need a tutorial?
Jesse
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
Yes. I need tutorials and I still haven't figure out why I can't debug my app I have made a build with debugging enable but when I click debug button weinre displays no targets. I have even tried weinre locally and added inside the index.html but still target not showing. I haven't found any solution yet your help is appreciated.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@TextNinja,
okay. You really don't need a debugger. People using a debugger usually don't understand how Phonegap Works.

First, read the bold sentences in this FAQ
Top Mistakes by Developers new to Cordova/Phonegap

Next, this tutorial still works, but it will need to be updated soon.
An HTML Boilerplate for Phonegap

After that you need to get the plugin working. I cannot find the documentation for you plugin. Can you point me to the URL? If so, I can get you started.

Jesse
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
I have a basic app working but not the plugin yet.
The plugin I am trying to use is https://github.com/pbakondy/cordova-p... .
How would I know the errors in the codes without a debugger? and after installing the plugin what do I need to do to start using it?

Thanks for your help.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@TextNinja,
How would I know the errors in the codes without a debugger?

Either the code you wrote works or it does not. If it does not work, the most likely issues are:
1) improper configuration
2) javascript syntax error (a debugger cannot catch this, the console will)
3) improper use of javascript (often a developer confuses Java sematics, neither the console or the debugger will catch this)

and after installing the plugin what do I need to do to start using it?

Example code is included with all plugins. Most plugins need one or two lines of code to get the data. Often a callback is needed.

On your plugin, it seems simple enough. If you cannot get it working, let me take a look at your config.xml and code.

Jesse
Photo of TextNinja

TextNinja

  • 10 Posts
  • 0 Reply Likes
Thank you so much Jesse I got the plugins to work and the debugger. Like you said, the debugger doesn't really help much because it doesn't show syntax errors like firebug does. Thanks again for your help now I am really to make my very first mobile hybrid app. :)