Click here to Skip to main content
15,887,596 members
Everything / Hosted Services / PhoneGap

PhoneGap

PhoneGap

Great Reads

by Mark Lassoff
In this tutorial, we’ll build a hardware-aware application that uses Javascript to work with the device accelerometer.
by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
by Hugo Carnicelli
In this article, we are going to learn what Apache Cordova is and in which way this tool is now integrated into Visual Studio 2015.
by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap

Latest Articles

by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
by Hugo Carnicelli
In this article, we are going to learn what Apache Cordova is and in which way this tool is now integrated into Visual Studio 2015.
by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap
by Mark Lassoff
In this tutorial, we’ll build a hardware-aware application that uses Javascript to work with the device accelerometer.

All Articles

Sort by Updated

PhoneGap 

1 Sep 2019 by MarkNopfler
There is an error in index.js,line 43 that say: Uncaught TypeError: Cannot read property 'querySelector' of null /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional...
1 Sep 2019 by Member 14574382
load .js file at the bottom of the page
27 May 2018 by User 7429338
You can use a DirectoryReader. There's an example in the PhoneGap documentation: PhoneGap API Documentation - DirectoryReader[^]
27 May 2018 by Member 13847032
I want to read all folder name in a directory. Folder name is "DATE WISE LIKE '2018_05_28'". Then i will delete all folder. Only 'this date folder will not delete'. How can i do it?? What I have tried: I am tried to do this job. Please anyone help me. Thanks in advance.
29 Sep 2017 by Sergio dos Santos
I develop a plugin to connect with an external SQL Server directly without any services, here is the link GitHub - SergioDosSantos/cordova-plugin-sqlserver: Cordova Plugin to connect to SQL Server without services[^]
9 Aug 2017 by Member 13233111
I have created a phonegap based android application, in which I have called WCF Services and its working, Now I want to move to Native,for which I am using android studio, Please help me how to call those services, or can I use the already created JS file of phonegap project? What I have tried:...
9 Aug 2017 by Kornfeld Eliyahu Peter
As PhoneGap (or maybe Cordova) uses JavaScript, the question is how to call WCF services using JavaScript... for that you can use JQuery's ajax method (of course you have to enable HTTP/S bindings on your WCF and better to use JSON format for return values)... There is a nice sample of all this...
31 Jul 2017 by Member 13233111
I have One Selectbox which consist of 4 values. I want to call function for specific value. On button where we can call only on function onClick. So what I want is like if value is 1 selected then call function 1 on button click and so on. What I have tried: Please suggest me some code. ...
31 Jul 2017 by Thomas Daniels
In SearchContext, take the selected value and use a switch to decide which function to call: function SearchContext() { var selectedValue = document.getElementById("myDropdown").value; switch (selectedValue) { case "Alert": alertButtonClicked(); break; ...
18 Jul 2017 by Member 13233111
I Want to learn about how to capture image on login button click from the front camera of smartphone without knowing user and display the pic on the next page. For development I am currently using PhoneGap. Please help. What I have tried: I have just created a login form with 2 textbox and...
5 Apr 2017 by Karthik_Mahalingam
Quote: Uncaught TypeError: Cannot read property 'querySelector' of null. You get this error when you try to access a member (method/property) of an object which is null Solution would be validating for null values before accessing the functions in it. but you will only have to trace the code...
5 Apr 2017 by Wessel Beulink
As it says Uncaught TypeError: Cannot read property 'querySelector' of null var parentElement = document.getElementById(id); var receivedElement = parentElement.querySelector('.received'); listeningElement.setAttribute('style', 'display:none;'); // check for null before changing if...
21 Sep 2016 by iDoKin
I'm newbie to PhoneGap, have done some research before starting on development. I have registered through the website site to test app, so I need to test with my credentials and see if can will login. I do get the string from server which contains sessionid and name of person login...
19 Sep 2016 by Harpreet05Kaur
use window.sessionStorage.setItem(key,value) function of jquery to store your strings throughout your application.
6 Jul 2016 by Gourav Khanna
I need your help/suggestion in Phonegap AngularJS application. I have created a app where i have 2 pages one is to show the categories and 2nd show the details of it.I am using $http service in my app to get data but it doesn't work in apk where as it works perfectly in Browser and i have...
6 Jul 2016 by _Kapil
Hey all,I am working on push notification for window app in phone gap.I not able to update navigator URI when receive push notification.Means when when i receive push notification i want to move to some particular form where i have to show all notification access from database in...
6 Jul 2016 by Harinder_KBS
i am facing same issue but still on r&d
22 Jun 2016 by Richard MacCutchan
You already posted this question at Android - information leakage flaw outputstream[^]; please do not repost. If you have information to add then edit your original.
17 May 2016 by hussainasdsd
i created a wcf service in asp.net for phone gap application where i will access those method using ajax in phonegap.. method working on Working Linkbut when i am tring same method locally it giver 405 error:Request URL:http://www.halawiat.com/Services/Service.svc/GetCustomersRequest...
17 May 2016 by Debendra0256
That is CORS related issue .these problem you might face when your WCF service is hosted in one domain and your client in another,There are several tricks are there to fix this issue,as i have worked in WEBAPI there are several document available in net by which i fixed the issue.Please check...
4 May 2016 by Torakami
Hi , I am using aapche cordova application project that uses sql lite as database But The error which I am getting at the time of creating table is as belows index.js:11 Uncaught TypeError: Cannot read property 'transaction' of undefinedWhat I have tried:var myDB;//Open...
3 May 2016 by Amany Romeh
hi i currently work on a mobile application android using html and javascript in phone gap build so i link my app to my wordpress site and i want to retrieve some pictures from my mysql and display it as a slide show in my app . any help please?What I have tried:i select the data from my...
3 May 2016 by George Jonsson
As always you need to break up your task in smaller pieces.So what do you need to know in order to create a dynamic slideshow for a mobile device?Well, this is one possible approach:1. Look for ways to make the page mobile friendly."Mobile first" is a buzzword these days, so you can...
26 Apr 2016 by Richard MacCutchan
You already posted this question at How to convert android existing project to cordova plugin[^]. 1. Please do not repost. 2. Please do your own research.3. Please explain your problem in better detail.
28 Feb 2016 by Surendra0x2
I want to read an image from Phonememory folder but unable to read.i have no idea whats wrong.can anybody help me outWhat I have tried: document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { ...
23 Feb 2016 by Member 12346924
In my Phonegap based hybrid app: Ajax calls start failing if my app is inactive for say a couple of minutes. My connection is WiFi & what happens is ajax calls fail with status 0; but navigator.connection.type still shows WiFi. This happens only on iOS not on android.I can also see the WiFi...
13 Feb 2016 by Ayyaz Zafar
I am working on a mobile application in phonegap. I am at the stage to decide weather write custom jquery code (for things like sliding screens/pages) or I its better to use jquery mobile or angular js?If so then which framework should we use ? jQuery-Mobile or Angular.js?What I have...
25 Jan 2016 by Stephen Hewison
You need to implement a custom URL scheme.You'd then embed a link with a scheme which is unique to your app such as:myappname://information/to/be/passed/backWhen your application installs the manifest tells the operating system which URL schemes your application wants to accept. The...
24 Jan 2016 by Sradhanjali Behera
How can i navigate back to a page in my android app after loading an external site. 1.Open app 2.In app user will go to an external link 3.External site has link,which take the user back to app. How can i go to my application . I have tried to give...
24 Jan 2016 by ridoy
You can find your answer Here:android - How to create toast in phonegap? - Stack Overflow[^]Or,can use this awesome library from Github:EddyVerbruggen/Toast-PhoneGap-Plugin - C++ - GitHub[^]
20 Jan 2016 by Torakami
Hi , I am using testing my mobile app using ripple emulator. But the thing is this plugin is not available for firefix and other browsers except chrome.Any alternative so that i can test using other browsers as well ??
19 Jan 2016 by Sradhanjali Behera
I am new to android studio.I am doing toast message for my app,but i am unable to do this one.I have tried a lot but the toast message is not showing at all. Below is the code.Please suggest me.Thank you in advance.Index.html
19 Jan 2016 by Sradhanjali Behera
Here i want to give a back link ,which will go to my android phone gap and required section of app will open ,according to back link.But here i am facing some difficulties to do this one.Its not working at all,where i am doing wrong ,please suggest me.Thank you in advance.Here in anchor link...
19 Jan 2016 by carlosbou
I need to disable the system keyboard. All inputs will be by a barcode scanner.The code I tried is the following;window.addEventListener('native.keyboardshow', keyboardShowHandler); function keyboardShowHandler(e){ cordova.plugins.Keyboard.close(); }
7 Jan 2016 by Sradhanjali Behera
I am implementing paypal to my phonegap,but i am not able to run this paypal one.I have followed the following steps to implement.1.I have implemented three js paypal-mobile-js-helper.js ,cdv-plugin-paypal-mobile-sdk.js and paypal.js in paypal.html after cordova.js2.Used...
7 Jan 2016 by Sradhanjali Behera
I am new to phone gap.I am getting error in config.xml.Actually i am doing paypal integration.In config.xml it is showing phone gap namespace is not bound .While i am running its showing Error:(117) Error parsing XML: unbound prefixError:Execution failed for task...
30 Dec 2015 by Member 12237207
Hello. I've been dying to turn my cordova game app into a online multiplayer game, but I can't seem to find any tutorials or anything out there. 3 days I've been slaving on Node.js, but that was what appeared to be a dead end.I can't find any tutorials, or anything. All I want is to follow a...
30 Dec 2015 by Member 12237207
Hello. I'm trying to connect my app to my node.js server. If I run this anywhere but within a compiled android app, it works fine. Also, if I substitute the ip.address with an myfile.html local reference, it works fine. Am I doing something wrong? Am I able to open an ip address in the url?...
18 Dec 2015 by elshorbagy
I built an android app with HTML5 and Javascript. I want to enable users to dial numbers but it is not working:01224001111I also added this line to android manifest xml:
18 Dec 2015 by suraj mahajan
just set link to tel:01224001111for example 01224001111
16 Dec 2015 by Sradhanjali Behera
I am newbie to android phone gap.I am doing template slicing like in php project.I have done it for footer but struggling with header slicing.Suggest me.Thank you in advance.
10 Dec 2015 by ridoy
Thats 2 separate questions. First you need to configure PhoneGap properly with your IDE. Check your Downloads folder.. then config with your IDE by checking these documentation properly:Getting started with PhoneGap in Eclipse for Android[^]http://phonegap.com/developer/[^]To exit from...
10 Dec 2015 by elshorbagy
Hello, I'm building an android app with HTML5 and Javascript, and I want to add a close button to end my application. I read that I can do by using Phonegap API, I installed phonegap and I cannot find the phonegap.js on my hard drive. Is there another way to end my application? Where can I...
19 Nov 2015 by George Jonsson
You are prpbably better off getting support from here http://onsen.io/forum.html[^]Quote:If anything about Onsen UI is unclear, please ask a question on Stack Overflow, and tag onsen-ui.
19 Nov 2015 by mbarro
Hi, I'm trying to define a custom "modifier" attribute for an in order to modify it's default height value (44px). As is defined on Onsen's web page (here), the "ons-bottom-tolbar" has that attribute, and as comments here, if you want to create an modifier named "xxxx"...
1 Sep 2015 by Richard MacCutchan
See https://www.google.com/search?q=PhoneGap+framework[^].
31 Aug 2015 by Aalaa Abo Omar
Hello,I want to learn about PhoneGap framework,kindly please provide me a good and simple tutorial for that.Thanks in advance
18 Aug 2015 by Afzaal Ahmad Zeeshan
Ah, this is when you come to need a Web API and a client! Since most of your content in the post is mobile-app oriented. This means you want to use the data from your website in the mobile as a native application rather than HTML content being loaded using the old default browser. I think I got...
18 Aug 2015 by F-ES Sitecore
Just build a mobile-friendly MVC site that people can use on their mobile. If you really want an "app" you can use phonegap to make an app that uses static html\javascript that communicates with the services provided by your mobile-friendly site. So you'll end up with one back-end site that...
18 Aug 2015 by Brady Kelly
I need to very quickly get a demo out of a small, simple mobile app. I have decided to use PhoneGap to package it and make it fit, and plain old HTML 5 and Angular to make it work.That scenario is all very well if the app is static, with a local data store, if needed, on the device, but I...
3 Aug 2015 by OriginalGriff
Start by looking at the error messages:08-04 03:13:38.810: E/AndroidRuntime(1425): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.pg/com.example.pg}: java.lang.ClassNotFoundException: Didn't find class "com.example.pg" on path: DexPathList[[zip file...
3 Aug 2015 by krunalpanchalN
Hello everyone,I am very new to phonegap (mobile apps), i was trying out and simple alert message app which displays "HELLO" on device ready in phonegap, but everytime I run the app it shows me Unfortunately, app has stopped.I have searched and tried a lot resolving this but couldn't, i...
2 Aug 2015 by dhage.prashant01
I got solution for it.This is not cordova or phonegap releated changes.Since it is iOS project, so I needed to make changes in the '.plist' file of Xcode.CFBundleLocalizations en ptNow above changes makes...
30 Jul 2015 by dhage.prashant01
Hi Friends, I'm trying to Globalize the mobile application. Currently application supports English and Portuguese language.Problem:When I change the regional settings to Portuguese, the phonegap plugin still displays English text.EQ. When I click photo using camera, it display text...
23 Jul 2015 by Siddharth Chandra
How to use Angular in a Cordova Environment and its impact
17 Jul 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
16 Jul 2015 by Ambati Dilip
Hello i am using Onsen for my IOS development using cordova in visual studio.Can any say slide bar with multipagination.http://onsen.io/guide/overview.html#ManagingMultiplePageshttp://onsen.io/guide/overview.html#UsingSlidingMenu[^]if i do indival its working fine but when i...
25 May 2015 by Kornfeld Eliyahu Peter
1. If you copied the project from other computer it is highly possible that the build command looks for android at a different location...(the build.bat command file was created with your project) Check the content and update it manually to the right location...2. If you copied the project...
25 May 2015 by Golden Mind
helloi have this error when i try make build releaseError 27E:\App.Mobile\bld\Release\platforms\android\cordova\build.bat: Command failed with exit code 8 E:\App.Mobile\MDAVSCLI 1 1output1>------ Build started: Project: App.Mobile, Configuration: Release Android...
14 May 2015 by Hugo Carnicelli
In this article, we are going to learn what Apache Cordova is and in which way this tool is now integrated into Visual Studio 2015.
23 Apr 2015 by Sunasara Imdadhusen
Hello,Following are my solution: This solution will works only, when you save your file at mentioned location:I am saving file at ApplicationData.Current.LocalFolder; using server code and displaying at client (browser) side using C# Code// Save a downloaded images to the app’s...
23 Apr 2015 by Member 11528472
function recordVideo() { console.log("recordVideo"); // start video capture flagMedia = 'v'; navigator.device.capture.captureVideo(captureSuccess, captureError, { limit: 2 });}function takePicture() { flagMedia = 'p'; console.log("takePicture"); ...
23 Apr 2015 by Member 11528472
Sunasara, I am doing something similar with the media-capture plugin and got the photo uri (something like this: /CapturedImagesCache/WP_20150424_001.jpg). the plugin creates a folder called CaptureddImagesCache and save the pic in there.Then I simply set my image this way: path =...
1 Apr 2015 by Arian Celina
How to develop Hybrid Mobile Apps with Phonegap, AngularJS, Bootstrap
31 Mar 2015 by Avinash6474
Hi All,I had created an application using phonegap. I had added geolocation plugin in application cordova plugin add org.apache.cordova.geolocationI can able to see the plug in added in project. Now I have created a location.html page in which I am using geolocation plugin...
13 Mar 2015 by Dheeraj Singh Bhadoria
Please refer this Link[^] link to solve your problem.
26 Feb 2015 by Member 11484577
Facebook integration is done in PHONEGAP ANDROID, its working fine but the issue is when facebook app is present in android phone my app is opening login page of facebook app and if facebook app is not present when i click on login button in my app it is crashing. Please tell me to solve this...
26 Feb 2015 by CHill60
We don't write code to order.Do some simple research using Google (or your favourite search engine) and you will quickly come across the Phonegap blog[^] on the Facebook integration plugin - complete with readme and example apps.Give it a go, then come back if you hit problems with your code
25 Feb 2015 by Richard MacCutchan
Please do not post the same question in multiple forums.
25 Feb 2015 by rnvenkatkumar
I am created sample app with angularjs and material designfor material design i followed the link ishttps://material.angularjs.org/#/getting-startedmy html file looks like
25 Feb 2015 by rnvenkatkumar
I am developing phonegap ios app which should have calendar that insert, delete and modify even from my app to native calendar so, I used EddyVerbruggen Calendar-PhoneGap-Plugin. The link is https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin The sample I worked isvar...
24 Feb 2015 by Prasaad SJ
Hi Guys, I would like to know, is there is anyway we can create Hybrid mobile application in visual studio 2012/2010?. All the search results navigate to VS2013 Update 4 (which is not a free version) or some 3rd party applications like Telerik(which is also not a free version). I have...
20 Feb 2015 by mehdin69
hello friendshow can I want to develop a android program that when for example person A call to Person B.width answering by Person B , person A' phone start vibrating or flashing or ringing.thanx
19 Feb 2015 by FaizanMubasher
I am working in Phonegap/Cordova and I need to use menu to go for app settings. But I have came to know that according to [Google/Android docs][1][^], developer shouldn't use that menu button anymore. Instead, developer should use action bar for this purpose. Beginning with Android 3.0...
10 Feb 2015 by Member 11443167
Hi,I did not write the code below but I need to change this to an inappbrowswer.http://docs.phonegap.com/en/edge/cordova_inappbrowser_inappbrowser.md.html window.plugins.childBrowser.showWebPage(authUri, {showLocationBar : true}); ...
8 Feb 2015 by nagendrathecoder
Refer these links:https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=develop%20application%20using%20phonegap[^]https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=document%20to%20pdf%20converter%20using%20phonegap[^]
8 Feb 2015 by Member 11437795
hey guys i want to develop an application using phonegap i am new in coding dont know how to start the work and from where to start if anyone can help pls help me out.....
21 Jan 2015 by Afzaal Ahmad Zeeshan
You can read this forum thread from PhoneGap to learn more on allowing the users to login in using their Google accounts.http://community.phonegap.com/nitobi/topics/implementing_google_login_in_a_phonegap_app[^]
21 Jan 2015 by prashbari
I want to login through google plus in my phonegap mobile app. How can i do that?
7 Jan 2015 by Member 10448952
function saveData() { var txtName = $("#txtName").val(); var txtEmailId = $("#txtEmailId").val(); var txtPwd = $("#txtPwd").val(); var txtPhoneNo = $("#txtPhoneNo").val(); $.ajax({ type: "POST", ...
2 Dec 2014 by prashbari
We want to convert native phonegap code to blackberry. Which tools are required? How to do this?
12 Nov 2014 by Member 10837620
i am developing phonegap android hybrid application.for that i want to use localstorage to store the values which will remain same untill it is manipulated.will the value stored in the localstorage be persists after application closed and started again?what is the scope of localStorage...
31 Oct 2014 by Ganesan 2009
Dear All, Indexed db supported for windows 8.1 using cordova 3.6.3 version. (Not in PhoneGap Build, Work using in command Line).Thank you,
30 Oct 2014 by Ganesan 2009
Hello I am started working in phonegap app for windows 8.1 using indexed db but its not working. While i am trying with windows 8 the indexed db supported. so any one aware of this issue means reply me.What db i should go with for windows 8.1Awaiting for quick replyThank...
20 Oct 2014 by Waseem Ahmad Khan
Yes need to rebuild the whole project and deploy it again.
30 Sep 2014 by Kornfeld Eliyahu Peter
The answer for this can fill books - you should go to the sites of PhoneGap[^] and/or Cordova[^] and start reading about.Set yourself a goal (some simple app, like Hello World) and try to develop it! If you are familiar with Visual Studio you may be interested in Multi-Device Hybrid Apps...
29 Sep 2014 by ChrisTekh
Hi folks! Can anyone help me with a beginner tutorial from his blog that would give me kick start in mobile development using cordova and phonegap. I am completely new.Thanks
28 Sep 2014 by Sunasara Imdadhusen
I am using PhoneGap to develop application for Windows, Android and iOS platform.I have one problem and need expert assistance from you guys.I have created one plugin for Windows Phone. Plugin is basically download images from URL and stored in isolated storage folder inside Downloads...
18 Sep 2014 by Dev Sharma
Hi all,I am trying to turn on/off gps system setting using cordova/phonegap.I have gone through all the materials that are available on internet but no result.Only I got some comments on it.I have got some materials on for native android code and full source code also.The same question asked...
10 Sep 2014 by Christian Amado
For me the best option is Xamarin[^], PhoneGap[^] and Telerik Mobile[^].
10 Sep 2014 by Munish Sharma Ji
I need to make a mobile application for all platforms and devices. Please suggest the best way to make application. Some of the options are like Phonegap, xamrin. Is there any other technology we can make applications using c#.
4 Sep 2014 by ma.fawzy.it
when using Arabic font "DroidKufi-Regular.ttf" using @font-face it work in my browser and when build it with phonegap it not worked.How embed this font with phonegap?
2 Sep 2014 by thatraja
You should search more.Getting started with PhoneGap in Eclipse for Android[^]First PhoneGap App with Android using Eclipse Step by Step on Windows[^]Some people use Android studio instead of EclipseAndroid vs. CraigDJ[^]
19 Aug 2014 by Ameer Vikram
how to call Jquery Ajax POST using WCF RESTFull Service from phoneGap or ASP.NET
17 Aug 2014 by Member 9452028
We are developing an application for ipad.Right now process is like the number of devices we have we are adding its device id in our developer account and generate a provision profile and add it in our xcode project and then we generate .ipa file. Then we deploy the app deploy-able file and...
14 Aug 2014 by Erick Martín Garcia Vega
i'm trying to integrate sencha touch 2 files ( js, css) at my phonegap app, but i'm having a trouble that says the variable app it's not defined, i'm following this tutorial ( http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/ ), but it seems to be out of date :( , i feel...
10 Aug 2014 by Sandeep2014
I want to make an Android Application On Eclipse IDE using Phonegap but dont the how to make it and find out online tutorials as well but they are not usefull if anyone can help me with this.