cordova,android-fullscreen , How do i add custom plugin and use it in phonegap build?

How do i add custom plugin and use it in phonegap build?


Tag: cordova,android-fullscreen

I have phonegap app build in "build.phonegap", which means i have only xml file to configure my phonegap plugins.

What i want is to have a full-screen on android, for me it means the "navigation bar" should be removed!

After much searching i found this plugin:

The reason i want to use this plugin is because i can't find another way to hide the navigation bar, and other configs in my xml that i thought would do such a thing, like:

<preference name="fullscreen" value="true" />

not doing what i intended, so the plugin is a last resort (or is it?)

1) How can i add this plugin to phonegap build and configure it in the xml? Is this suppose to helping me?

2) If still it's not possible for some reason (to use the plugin for the purpose of hiding the navigation bar), how can i just disable the behavior of the navigation bar (in android) at all?


On phonegap build you can only use plugins from:

If the plugin isn't there, you can ask the plugin author to submit it, or fork it and submit it yourself (if you want to submit it to the phonegap build repository you need a paid plan)


How to Upgrade Cordova 3.5.0-0.2.4 to any higher version?

There are many questions in stackoverflow and in other blogs which says just execute the below command to upgrade- sudo npm install -g [email protected] After executing the above command in my terminal i get the following- /usr/bin/cordova -> /usr/lib/node_modules/cordova/bin/cordova [email protected] /usr/lib/node_modules/cordova ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected]

How to refresh iframe url?

I am creating an app using ionic in which I am displaying a URL using iframe. This is the HTML code: <iframe id="myFrame" width="100%" height={{iframeHeight}}> This is the angular js: $scope.iframeHeight = window.innerHeight; document.getElementById("myFrame").src = value['url']; Everything is working, however when I make changes on the site from the backend...

fabric.js resize canvas to fit screen

I'm currently developping an application on mobile device (android and iPhone) with ionic and cordova. I would like to edit a picture. I use fabric.js library to do that. Fabric.js converts an image and other items into canvas. Then I add some image on the canvas (stickers) and export it...

Cordova Plugin to ask for Ratings

I am looking for a cordova plugin that asks for ratings similar to Basically I need a plugin that can send a popup to the user to rate the app after a specific task or amount of days using the app. Of course this needs to be for Phonegap/Cordova

ember 2.0, Cordova and onDeviceReady

The code in app.js looks like this: var App; Ember.MODEL_FACTORY_INJECTIONS = true; App = Ember.Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModulePrefix, Resolver: Resolver }); export default App; How do I use deferReadiness and advanceReadiness here ? I need this to call advanceReadiness if the cordova deviceReady event is fired. ...

How to show icons in $cordovaActionSheet plugin buttonLabels in ionic framework?

I am trying to add icon in buttonLabels in $cordovaActionSheet plugin but it didn't working. I have tried var options = { title: 'Share', buttonLabels: ['<i class="ion-social-facebook"></i> Share via Facebook', '<i class="ion-social-twitter"></i> Share via Twitter'], }; but it prints tag as it is. How do I show icons in button...

__createApplicationIconFromImage_block_invoke: Error: unable to create icon mask image from image named “AppIconMask.png” at scale 2.0

I am getting "___createApplicationIconFromImage_block_invoke: Error: unable to create icon mask image from image named "AppIconMask.png" at scale 2.0" error while opening a PDF Viewer using iOS Cordova phone-gap based application Unknown activity items supplied: ( "QLPrintPageRenderer: 0x187bc720>", "UIPrintInfo: 0x1c0b51f0>" ) //While executing present View : [self.documentInteractionController presentPreviewAnimated:NO]; Can anyone please...

cordova ionic barcode scanner error

i am getting same error barcodescanner.js:130 Uncaught ReferenceError: require is not defined ionic.bundle.js:20306 ReferenceError: cordova is not defined Cordova CLI: 5.0.0 Gulp version: CLI version 3.8.11 Gulp local: Local version 3.8.11 Ionic Version: 1.0.0 Ionic CLI Version: 1.4.3 Ionic App Lib Version: 0.0.19 ios-deploy version: Not installed ios-sim version: 3.1.1...

Cordova compiling fails with admob - missing

After a problem integrating admob into my cordova application, I've decided to follow the example layed out here: As I work with a windows 7, I've made the required changes, but it looks something like this: C:\> cordova create test1 com.rjfun.test1 Test1 Creating a new cordova project. C:\>cd test1...

Bluetooth LE app, how to build it cross-plaftorm (iOS-Android)?

I am working on an app that talks to a Bluetooth LE device. I would like some way to avoid developing it twice, for iOS and for Android. Is there a cross-platform app framework that has good support for Bluetooth LE? I have had a quick look at frameworks like...

Page reloads even after button click

I have 3 html files - start.html, loginPage.html and dashboard.html. When the login button is clicked, it should load dashboard but I am unable to access the button. Start.html <html> <head> <meta http-equiv="Content-Security-Policy"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <title>Amazon App</title>...

Cordova plugin error: Resource interpreted as Script but transferred with MIME type text/plain

I'm using Cordova 4 with Cross-walk and on android it throws the 'Resource interpreted as Script but transferred with MIME type text/plain' error for all plugins' javascript files. I have already added the Whitelist plugin and added the following to my index.html file: <meta http-equiv="Content-Type" content="application/javascript; charset=UTF-8"> <meta http-equiv="Content-Security-Policy" content="default-src...

Different performance with Intel XDK

I use Intel XDK to develop apps with HTML and Cordova. I use jQuery Mobile. My question is: Why if I debug app with XDK and an Android device I have a very good performance, and if I compile app into an .apk, same code works very very slow? Thanks...

Cordova- embed a external website into cordova app

I have a website. it run good in server I'm building a cordova app to embed this website and I want to open this website into this cordova app. I use, "_blank").., "_selt") modify config.xml <access origin.... but when I run app in my device, website auto open...

jquery mobile change icon project android cordova

Hy I Can not Change the ' icon of the project Cordova . You can tell me what to ADD in the xml file ? and I have to change all the icons in the / res / drawable ? All the program is the last version. Thanks....

Programmatically enable GPS of device when application opens in cordova

I have been working on cordova ionic app with angularJS frontend. Here when this app is getting launch the device should check for the status of the GPS whether it is on or not and if it is not on then make it on automatically. I didn't found any cordova...

error “The connection to the server was unsuccessful. (file:///android_asset/www/index.html)” in codovar and jqury

I created an app for android using cordova and jquery mobile. It works well when I test run the code using google chrome, but when I try to run it on android emulator using android studio in cmd (locate>cordova emulate android) it doesn't working. When i try to run it...

Cordova build fails, can't find ${appt}

The command cordova build android fails with the following output BUILD FAILED F:\Programs\SDK\tools\ant\build.xml:597: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:649: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:694: Execute failed: Cannot run program "F:\code\asistenciaBT\platforms\android\CordovaLib\${aapt}" (in directory "F:\code\asistenciaBT\platforms\android\CordovaLib"): CreateProcess error=2, El sistema no puede...

How to change Cordova application icon?

I designed an icon in 4 standard sizes: hdpi, ldpi, mdpi and xhdpi. I put these icons into: "\platforms\android\res\drawable-hdpi" "\platforms\android\res\drawable-ldpi" "\platforms\android\res\drawable-mdpi" "\platforms\android\res\drawable-xhdpi" folder. The names of every icon is "icon.jpg". How can I use these icons as my application icon?...

html query string with blackberry

My hybrid mobile app needs to work on blackberry devices as well. I noticed that a simple html query string such as Works also this way using the anchor tag (even if it is not standard) using Android and iOS. I don't have a blackberry to try but...

Content-Security-Policy breaking console.log output

Developing an app on version 5 of cordova (using the phonegap framework). The latest updates request you use a Content-Security-Policy meta tag as per their documentation: Here's my tag for the app: <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *"> When I include this everything...

Cordova verify app is asleep when not active

I'm having test users say that my app is taking too much battery life on their android devices. I'm testing on a tablet (nexus 7) and in the Settings > App info > Permissions I see prevent tablet from sleeping. So does this mean that my app is keeping the...

Creating an Android app using PHP

I'm going to create an Android app for the first time, and I wanted to do it in PHP, I've done some research and found the likes of PhoneGap, but I'm still quite short in the area, could someone give me a start? What I'm going to be doing is...

Phonegap: Command failed with exit code 8

I'm setting up an environment for Phonegap developing, and I'm getting some trouble to finally build and run an app for Android. When I try to execute build for Android, I got the following error: Running: C:\Users\Renan\workspace_html5\FIAP\Phonegap\phonegap-test\test\platfor ms\android\gradlew cdvBuildDebug -b C:\Users\Renan\workspace_html5\FIAP\Phonegap \phonegap-test\test\platforms\android\build.gradle -Dorg.gradle.daemon=true Unzipping C:\Users\Renan\.gradle\wrapper\dists\gradle-2.2.1-all\2m8005s69iu8v0oi...

SignalR working in browser not in app

I have an app which uses signalR when I try it in the browser it works properly. of course the connection is to an absolute URLץ When I deploy the app to an android device it doesn't work. I connected Chrome to do remote debug to the app's webview and...

No plugins are working in Cordova

I can successfully install all plugins but none of them seems to work. I have also the cordova.js included: <script type="text/javascript" src="cordova.js"></script> <script src="js/jquery.js"></script> <script src="js/tocca.js"></script> <script type="text/javascript" src="js/index.js"></script> Then when I use simple $('.curpos').html(device.cordova); in index.js, it does not work. This is output from cordova plugin command: 2.6.2...

How to copy a photo from gallery to dataDirectory?

I'm trying to copy a file from photo gallery to dataDirectory on Android 5.0 device. Unfortunely Cordova camera plugin returns path in format like: content://media/external/images/media/8793 var options = { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, saveToPhotoAlbum: false }; return $cordovaCamera.getPicture(options).then(function (result) { return handlePictureResult(result); }) $cordovaFile.copyFile('content://media/external/images/media/8793', null,...

How to use Azure Mobile Service with Cordova Project AngularJS and C#?

I want to use a database hosted on Azure with some sort of backend for my app made with apache cordova tools for visual studio. My thought was that I could create my JS object in the app itself send that to the C#/JS code on azure which will then...

Cordova Andorid app update / versioncode

i need to update my android App. For this the Google Play Store says it has to be an other version code. How can i update it? If i go into the androidmanifest.xml and set android:versionCode="1" to android:versionCode="2". It will return to 1 after i debugg. What is wrong? Lukas...

how to handle the application on outgoing and incoming calls in ios phone phonegap programming?

Can any one suggest me how to handle a application in iOS phonegap if any outgoing calls and incoming phone calls. Actually I m new to phone-gap based applications Currently I m developing an application to track the location in background. If any incoming or outgoing call appears ,I need...

Cordova Inappbrowser - window.history.back and forward won't work inside executescript function

I set the location to no to hide the default bar of the inappbrowser and used insertcss and executescript to create my own bar. The rest of the buttons i added are working except for the back and forward button that i creatd. I've already tried; window.history.back(); window.history.go(-1); history.go(-1);...

How to get the device's uuid and model information in ionic based App?

I have this piece of code in order to recognize/get the device information. ionic.Platform.ready(function() { // will execute when device is ready, or immediately if the device is already ready. $scope.deviceInformation = ionic.Platform.device(); $scope.currentPlatform = ionic.Platform.platform(); $scope.currentPlatformVersion = ionic.Platform.version(); }); as per the documentation given Here. The ionic.Platform.device(); will return...

Ionic - 'platform add android' Comand failed with exit code ENOENT

Please help me get my Windows 8/Ionic/Cordova/Android environment setup correctly. I'm trying to use the command 'add platform android' but am unable to get it to work. I have seen similar posts to this but none quite the same. I've tried un-installing Cordova and Ionic and reinstalling them as recommended...

Cordova Keychain Plugin and SSKeychain Plugin do not work together

We are having a tough time trying to shared info between two apps with keychain service. We have two apps: 1.- CoreApp, which is native and use this plugin SSKEYCHAIN to set values: + (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account; Where are setting for paramenter the following values: password =...

$scope does not getting called in view

I am having one cordova mobile app developed with the help of angularJS. In that, i have added the event listener 'resume' that calls when you log in to app, come out from the app without logout and again tap on the application icon on mobile to see it again....

New font for iOS 9 will be applied on Ionic apps?

iOS 9 is expected to be released with new font - San Francisco, replacing its tranditional Hevetica fonts. I wonder how Ionic will respond to this kind of change. Here are the things that I am curious to know at this moment. Will old Ionic apps automatically use San Francisco...

How to run lastTask after forEach

I have an array of images which I iterate and upload each to a remote server. Once the file is uploaded I use the result to get the file name and push to another array. The problem I'm having is that not all results are being pushed to the array....

Cordova FileTransfer not sending custom headers

I try to send custom header with cordova FileTransfert but when i check in PHP the function getAllHeader(), 'i not find my custom header. var options = new FileUploadOptions(); options.fileKey = "picture"; options.fileName = imageData.substr(imageData.lastIndexOf('/')+1); options.mimeType = "image/jpeg"; var headers={'headerParam':'headerValue'}; options.headers = headers; var ft = new FileTransfer(); ft.upload(imageData, url,...

How to request new banner ad in AdMob Pro?

I have an Angular Ionic mobile app. I recently switched from the old AdMob cordova plugin ( to the AdMob Pro plugin ( I have most everything working, but I can't figure out how to request a new ad. The old plugin had a function requestAd that would get a...

Cordova geolocation watchPosition sensitivity

How often would watchPosition be called if the position is constantly updated? Is this something that can be configured? The docs just say "When the device retrieves a new location, the geolocationSuccess callback executes".

Adding dymatic data into phonegap plugin

I'm trying to dynamically add data into a phonegap plugin <a href="#" onclick="window.plugins.socialsharing.share( null, null, 'document.getElementById('setquote').innerHTML;', null )"> I have try using this document.getElementById('setquote').innerHTML; to get the data into the plugin but no luck....

Why does WebSQL not work with iOS applications made with PhoneGap?

I just ported my PhoneGap application into the iOS platform, it would seem that the iPad I'm testing on (as well as the simulators provided by xCode) do not want to work properly with WebSQL... I've chased the issue down to the root, I think. Essentially when I try to...

How to download a library dependence on gradle for external use?

I have a project on PhoneGap and I am trying to build a plugin to use a FilePicker library. So, I build one Android Studio Project and I have it working. So, right now, that I know that I know how to do it, I just need to know how...

Best option for converting a JSP website to Android app?

I have set up a JSP website on a Tomcat 6.0 server. Now I want to create an Android app to fetch the web's data and view it on the phone. I have considered three possible plans for this: Rewrite the website into WAP version and use a Webview to...

Not able to navigate to certain URL in cordova

I'm not able to navigate to a certain URL when I'm using the following command: window.location.href = ""; In my cordova config.xml file I already specified to access to all sources using the default cordova setting with the wildcard: <access origin="*" subdomains="true" /> Here is what location prints to the...

Image Map Area Highlight and Zooming with iScroll 4

In my Cordova project, I have a slider with multiple zoomable images (by iScroll) and I would like to use map to highlight some area always. But I have tried many libraries like imagemapster.js, maphilight.js but these libraries prevent images' zooming feature. Is there any library that I can use...

jquery mobile all the data attribute references does not work

In my header i included <link rel="stylesheet" type="text/css" href="css/"> <script type="text/javascript" src="js/jquery-1.11.2.js"></script> <script type="text/javascript" src="js/"></script> and whenever I use for example data-role="page" the expected effect does not acquire. why would that happen? edit: notice the text input in the login form...

Triggering function on an particular count in a for loop

i am running an sql query in an loop . the query should run only if the loop count is equal to 500 . for E,g $.ajax({ response:function(e){ // Here e.length will be unknown for(var i in e){ if(q1cnt <= 500){ // do some appending var k = k +...

Unable to display SQLite data as listview using phonegap

The function get_list() here is able to execute the query but not able to display the rows. function get_list() { db = window.openDatabase("timeDB", "1.0", "time", 200000); db.transaction(populateDB, transaction_error, populateDB_success); function populateDB(tx) { tx.executeSql("SELECT (date) FROM time", [], function (tx, res) { var len = result.rows.length; if (len > 0) {...

Cordova cordova.plugins is undefined on win8 but not on iOS

I'm using the plugin fileopener2 and to use it, I must call; When I run this on iOS, everything works perfectly. However, when I run the app on win8, I get an error telling me that cordova.plugins is undefined. Also, I double checked that, after 'ondeviceready' is fired, I...