Nikola Brežnjak blog - Tackling software development with a dose of humor
  • Home
  • Daily Thoughts
  • Ionic
  • Stack Overflow
  • Books
  • About me
Home
Daily Thoughts
Ionic
Stack Overflow
Books
About me
  • Home
  • Daily Thoughts
  • Ionic
  • Stack Overflow
  • Books
  • About me
Nikola Brežnjak blog - Tackling software development with a dose of humor
Ionic

How to test Cordova plugins without device

In this StackOverflow question I answered which Cordova plugins you can test without the actual device.

profile for Nikola at Stack Overflow, Q&A for professional and enthusiast programmers
I'm a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%). In this category (stackoverflow) of posts, I will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread here.

As you may know, I'm really into Ionic framework lately and am helping out on StackOverflow with the knowledge I gained so far with the framework. I'm currently #3 in the top All time answerers list.

I answered this question by user Chris Lawrence:

I think I know the answer to this question already but thought I would throw it out there incase there was a workaround....

Just built a ionic app with ngcordova, which works fine and I have tested on my android device and deployed to playstore.

Just in the process of deploying to the apple app store. I currently don't have an apple ios physical device to test the cordova plugins.

I am using sms, camera and local notification. These as far as am aware cannot be tested in the ios simulator in xcode.

Don't really want to spend £400 on a tablet to test one app.. any one had the same problem and found a means of testing?

My answer was:

You can test plugins in iOS simulator.

edit: I just stumbled upon the official documentation where it states that even with Ionic View you can test these plugins:

  • com.brodysoft.sqlitePlugin 1.0.3 "Brodysoft SQLitePlugin"
  • com.ionic.keyboard 1.0.3 "Keyboard"
  • com.phonegap.plugins.barcodescanner 1.1.0 "BarcodeScanner"
  • org.apache.cordova.battery-status 0.2.12 "Battery"
  • org.apache.cordova.camera 0.3.4 "Camera"
  • org.apache.cordova.console 0.2.12 "Console"
  • org.apache.cordova.device 0.2.13 "Device"
  • org.apache.cordova.device-motion 0.2.11 "Device Motion"
  • org.apache.cordova.device-orientation 0.3.10 "Device Orientation"
  • org.apache.cordova.dialogs 0.2.11 "Notification"
  • org.apache.cordova.geolocation 0.3.11 "Geolocation"
  • org.apache.cordova.globalization 0.3.3 "Globalization"
  • org.apache.cordova.network-information 0.2.14 "Network Information"
  • org.apache.cordova.vibration 0.3.12 "Vibration"
  • org.chromium.zip 1.0.0 "Zip"

How to #test #Cordova plugins without device https://t.co/iKTKzYyTfI

— Nikola Brežnjak (@HitmanHR) January 26, 2016

Books

The Way of Kings – Brandon Sanderson

My notes from the truly awesome book The Way of Kings by Brandon Sanderson. This is a huge book, but nevertheless packed with action. As a matter of a fact, Brandon Sanderson along with Patrick Rothfuss is now my favorite fantasy author.

The purpose of a storyteller is not to tell you how to think, but to give you questions to think upon.

Life before Death. Strength before Weakness. Journey before Destination.

Sometimes the prize is not worth the costs. The means by which we achieve victory are as important as the victory itself.

Expectations were like fine pottery. The harder you held them, the more likely they were to crack.

To lack feeling is to be dead, but to act on every feeling is to be a child.

In the end, all men die. How you lived will be far more important to the Almighty than what you accomplished.

Somebody has to start. Somebody has to step forward and do what is right, because it is right.

Too many of us take great pains with what we ingest through our mouths, and far less with what we partake of through our ears and eyes.

Authority doesn't come from a rank. Where does it come from? From the men who give it to you. That's the only way to get it.

There are two kinds of people in this world, son. Those who save lives, and those who take lives. And what of those who protect and defend? Those who save lives by taking lives? That's like trying to stop a storm by blowing harder. Ridiculous. You can't protect by killing.

https://twitter.com/HitmanHR/status/691894634025480193

Recent posts

  • Using Puppeteer to automate ASC Analytics screenshots
  • Do it when you don’t feel like it
  • Self-mastery
  • Writing well
  • const life = change();

Categories

  • Android (3)
  • Books (111)
    • Programming (22)
  • CodeProject (35)
  • Daily Thoughts (71)
  • Go (3)
  • iOS (5)
  • JavaScript (123)
    • Angular (4)
    • Angular 2 (3)
    • Ionic (61)
    • Ionic2 (2)
    • Ionic3 (8)
    • MEAN (3)
    • NodeJS (27)
    • Phaser (1)
    • Three.js (1)
    • Vue.js (1)
  • Meetups (8)
  • Miscellaneou$ (76)
    • Breaking News (8)
    • CodeSchool (2)
    • Hacker Games (3)
    • Pluralsight (7)
    • Projects (2)
    • Sublime Text (2)
  • PHP (6)
  • Quick tips (36)
  • Servers (7)
    • Heroku (1)
    • Linux (2)
  • Stack Overflow (81)
  • Unity3D (9)
  • Windows (8)
    • C# (2)
    • WPF (3)
  • Wordpress (2)

"There's no short-term solution for a long-term result." ~ Greg Plitt

"Everything around you that you call life was made up by people that were no smarter than you." ~ S. Jobs

"Hard work beats talent when talent doesn't work hard." ~ Tim Notke

© since 2016 - Nikola Brežnjak