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
9
votes
1 answer

How to add function on button in phonegap?

I'm new to Phonegap and I want to develop a Phonegap application for Android.. I want to give some function on button click on my html.. I've tried this code but it does not work: index.html
Michael Frans
  • 613
  • 3
  • 23
  • 49
9
votes
2 answers

Phonegap Firebase Push Notification not firing event listener when app opens, or when app is in background

I'm using Phonegap and Firebase (fcm) to receive push notifications. I am using Android 8 to test. I want my device to receive a push notification if the app is running in the foreground (as a popup message in the app). If the app is closed or in…
Delmontee
  • 1,898
  • 2
  • 26
  • 44
9
votes
0 answers

Issue with publishing my windows app (phonegap) - invalid package identity name

I have a problem with publishing my app in windows store. I recive these informations: Invalid package identity name: ... (expected: ... ) Invalid package family name: ... (expected: ... ) Invalid package publisher name: …
wymyszony
  • 517
  • 3
  • 11
9
votes
3 answers

Phonegap / Cordova on iOS 11 select displays pop-up again after selecting option

I have a problem using Phonegap on iOS 11 on an iPad. If a select is clicked, it displays the options in a pop-up. After selecting one, the pop-up briefly disappears, the option in the select changes, then the pop-up re-appears. The following…
Tom Kincaid
  • 4,887
  • 6
  • 47
  • 72
9
votes
1 answer

PhoneGap/Cordova WebStorm Ubuntu - Error

I have WebStorm and Android Studio installed. I have my Android SDK and Java environment variables set. I originally had this error (https://github.com/phonegap/phonegap-cli/issues/685) and I fixed that by extracting the templates folder as…
xendi
  • 2,332
  • 5
  • 40
  • 64
8
votes
0 answers

Ajax call not working on Android 8 built with Phonegap

I have set a cheap certificate from Digicert on my server but I think it has an intermediate certificate. When testing my application on PhoneGap CLI using phonegap serve Ajax call to my server is working. But when the apk is built on PhoneGap, it…
JMA
  • 974
  • 3
  • 13
  • 41
8
votes
1 answer

How to find what crashes a Cordova App in Android?

I have written a hybrid game using Cordova for iOS and Android. The game ran perfectly on both iOS and Android and I was almost ready to publish it but I only needed to make a few splash screens. When that was done, I did one final test on both…
Zippy1970
  • 601
  • 6
  • 20
8
votes
2 answers

Get additionalData from Onesignal (Phonegap)

I read the doc here : https://documentation.onesignal.com/docs/cordova-sdk but it's totally not clear ! I try severals test nothing, I event test to get the title but still nothing document.addEventListener('deviceready', function () { // Enable…
Jean R.
  • 476
  • 4
  • 16
  • 44
8
votes
2 answers

Cordova adds 350ms delay on click() events in iOS

If I use something like $('button').click(function() { alert('hi'); } and I add the following to my : ..and I run it as a normal mobile site on iOS 11, there is no delay…
Tonald Drump
  • 1,227
  • 1
  • 19
  • 32
8
votes
2 answers

Can't update any plugins, not a valid cordova platform?

I have an issue when trying to update any plugin in cordova using mac os terminal. When I try to run the command cordova plugin add xxxxxxx it is telling me that both my android/ios are not valid cordova platforms. My Node version is v9.2.0, NPM…
chronotrigga
  • 589
  • 1
  • 10
  • 33
8
votes
2 answers

ngFacebook not working with phonegap

Im using ngFacebook by Almog Baku in my current angular app. In test environment it is working fine. But in apk build via phonegap it isn't working. I have included and
8
votes
1 answer

Cordova app crashes when using Chrome DevTools

I'm creating an app in Cordova for Android, and I'm using Chrome DevTools for debugging. But everytime I use inspect element my app crashes without showing any errors. It won't happen if I just start DevTools and my app, it will only happen when I…
7
votes
1 answer

To implement AR with Plain White Walls/Floors

I have implemented Augmented Reality in my swift project by using Apple's ArKit. I have to show user's artworks on walls if they are trying to check if how those artworks will look on their walls and then they can decide to purchase it. It is…
Ravi Agrawal
  • 243
  • 1
  • 8
7
votes
1 answer

Angular Cordova app goes blank when cordova.js is included

I am creating an Angular + Cordova application and it works great in the browser. The issue what I am facing is that when I try to include cordova.js file, the app goes blank when loaded on a device. I have done some research and it turns out to be…
Nidhin Joseph
  • 9,981
  • 4
  • 26
  • 48
7
votes
2 answers

How to get asynchronous data before Angular loads its modules

I'm trying to inject a variable into forRoot({[...]}) method of an Angular module. I got this variable in an asynchronous way, so I tried to get it before bootstrap Angular. (It comes from cordova.js) The problem: It seems that Angular import the…
Doubidou
  • 1,573
  • 3
  • 18
  • 35