Questions tagged [phonegap]

PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how Blink is the engine that powers Chrome or Opera. Over time, the PhoneGap distribution may contain additional tools that tie into other Adobe services, which would not be appropriate for an Apache project. For example, PhoneGap Build.

If you are new to PhoneGap, please read this information before posting:

When asking a question, provide us with the following information where it is pertinent:

  • Your PhoneGap and Cordova version, as well as the platform version you are using (Android, iOS, etc.)
  • JavaScript technologies you are using: jQuery, Ionic, etc.
  • Platform(s) you are targeting: iOS, Android, etc.
  • If you have tested on a physical device, include device models as well.
  • OS and version you are building on: PC, Mac, Ubuntu, etc.
  • Software you are using to build/compile: CLI, Eclipse, Adobe products, etc.

If something is "not working" then provide the above and:

  • Post an example that reproduces the error by cutting the code down to the smallest it can be while still demonstrating the error. Please do not post hundreds or thousands of lines of code.
  • Exact error messages you are receiving. These should include the log information before the error message as often the error occurs a long way before the message.
  • Screen shots or animations showing the issue if possible (and an explanation of what's wrong and what you expect to see). Please do not post just the screen shots of error messages as they are often impossible to read and rarely have the right information.
  • Be concise and clear about what your problem is. Remember that nearly no one will have any idea about your project, your level of experience, what your app should do (or shouldn't) or what you have done to try and fix the problem.

The people who get the most help are the people who provide a clear explanation of what their problem is and provide accurate and appropriate information to help others debug their problem. You have to help us to help you.

Useful Links

Source code

Documentation

1811 questions
7
votes
2 answers

UIWebView not caching remote images

We have a Phonegap application that uses remotely served images. The images are served with a Cache-Control header: 'Cache-Control': 'max-age=31536000'. Prior to iOS 12, the images were fetched once and cached during the usage of the app. After…
pj3s
  • 101
  • 6
7
votes
1 answer

Phonegap Status bar styleDefault & fall back for android below 6

I want to set my android app status bar to light background and dark text. It is working perfectly when I view my app in Phonegap mobile app. But after building the app and installing in mobile it's not working. I'm using Android 7. I tried with…
bharat
  • 330
  • 1
  • 3
  • 13
7
votes
4 answers

app icon has white circle around it for android on phonegap/cordova

I updated phonegap, and now the Android icon shows a white circle around it like 1/2 of the icons on my phone. I don't want the white circle. Attached shows the Arlo icon which is normal, then two other icons with white circles around them. My…
Caleb Pitman
  • 1,105
  • 1
  • 12
  • 24
7
votes
0 answers

iOS new image type HEIC can't be used, must get JPEG

I am using navigator.camera.getPicture to get the picture from the camera roll on iOS. If I add the option: navigator.camera.DestinationType.FILE_URI it gives me a JPG which is great, but I can't get the geolocation EXIF information from it. To…
7
votes
1 answer

How to get the file object on success callback of cordova camera?

Currently I am using the following approach where it is giving details of file but not the actual object it seems like one we get from in javascript/jQuery. Does any one having the clue how to get the file object from File URI /native URI from…
Sagar Pudi
  • 4,634
  • 3
  • 32
  • 51
7
votes
8 answers

How to change the name of the apk file?

I build apk file with help of https://build.phonegap.com/apps/ portal evrey time I build debug or release apk file the names are: ______debug.apk or ______release.apk I want to change the name of the release apk to something more significant, for…
Michael
  • 13,950
  • 57
  • 145
  • 288
7
votes
1 answer

Phonegap Error using XCode 9/iOS 11

Getting "No target specified for emulator. Deploying to undefined simulator Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found." error while running Phonegap project using XCode 9/iOS 11. Has anyone got workaround?
7
votes
1 answer

Are Hybrid Mobile apps generally considered inferior to Native apps by developers in the tech industry?

For a college project, my group was planning on making a cloud messaging app for Android. Initially we began development by studying and using Ionic Framework and Phonegap to create a Hybrid app. Based on what we had read and learnt so far what we…
6
votes
0 answers

Solve issue with non blocking functions on a cordova app for IOS 13 (alert / confirm)

I have a cordova app that runs on iPads and I recently got a very strange behavior with the new IPadOS 13+. Some javascript native functions that should block the code flow and waits for user inputs ( like window.alert or window.confirm ) are no…
6
votes
1 answer

cordova requirements error "Android target: not installed"

Using cordova on WINDOWS 10 I'm not able to build project. When I tried cordova requirements it shows me Android target: not installed. I tried all possible solutions over internet and SO, however, none worked for me. Probably this is related to…
Temp O'rary
  • 5,366
  • 13
  • 49
  • 109
6
votes
1 answer

Cordova / PGB App freezes after resume

I'm developing a hybrid app with PGB (cli-7.1.0). For a couple of weeks, the app freezes after on iOS (11.3) after brought back to foreground - not every time, but sometimes. The javascript keeps on running and no error is thrown, but no element can…
floots
  • 81
  • 5
6
votes
0 answers

Phonegap Cordova open data: url in system browser

I am working on a phonegap app that makes use of http://tabulator.info/ to render data tables. One of the feature of tabulator is that it allows exporting the contents of the table for download as an excel file (xlsx). The feature works great on…
oxfordian
  • 141
  • 1
  • 9
6
votes
2 answers

phonegap javascript html get requests

I am trying to do a http get request to my website from a phone-gap app. The following code works perfectly fine on my laptop using chrome but once converted to an app it no longer works. In particular, phonegap compiles the code fine and gives me a…
Mathew
  • 1,116
  • 5
  • 27
  • 59
6
votes
1 answer

Inspect Devices Chrome auto reopen/reload

I am currently usings chromes fantastic Inspect Devices to debug my phonegap app. However every single time I build the app and deploy to my phone I will get the following message: Detached from the target etc Is it possible to get Chrome to auto…
Jamie Hutber
  • 26,790
  • 46
  • 179
  • 291
6
votes
3 answers

How To maintain session in phoneGap

I am unable to find any way how to handle this. I have developed one single page application in PhoneGap which is only login page.After login, I am redirecting it to web site. Now the thing is I have to maintain login status inside App. For Example…
GreenROBO
  • 4,725
  • 4
  • 23
  • 43