PhoneGap Developer App Download Error - android

I'm using the PhoneGap Developer App to instantly test my apps and since tonight the app says 'DOWNLOADING', and then a few seconds later is says 'DOWNLOAD ERROR'. After that, a popup appears saying
Unable to download archive from the server. Please upgrade the PhoneGap CLI or check your network settings.
So, how do I upgrade the PhoneGap CLI and what settings should I check? I haven't changed any network settings and the PhoneGap Developer App worked fine on my Macbook and iPhone, but now it says this.
What's the problem and how do I solve it?
EDIT
I now realise that this is happening now because the PhoneGap Developer App for iOS has been updated (now version 1.5.2). I've upgraded the PhoneGap CLI to version 5.0.0-0.28.0, which is the recommended version according to this blog post from PhoneGap
Seems like there's something going wrong with the new way the Desktop and Mobile app now communicate.

THE SOLUTION:
Download the newest version of the PhoneGap Desktop App from the official website. So you have to update the PhoneGap Developer App for mobile, the PhoneGap CLI and download the newest PhoneGap Desktop App.

For me starting the local server from PhoneGap CLI helped. The thing is that for some reason using the PhoneGap Desktop doesn't fire a special Windows dialog to permit some actions for the app.

You should try to run manually in a cmd window the command phonegap serve to trigger the firewall request to open by Windows (if you are on Windows). You can also see the log. Leave the window open.

I changed the port from 3000 to something else and it worked.
Probably had something else listening to it.

While using WiFi, Your computer & device has to be on the same network.

I got the same problem and fixed it updating the phonegap.
Update your phonegap npm update -g phonegap or sudo npm update -g phonegap if root is required.
Also update your Phonegap CLI in your mobile.

I had to install node.js and it's working now.

Related

Problem compiling Ionic (Angular) app in Android

I have an app made in Ionic5 framework with the support of Angular, when I run ionic serve --lab, the android app works without problem but the problem is that when I export the project to Android Studio with (ionic capacitor copy android) and I run the app on my device suddenly crashes and stops.
I have been looking for information but I have not found any useful data. My question is more generic than this platform is used to. What error detecting techniques I should use (Android Studio, npm vulnerabilities) and what are some typical cases that generate this error?
I let some posible useful project data:
I use Firebase for database and back-end services.
NPM warn me due to the fact that I have 10 vulnerabilities.
Ther could be a number of reasons for this.
Try running opening chrome://inspect/#devices where you can select your device and see all console logs.
Also try syncing your gradle files in android studio

How to create a SDK on android with ionic?

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.

Undefined variable admob in PhoneGap AdMob plugin

It's difficult for me to explain my problem because my english is not good, hope you would understand.
This is my first try to make a mobile game, all done and I want to show ads by AdMob. I have tried some PhoneGap AdMob plugins such as admob-phonegap , cordova-admob-pro , etc,.. but all of them give "undefined" error on variable named "admob" (or "AdMob") .
There are the step I try with PhoneGap:
Install NodeJS.
Install Cordova.
Install PhoneGap.
Create app by command: phonegap test_app
cd test_app and phonegap platform add ios
Add plugin for my test_app by command: phonegap plugin add [plugin_name] (also try with cordova plugin add [plugin_name])
Write some html to test the AdMob plugin:
document.addEventListener("deviceready",function(){
try{
if(admob){alert("OK!");}
}catch(e){alert(e);}
},false);
8. Start test_app on my computer by command: phonegap serve.
Install PhoneGap Developer (http://app.phonegap.com/) App for my iPhone and connect with my computer, all work fine expect the "admob" variable is not defined !
I am using Windows 8 and there are not software be installed before (include Java,...)
Thank you for understanding and helping me.
Your are using Cordova or PhoneGap command line tool locally, you need install Java and Android SDK first.
If you don't want to install Android SDK locally, you can use PhoneGap Build service, which is a commercial cloud build service offered by Adobe. Or else you can try Intel XDK, which is a IDE and another could build service.
To use AdMob you have to build it into APP and install APP to device or simulator. As it will pack plugin which contains native code.
Running PhoneGap serve and use browser to visit it, only load html5 and JavaScript code, it won't work.

How to view result of phonegap in different platform(ios,android,windows)

I have created android project in eclipse, added cordova.js and cordova-2.9.0.jar file and created index.html to develop mobile application. On running this app, it by default runs in android emulator.
How can i see output of other platforms like ios,windows??
Lets work through your questions which is not even very detailed.
First of all, update your cordova. 2.9.0 is an old version. To do so just run
Mac:
sudo npm update -g cordova
Windows: (run cmd as administrator)
npm update -g cordova
After you did that, i would recommend you to read the very detailed documentation of cordova which can be found over here: Cordova Documentation.
Finished with that? Good, then you should know now, that there is now way to deploy an iOS App from your Windows Computer to your iPad or iPhone. This is only possible on a mac. Because the applications are just "rendered Websites" you can open up the index.html files inside your browser.
cue browser... there is a platform, which is called browser. This is a much better than the normal browsers. You will find a documentation for that over here: Browser Documentation and Information. It can be installed via
cordova platform add browser

What is the Difference between Apache Cordova and PhoneGap?

Hi I need to develop a simple application which is hybrid which runs in kitkat version of android. Since it is possible with PhoneGap 3.3 I have been trying to install it.
But I am really confused a lot with the installation procedure.
First I installed nodejs in my windows 7 32 bit system.
Then I ran the commands from the phonegap website. This is the link http://phonegap.com/install/
I was able to create a project.
But I am facing an error and not able to start the emulator.(I set the environmental variable. )
Then I have gone through couple of ohter websites where they said to run the following commands.
C:> npm install -g cordova
And if I run any further command beyond that it is asking me to install Apache ANT.
But many folks said me that both phonegap and cordova are same.
So I am a little confused since I have to ask my superiors for the download and installation of software in my office PC.
Please suggest me any website that gives me the procedure to work on these.
Phonegap and cordova uses almost the same repository,but they are not the same.Phonegap is build on top of cordova.
Cordova's releases a version first and phonegap usually follows.
The main difference between the both is that phonegap allows you to build your app online
https://build.phonegap.com/
Both have very different documentation
Here's a link to cordova http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html
And link to phonegap http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html
If you notice the links in the phonegap plugin in the documentary,you will notice phonegap uses cordova's plugin
Phonegap constantly plays catch up with cordova.I am a little biased towards cordova.I suggest you decide which is better for you
PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how WebKit is the engine that powers Chrome or Safari.
For more details you can read these blogs
PhoneGap, Cordova, and what’s in a name?
And this question on stackoverflow
Is there a difference between PhoneGap and Cordova commands?

Categories

Resources