Open motatoes opened 6 years ago
@motatoes at the time when I wrote this plugin iconic was only starting, so I never tested it there. Unfortunately, i don't use neither Cordova (PhoneGap) nor ionic and don't really know what maybe the issue. Also, this sample code is quite old and may not be working with recent versions, checkout the official plugin issues I am sure someone had similar issue. Sorry.
Hi @romk1n It's actually not an iconic issue. I was just trying to run this repository code on an iOS simulator on mac. I linked to the iconic issue because the reported error there is the same one I received. It's probably a cordova-related problem. Upgrading to Cordova-ios 4.5.0 fixes it for me as stated above, but I'm not sure what causes it in the first place. the plugin is working fine for me after this update. I just thought of leaving this here to anyone who might be experiencing the same problem later.
Feel free to close it as the exact bug isn't clear for now anyways. Thanks!
Hello! I followed the ios specific instructions in the README file:
In order to run the app in an emulator on a mac I ran
npm install ios-sim
. After that I previews the list of emulators available withios-sim listdevicetypes
. I then ran the following command to start the app in the emulator:The result of this command as follows:
I'm not sure why I'm getting the error of "cannot read '''name' of undefied" but I found that this issue is related to https://github.com/ionic-team/ionic-cli/issues/2487. In particular, this comment which is related to updating cordova v4.5.0 seems to fix this form me. However, I don't see why this shouldn't work in versions less than 4.5.0. Reporting this issue for future reference to save someone else sometime.