I'd like to create a PhoneGap App and open a connection to another device through Bluetooth (https://github.com/don/BluetoothSerial). I started with the sample projects but nothing seems to happen with my settings, no events are triggered / console shows nothing.
I'm new to Phonegap and after struggling for days with installing NodeJs, Cordova (4.0.0), Phonegap (3.6.0-0.21.19), Ant, getting new Java JDK (1.7.0_71), updating Android (23, target here is Android API19) I can build and run Android apps. I followed http://www.pycode.com/android/creating-a-phonegap-cordova-3.0-app-in-eclipse.html as installation guide.
Nevertheless I couldn't build the jar file for Cordova (Target "jar" is not found), paths are set correctly. I searched online but the existing posts didn't help. Actually I found out that it's better to just use the CordovaApp-CordovaLib as a library, so I used this instead. Anyway it seems like I can't use any plugins at the moment (added in config.xml and gave Bluetooth permission in AndroidManifest.xml). I'm not even sure if this is the problem here.
Seems like many people are struggling with Phonegap and I hope somebody experienced the same issues and can help.. Thanks in advance!
Update
Figured out that the onDeviceReady method wasn't called at all. Checked for cordova.js (don't just use any!) and copied it into my C:\ProjectPath\platforms\android\assets\www folder.
Quite embarrassing, maybe that's why nobody's answered. I used the PhoneGap Developer App - of course this couldn't work. Use cordova build to build apk and test it on device..
Related
I am trying to create a SDK on android with ionic, when i try i write
ionic cordova build android
but it does't work because when i search the SDK i don't find it, i don't know what to do, it is the first time that i use ionic and i don't know how to install the app on the phone,the app is ready to be used,to try the app i used the emulator with "ionic serve --lab" please help me
This is an image of what prompt does:
You may need to download gradle for building an android app. This answer is more proper as comment but I don't have enough reputations. So, I leave anwser.
Read the link below
ionic 2 - Error Could not find an installed version of Gradle either in Android Studio
p.s. My original answer is a mistake.
We're working in an app for Android/IOS and the team has at least 3 people working in the app code and who need to have the app running locally in their particular env, someone is developing over Mac OS to eventually build to iOS and the others are on Windows machines.
We've been experiencing problems with the Ionic project after installing ngCordova, some cordova plugins and the ionic-platform-web-client, the mac machine had the app running beautifully and the windows instances were broken complaining that: Module 'ionic.service.core' is not available!
We don't know which particular step caused the code inconsistency and after several hours of looking around to fix it we decided just to create a new Ionic project and copy our specific www code inside. Since we don't want that to happen again we need to figure a reliable method of keeping all platforms working right after we install a plugin or add an Ionic service.
Could this be accomplished only by gitignoring www/lib folder and platforms, and then running bower install in each dev machine after a new module have been added to the project? or is it more complex than that and we're omitting some important steps to allow the project collaboration without these kind of issues?
Yes, you can put platforms in your .gitignore. I personally wouldn't be putting www/lib folder there, though.
Also, I would strongly advise that on all the machines where you're building the apps locally you have the same version of Ionic and Node.
I'm now at my wits ends with Phonegap and its Plugins!!
I have created an a Phonegap app and it works and it runs well on android. I now wish to simply use the Facebook JS SDK. I have been using the plugin found here. But I keep constantly running into 100 different errors.
The code in the ConnectPlugin.java is saying that Plugins has been deprecated. But I'm using Cordova 2.3.0 and in the Cordova 2.3.0.jar the Plugin.java class exists as seen in the picture below:
I'm really not sure what on Earth to do now to get this plugin to work? I have tried everything and have searched the net for hours with no working solution. I just need the Facebook plugin to work. Please any help would really be appreciated!!
Should you ever have any plugin problems ie there is complainant about the Plugin Class as above, then at least for Facebook this problem has been solved here
I'm working on building a c2dm module for my Titanium project. (I actually want gcm, but the only change is to the sender_id, so that shouldn't be a problem).
However, I'm running into a lot of trouble when trying this. I tried using the module Kuraturpa wrote, but I can't get it to build(compilation error), and it doesn't include any .jar file for some reason. I tried following this guide, but I again ran into some build errors (this time, exec returns 2, apparently because it can't find gpref?)
Has anyone actually successfully gotten c2dm to work with 2.1.0.GA? Can they share that success? I can't believe this is this difficult.
I eventually got it to work by installing the macosx developer tools for c/c++ development from the apple website. Once that was installed, I had gperf, and the build worked for the given module.
As far as converting c2dm to GCM, that was dead simple.
My objective is to have an IDE with JS syntax error reporting and a PhoneGap plugin.
My goal is to make an android application using PhoneGap.
I understand that Eclipse has a well supported PhoneGap plugin.
The issue is that I have spent hours trying to get Eclipse JS syntax error reporting to work with no luck.
Netbeans is extremely easy to install and has working JS syntax error reporting with no extra steps needed. For example, with NetBeans, I just install and everything (including JS syntax error reporting) works. With Eclipse, I must install, then install several addons related to JS. In the end, I could not get the JS syntax error reporting of Eclipse to work, despite hours of research. I am new to Eclipse.
Is developing an android/phonegap app with Netbeans IDE a good method?
I found this plugin, but don't know exactly how it works with PhoneGap or if it's any good: http://www.nbandroid.org/
The Phonegap plugin described here on the PhoneGap wiki includes the default Eclipse JSDT syntax checking. It also includes an option to turn on customizable JSLint checking - see Section 7 here. This all comes with a single plug-in to add the Android ADT.
If something's not working for you, it would be great if you raised the specific problem on StackOverflow, on the mailing list, or create an issue.
From 7.4 version Netbeans has Phonegap support without external modules.
Obviously you need also phonegap and android sdk :)
see http://wiki.netbeans.org/MobileBrowsers#PhoneGap_2