w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » CORDOVA » Page 1
Tools for Cordova CTP3 connect etimedout when building
When VS compiles code first time Cordova will try to connect to GitHub and load additional packages. If you are are using proxy, then you need to configure machine so Cordova will use proxy to connect to GitHub. What you need to do is to set HTTP_PROXY environment variable to your proxy. HTTP_PROXY=http://your_proxy:8080 However if your proxy requires user name and password then set your pro

Categories : Cordova

Visual Studio Cordova Application ID
It's the Cordova limitation, Cordova requires package name must look like com.company.Name. Visual Studio uses Cordova CLI to build and package app and therefore Application Id not in format com.company.Name throws build error. Please note VS2013 CPT3.0 is Cordova 4.0.0 Workaround: Android package name is checked in C:Users[username].cordovalib pm_cachecordova-android3.6.4packageinlibcreate.js (

Categories : Cordova

Alternative to Push.js
One option is to find a functional router (Backbone's for example), pull out the content loading/transition code from push.js, and write some custom code to package and inject your UI into the DOM. push.js has code to manage the browser history cache and to make the ajax requests to support its content requests. If you are using some MV* like Backbone (as I am) you can package and feed your views

Categories : Cordova

Build fails when adding cordova plugin to Visual Studio
If you look at the plugin README.md, you can see this: Install it From the root folder of your cordova project, run : cordova plugin add https://github.com/stereolux/cordovarduino.git cp plugins/org.stereolux.cordova.serial/lib/usbseriallibrary.jar platforms/android/libs If you are using the VS Tools for Apache Cordova CTP3 released last week then these steps will fix your issue: copy this f

Categories : Cordova

Meteor : way to specify icon and launch screen of an app?
You can make use of the mobile-config.js file which must be placed at the root of the project . (available from the 0.9.4) To have an example of this file, the simplest way would be to see how the "localmarket" example made it. Just type: meteor create --example localmarket Then watch the file: more localmarket/mobile-config.js Basically, the file needs to describe the App.icons and App.laun

Categories : Cordova

check for internet connection in PhoneGap for all platform?
You can use cordova plugin : <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/> then for checking the connection: function checkConnection() { var objConnection = navigator.network.connection; if (objConnection.type == Connection.NONE) { //Do somthing } } for more details about the cordova network plugin and the connection types : cordova-plugin-netw

Categories : Cordova

How to use AdMob with some other Ad together in Cordova App?
Step1. you need install the mediation adapter in your app. It can be simply done by running the cordova CLI: cordova plugin install com.google.cordova.admob-iad cordova plugin install com.google.cordova.admob-flurry Build and publish the APP. Step2, you need configure the mediation networks in your AdMob portal. Click the menu 'Monetizae'. Click your app at the left list. On right side

Categories : Cordova

Visual Studio Unable to attach. An expected resource in the assembly manifest was missing
I had exactly the same error and I successfully resolved it. My configuration: Windows 7 Pro 64 bits - French Visual Studio 2013 Update 4 (French Edition) CTP 3 What I did to solve the problem: First, I installed ENU Language Pack for Visual Studio to install English language Then, I switched the language of my Visual Studio to english Finally, I repaired my CTP 3.0 installation. After th

Categories : Cordova

Cordova Build Command Issue
Looks like this problem: nodejs/windows Error: ENOENT, stat 'C:UsersRTAppDataRoaming pm'

Categories : Cordova

How to create the server-side of a web app
I think cordova is the best option for you.Using cordova you can create native mobile apps using HTML,CSS and JAVASCRIPT(android,ios,windows).Also you can use the same design pattern for both web and mobile. For UI design use either jquery mobile or ratchet (http://goratchet.com/). For backend use AJAX in jquery with JSON.here is an example code for the AJAX request $.ajax({ url:'ht

Categories : Cordova

Cordova-icon gives error on run
Found the solution. ImageMagick needed to be installed for Windows. I used this download and it worked after restarting my command prompt. http://www.imagemagick.org/script/binary-releases.php#windows

Categories : Cordova

Cordova Update Code via CLI
When you are creating a Cordova app > 3.0, you can create hooks on build events. see a blog post on How to use hooks to automatically set environment variables in code. It is also possible to create your own hook and copy the correct file with environment variables to the project folders (of Android, iOS, etc.). When you take this approach it is easiest if your environment variables are bundled

Categories : Cordova

Phonegap IndexedDB shims for windows phone 8.1
I had a similar problem. In the end I used Microsoft's WebSQL plugin. It's a little old school but it seems a little more straightforward. Their IndexedDb solution might work OK but I figured it's a plugin, built on a shim (IndexedDBShim), built on another plugin (WebSQL) - it just seemed like there was too much going on (I preferred a more direct path to the database).

Categories : Cordova

Ionic cannot add android platform
Check in the directory /Users/user1/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/ There should be three modules in this directory, which, shelljs and q. They are part of the cordova-android 3.6.4 release so it is hard to see why one would be missing. If which is not there it might be best to remove the android platform and add it again. ionic platform rm android Upda

Categories : Cordova

Phonegap Command failed with exit code 74
After doing some research I believe it's because I was linking to: xmlns:gap="http://phonegap.com/ns/1.0"> but I should have been linking to: xmlns:cdv="http://cordova.apache.org/ns/1.0">

Categories : Cordova

How to test Doubleclick for Publishers?
You can create a test network if you want to test the API in a separate environment, look at step 3 of https://developers.google.com/doubleclick-publishers/docs/start, just enable the API access and create a Test Network to test your application.

Categories : Cordova

Cordova + File Transfer Upload Get stucks (stops) at 99% ( stops exactly 13 bytes before the total byte upload)
The "win" function is called when the upload process is complete. At that point, it's no longer calling "onProgress", which is why it's not updating anymore. What you'll want to do is update your win function to include the following: $("#perc").html("100%"); alert("Complete");

Categories : Cordova

Visual Studio 2013 VS tools Cordova CTP3 - Build sets files in bld and bin dirs Read-Only?
We haven't been able to repro this but the following steps may be useful to migrate a CTP 2 project to CTP 3. The FAQ has steps to migrate a project "I’m trying to upgrade a project from CTP2 to CTP3 and its throwing errors." Here for reference: Then open the jsproj file in the editor (Right-click and select Edit myproject.jsproj) and modify the path in following lines: <Import Project="$

Categories : Cordova

visual studio 13 cordova CTP3 - BLD folder readonly
I found the fix - the FAQ posted my Microsoft has a fix for another symptom which in turn corrects this issue. Open CTP2.0 project in VS The imported project "C:Users estuserAppDataRoaming pm ode_modulesvs-mda-targetsMicrosoft.MDA.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Then open the jsproj file in the editor

Categories : Cordova

Error::Plugin not allowed in config.xml - Cordova/Phonegap
In echo.js only Class Name has to be called and not the full package. As below: window.echo = function (str, callback) { cordova.exec(callback, function (err) { callback('Nothing to echo.'); }, "Echo", "echo", [str]); };

Categories : Cordova

org.apache.cordova.file-transfer how to abort download file
Variable fileTransfer isn't defined inside abortFileTrasfer() function, it's a local variable inside downloadMyFilePlease(), so you can't access it in abortFileTrasfer().

Categories : Cordova

How to get crash reason, if it is crashing from URL opened in iframe in Webview in iOS?
No Direct way of checking the webview crash, or atleast which i know. I can recommend some steps for you towards this: i) open your content/web page in browser and check for all errors it throws in browser ii) stop/delete all unnecessary service calls iii) webview sandbox environment has to be within 10 MB iv) make sure you are not getting any 404 errors, use browser to check this easily v) updat

Categories : Cordova

Phonegap: Is local storage still limited to 5mb?
There is already a table with all android and blackberry based browsers localStorage limit, you can test it from your device.

Categories : Cordova

Error adding android platform for phonegap
This is incorrect: export PATH=${PATH}:/Users/user1/android-sdk-macosx/platform-tools:/Users/user1/android-sdk-macosx/platform-tools Should be: export PATH=/Users/user1/android-sdk-macosx/platform-tools:/Users/user1/android-sdk-macosx/tools:$PATH You have platform-tools twice, missing tools and ${PATH} should be $PATH

Categories : Cordova

Phonegap Plugin for flurry Ads
The plugin is tested on device and emulator, and it works on Android and iOS. I am the author of the plugin, and I wanna provide help. Please create a issue tracker with detailed info, so that I can find some clue. GitHub issue tracker is a good place to get support for corresponding projects. https://github.com/floatinghotpot/cordova-plugin-flurry/issues A "good" bug report may include followi

Categories : Cordova

Need help in adding admob in phonegap app
In phonegap you can try to build the app in each specific platform and then integrate admob by modifying the code, which it seems that it is what you are trying to do. You will have to do it for each platform you want to support and also you'll have to write the native code for each platform as well. I recommend you to use a plugin, with which you'll have already done the native and manifest integ

Categories : Cordova

JailBreak Dection Mechansim for Hybrid Applications
As a note it's not called jailbreaking on Android, you will want to check if the user has gained root access. I am not aware of any existing capabilities in PhoneGap that would allow you to check if root access has been gained.

Categories : Cordova

unzip file in android using phonegap
Yes you are using wrong path. For unzip plugin use below path. /sdcard/my_www/config.zip So your code will be like this. zip.unzip('/sdcard/my_www/config.zip', '/sdcard/', function(d) { alert(d); });

Categories : Cordova

ImagePicker Plugin in ionic cordova
Those both options are a part of Cardova Camera plugin. Add a plugin to your project: ionic plugin add org.apache.cordova.camera. Read more here Select your sourceType depending on your needs. Possible values are Camera.PictureSourceType.CAMERA or Camera.PictureSourceType.PHOTOLIBRARY Your code should be like this one: // Select your type as following: // var sourceType = Camera.PictureSource

Categories : Cordova

Map didn't appear in ionic with phonegap google maps plugin
Thank you for using my plugin. I'm not familiar with the ionic framework though, many people use with it. So it should work. Unfortunately, the map plugin does not support multiple maps. So you need to map.remove(), then Map.getMap() again. Many people asks regarding of ionic on the issue list. You might find helpful information. https://github.com/wf9a5m75/phonegap-googlemaps-plugin/search?q=io

Categories : Cordova

How to choose between WinJS Cordova TypeScript
can I use TypeScript to write an application that also uses Cordova and WinJS ? Yes. You can use TypeScript anywhere you can use JavaScript. TS compiles to JS which is what you deploy. I heard Cordova can do this and that it enables me to test and build for IOS and Android but also probably can WinJS Cordova provides a consistent device API to access device hardware and works for Andr

Categories : Cordova

Cordova-iOS 3.7.0 issues with icon validation (pre cli-4.1 release)
So it works fine just adding it yourself in the config.xml <icon src="icon.png" /> <icon src="icon120.png" platform="ios" width="120" height="120" /> Adding the second line did the trick, but I never had to do this before.

Categories : Cordova

Usage of '--family' is deprecated in 3.x. Use --devicetypeid instead
I had the same problem and came across with this thread in the ionic forum. They give you some possible solutions: Run pkill lldb and try again. Reinstall ios-sim package. If you are in a tmux session get out of there and run the command directly from a terminal. Start the emulator ahead of time, because ios-sim has a timeout set if it can't connect.

Categories : Cordova

Can a Cordova app securely edit google spreadsheets?
The Google Drive SDK only allows for the import and export of Google Sheets; not complex or in-place manipulations of the content. While Apps Script does allow for this, it is not possible to reliably consume it as a service from an outside system. You may be able to patch something together, but I wouldn't advise it.

Categories : Cordova

Stop All Audio Cordova Media Plugin?
you can keep all myMedia objects in an array, when you want to stop all of them just read array and stop them one by one. function soundCtrl($scope) { var myMedias = []; $scope.playSound = function(file) { var myMedia = new Media(file); myMedias.push(myMedia); myMedia.play({ playAudioWhenScreenIsLocked: true }) } $scope.stopAllSounds = f

Categories : Cordova

How to disable ripple effect in polymer paper elements?
You can use the noink attribute on the elements that have ripple effects to turn it off: <paper-button noink>No ink!<paper-button> <paper-tabs noink>...<paper-tabs> AFAICT, the first may not work until the next Polymer release of paper-button. It does work in master however if you want to bleed on the edge.

Categories : Cordova

Done/close button on PhoneGap's InAppBrowser not showing
You can try to add the "closebuttoncaption" variable window.open(encodeURI(url), '_blank', 'location=yes,closebuttoncaption=Close'); You simply could debug the inappbrowser page on the remote device https://developer.chrome.com/devtools/docs/remote-debugging

Categories : Cordova

PhoneGap Build Exec Native Code
It doesn't look like you can load private plugins, but there's no reason you can't create a public one and submit it to phonegap build. Creating Custom Plugins importing plugins in phonegap build

Categories : Cordova

Is it possible to create a facebook messenger style notification via phonegap?
i never tried this one and am not sure about images. you can display text notification with this plugin. try this cordova plugin, https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin

Categories : Cordova




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.