Hello Does anyone know how to transfer a project I did in node.js to the app if it is Android or iPhone the main thing was an app if anyone knows I would love it is really important
Thanks.
I am trying to make a quick app for android. I have followed several tutorials on how to build an app using js/html/css (apache cordova). Could someone help me out with compiling the project into an APK file? I did not find any tutorials on how to do that.
Thank you in advance.
I developed an application on Apache Cordova, I followed all the steps to generate the .apk to upload on Google Play. I tried many times but Google's response is the same:
We rejected APP, package ID com.xxx.app, for violating our dangerous products policy. If you submitted an update, the previous version of
your app is still available on Google Play. This app uses software
that contains security vulnerabilities for users. Below is the list of
vulnerabilities and the corresponding APK versions that were detected
in your recent submission. Please upgrade your app(s) as soon as
possible and increment the version number of the upgraded APK.
Vulnerability Apache Cordova: The vulnerabilities were fixed in Apache Cordova v.3.5.1.
I have the latest version of Cordova (5.4.1).
The following will detail the steps that I followed for installation and project development:
Start the download of Cordova from the console Node.js using the command npm install -g Cordova.
Install Java: version 1.8.0_65.
Install Android SDK.
Add Java and SDK to PATH.
I downloaded the necessary components of the Android SDK.
Create the project through the commands. (Cordova create Projectxxxx).
Add the Android platform.
I copied my application code in the www folder.
Add the plugins needed for my project: splashscreen and sqlite.
I tested the application on the Android emulator and other mobile phones. All good. Runs perfect.
To create the signed APK file, these are the steps:
-Cordova build --release android. (This generated the android-release-unsigned.apk on platforms / android / build / outputs
/ apk).
-Then, I generated the keystore.
-After the jarsigner.
-Finally: zipalign.
I upload end-app.apk to Google Play.
Another detail that I have is that cordova.js generated version is 4.1.1. But the console version is 5.4.1 (Command: Cordova -version).
I did everything by node.js console.
Attemps:
I uploaded an APK without js components. Only with cordova.js and it not worked.
I installed all over again in a newly installed windows and neither worked.
My version is higher than 3.5.1. I can not find the solution.
The big problem is not just that PLATFORM_VERSION_BUILD_LABEL is wrong, but the default cordova used is ancient ( it was 3.7.1 on mine ). To resolve this you need to install a newer version in the project. You can specify this on the command line, much like npm does.
cordova platform update android#4.1.1
Or you can specify it in your config.xml
<engine name="android" version="4.1.1" />
That may need 'spec' instead of 'version' depending on how current you cordova install is. At this point, they are up to 5.1, and you can use 'latest' instead of a specific version number.
The next headache will be the point of the patch, which locks down network access. I am now getting 404 errors on all my ajax calls to our server. Access was the root of the security problem, so this isn't a big surprise. I am still working on that.
I had the same problem, I found a previous corodva version in a plugin, in my case was facebook connect; I deleted this plugin and upload again, its work form me. You may search PLATFORM_VERSION_BUILD_LABEL in your project, is posible that some plugin have other cordova version.
I was trying to solve this problem almost for a week. Solution:
There was a cordova.js file within www/lib/cordova folder that doesn't get updated when you update cordova and ionic. Open the file and look for var PLATFORM_VERSION_BUILD_LABEL. If the version is not 4.1.1 at the time of this post, update it with another copy of the file that is somewhere in your main directory.
I am using (testing) Webstorm 7 EAP for development. I downloaded the
https://cdn.firebase.com/v0/firebase.js
to be able to have code completion and JSDocs for Firebase.
To my disappointment not only do I not jet the JSDocs (the firebase.js appears to be minified), but webstorm can't even see the Firebase API at all.
When I type:
var fbase = new Firebase(...)
Webstorms warns "Unresolved type Firebase".
How can I get Webstotm to play with Firebase nicely?
I get a feeling that my problem is due to firebase.js being minified.
Is there somewhere a version of firebase.js that is not minified and with JSDocs? Would help a lot.
BTW Oddly enough, Webstorm 7 can see angularFire.js just fine.
regards
Jared
You can use the unminified version of Firebase for development. Also, if WS is still fussy you can try a couple different things.
Find the reference to Firebase in your code and click on it, click the light bulb, choose download library:
Add Firebase-debug to your JS Libs under Project Settings -> JavaScript -> Libraries. You'll have to download the -debug version first, then make sure you've checked it for inclusion in the project:
I am trying to get jQueryWTP to work with Elipse 3.5.2. I followed the instructions and the new jar file was created (org.eclipse.wst.jsdt.core_1.0.201.v2010012803.jar). I replaced this new jar file with the old jar file in the Eclipse plugin directory. However, when I started Eclipse I saw an error with this jar file.
Here is the error I am seeing in the Eclipse log file:
Either the manifest file or the signature file has been tampered in this jar: C:\Program Files\Eclipse\eclipse 3.5.2\plugins\org.eclipse.wst.jsdt.core_1.0.201.v2010012803.jar
Has anyone else received this type of error when installing jQueryWTP? And, if so did you find a workaround to get this to work?
I have spent much time researching this and have not come up with a solution. I did see that someone else had this problem, but there wasn't a solution provided.
Trish
If you can/want you may be interested in trying out Aptana Studio (http://www.aptana.com/)... It has great support for a lot of js frameworks and intellisense.
HTH
Cheers!