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?

Question:

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:

https://github.com/mesmotronic/cordova-fullscreen-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?

http://phonegap.com/blog/2014/01/30/customizing-your-android-manifest-and-ios-property-list-on-phonegap-build/

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?


Answer:

On phonegap build you can only use plugins from:

https://build.phonegap.com/plugins

http://plugins.cordova.io/

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)


Related:


How to refresh iframe url?


angularjs,cordova,ionic-framework,ionic
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...

Cordova geolocation watchPosition sensitivity


cordova,geolocation,phonegap-plugins,ionic,cordova-plugins
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".

jquery mobile all the data attribute references does not work


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

jquery mobile change icon project android cordova


android,html5,cordova,icons
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....

Creating an Android app using PHP


php,android,database,cordova
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...

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


angularjs,cordova,ionic-framework,cordova-plugins
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...

No plugins are working in Cordova


javascript,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: com.admob.pro 2.6.2...

Cordova Andorid app update / versioncode


android,cordova
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...

Not able to navigate to certain URL in cordova


android,cordova,whitelist
I'm not able to navigate to a certain URL when I'm using the following command: window.location.href = "http://google.com"; 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...

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


java,android,cordova,environment-variables,ionic
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...

Programmatically enable GPS of device when application opens in cordova


angularjs,cordova,ionic,cordova-plugins
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...

How to copy a photo from gallery to dataDirectory?


javascript,cordova,plugins,ionic-framework
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,...

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


ios,cordova,fonts,ionic
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...

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


javascript,cordova,cordova-plugins,visual-studio-cordova
I'm using the plugin fileopener2 and to use it, I must call cordova.plugins.fileopener2.open(...); 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...

$scope does not getting called in view


angularjs,cordova,ionic-framework
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....

ember 2.0, Cordova and onDeviceReady


cordova,ember.js
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. ...

Content-Security-Policy breaking console.log output


javascript,cordova,console.log,content-security-policy
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: https://github.com/apache/cordova-plugin-whitelist 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' *.example.com"> When I include this everything...

Best option for converting a JSP website to Android app?


android,cordova,webkit,native,hybrid-mobile-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...

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


cordova,ionic-framework,ionic
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...

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


javascript,jquery,ios,cordova
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...

Triggering function on an particular count in a for loop


javascript,jquery,cordova
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 +...

How to request new banner ad in AdMob Pro?


angularjs,cordova,admob,ionic,cordova-plugins
I have an Angular Ionic mobile app. I recently switched from the old AdMob cordova plugin (https://github.com/floatinghotpot/cordova-plugin-admob) to the AdMob Pro plugin (https://github.com/floatinghotpot/cordova-admob-pro). 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...

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


javascript,ios,objective-c,cordova,phonegap-plugins
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...

How to change Cordova application icon?


cordova
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?...

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


javascript,cordova,ionic-framework,cordova-plugins
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...

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


android,cordova,ant
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: java.io.IOException: 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...

Cordova Keychain Plugin and SSKeychain Plugin do not work together


ios,cordova,cordova-plugins,keychain
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 =...

Unable to display SQLite data as listview using phonegap


javascript,html,sqlite,cordova
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) {...

fabric.js resize canvas to fit screen


javascript,android,cordova,canvas,fabricjs
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...

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


c#,angularjs,cordova,sql-azure,azure-mobile-services
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...

Page reloads even after button click


javascript,jquery,html,cordova
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 compiling fails with admob - missing com.google.android.gms:play-services-ads:+


android,cordova,admob
After a problem integrating admob into my cordova application, I've decided to follow the example layed out here: https://github.com/floatinghotpot/cordova-admob-pro 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...

Cordova Plugin to ask for Ratings


cordova,phonegap-plugins,cordova-plugins,rating
I am looking for a cordova plugin that asks for ratings similar to askingpoint.com. 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

Cordova FileTransfer not sending custom headers


javascript,php,cordova,file-transfer
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,...

SignalR working in browser not in app


cordova,signalr,ionic,hybrid-mobile-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...

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


android,jquery,cordova,jquery-mobile
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 Inappbrowser - window.history.back and forward won't work inside executescript function


javascript,jquery,cordova,inappbrowser
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 navigator.app.backHistory(); window.history.back(); window.history.go(-1); history.go(-1);...

cordova ionic barcode scanner error


cordova,ionic-framework,barcode-scanner
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...

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


ios,objective-c,cordova,phonegap-plugins
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...

Adding dymatic data into phonegap plugin


javascript,android,jquery,cordova,phonegap-plugins
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....

html query string with blackberry


javascript,html5,cordova
My hybrid mobile app needs to work on blackberry devices as well. I noticed that a simple html query string such as http://example.com/over/there?name=ferret Works also this way using the anchor tag (even if it is not standard) http://example.com/over/there#name=ferret using Android and iOS. I don't have a blackberry to try but...

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


android,cordova,cross-platform,phonegap-plugins,cordova-3
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 run lastTask after forEach


javascript,angularjs,cordova,ionic-framework,promise
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....

Different performance with Intel XDK


cordova,jquery-mobile,phonegap-build,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


cordova,browser,web-applications,website
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 window.open(..., "_blank").. window.open(..., "_selt") modify config.xml <access origin.... but when I run app in my device, website auto open...

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


android,ios,cordova,bluetooth,bluetooth-lowenergy
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...

Phonegap: Command failed with exit code 8


android,cordova,gradle
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...

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


cordova,android-studio,gradle,android-gradle,cordova-plugins
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...

Cordova verify app is asleep when not active


cordova,ionic-framework
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...

Image Map Area Highlight and Zooming with iScroll 4


javascript,cordova,iscroll,imagemapster
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...